Skip to content

Commit

Permalink
avoid breaking chagnes
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Morejon <[email protected]>
  • Loading branch information
mmorejon committed Nov 14, 2024
1 parent 8f974c9 commit a3d724a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
7 changes: 3 additions & 4 deletions charts/connect/templates/connect-pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ metadata:
{{- include "onepassword-connect.labels" . | nindent 4 }}
{{- include "onepassword-connect.extraAnnotations" .Values.connect.pdb }}
spec:
{{- if .Values.connect.pdb.minAvailable }}
{{- with .Values.connect.pdb.maxUnavailable }}
maxUnavailable: {{ . }}
{{- else }}
minAvailable: {{ .Values.connect.pdb.minAvailable }}
{{- end }}
{{- if and .Values.connect.pdb.maxUnavailable (not .Values.connect.pdb.minAvailable)}}
maxUnavailable: {{ .Values.connect.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/component: connect
Expand Down
7 changes: 3 additions & 4 deletions charts/connect/templates/operator-pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ metadata:
{{- include "onepassword-connect.labels" . | nindent 4 }}
{{- include "onepassword-connect.extraAnnotations" .Values.operator.pdb }}
spec:
{{- if .Values.operator.pdb.minAvailable }}
{{- with .Values.operator.pdb.maxUnavailable }}
maxUnavailable: {{ . }}
{{- else }}
minAvailable: {{ .Values.operator.pdb.minAvailable }}
{{- end }}
{{- if and .Values.operator.pdb.maxUnavailable (not .Values.operator.pdb.minAvailable)}}
maxUnavailable: {{ .Values.operator.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/component: operator
Expand Down
8 changes: 4 additions & 4 deletions charts/connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ connect:
# Additional annotations to be added to the PDB Connect
annotations: {}
# Number of pods that are available after eviction as number or percentage (eg.: 50%)
# minAvailable: 1
minAvailable: 1
# Number of pods that are unavailble after eviction as number or percentage (eg.: 50%)
# maxUnavailable: 1
maxUnavailable: 1

# 1Password Connect API and Sync Service
probes:
Expand Down Expand Up @@ -296,9 +296,9 @@ operator:
# Additional annotations to be added to the PDB Operator
annotations: {}
# Number of pods that are available after eviction as number or percentage (eg.: 50%)
# minAvailable: 1
minAvailable: 1
# Number of pods that are unavailble after eviction as number or percentage (eg.: 50%)
# maxUnavailable: 1
maxUnavailable: 1

# Additional annotations to be added to the Operator pods.
annotations: {}
Expand Down

0 comments on commit a3d724a

Please sign in to comment.