mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
This PR contains improvements to the DataHaven deployment infrastructure: 1. Directory restructure: Moved from `deployment/` to `deploy/` (more common for K8s / Helm -based deployment configs). 2. Added **local environment** support: updated CLI to support deploying to a local K8s cluster. 3. Manual deployment script: `deploy/scripts/deploy.sh` for manual deployments. 4. Environment-specific configurations: Structured values files for each environment. 5. Chart organization: Renamed bridges-common-relay to relay for clarity. --------- Co-authored-by: Gonza Montiel <gon.montiel@gmail.com> Co-authored-by: Gonza Montiel <gonzamontiel@users.noreply.github.com>
23 lines
735 B
YAML
23 lines
735 B
YAML
|
|
{{ $fullname := include "node.fullname" . }}
|
|
{{ $selectorLabels := include "node.selectorLabels" . }}
|
|
{{ $serviceLabels := include "node.serviceLabels" . }}
|
|
{{- if .Values.podDisruptionBudget.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ $fullname }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
{{- $serviceLabels | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- $selectorLabels | nindent 6 }}
|
|
{{- end }}
|