Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Changed the process to expand yaml so that maxUnavailable, etc…
Browse files Browse the repository at this point in the history
…. can be used.

Signed-off-by: kahirokunn <[email protected]>
kahirokunn committed Jan 30, 2024
1 parent 6503979 commit 3a8c4bd
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -11,8 +11,7 @@ metadata:
release: '{{ .Release.Name }}'
name: gatekeeper-controller-manager
namespace: '{{ .Release.Namespace }}'
spec:
minAvailable: {{ .Values.pdb.controllerManager.minAvailable }}
spec: {{ .Values.pdb.controllerManager | toYaml | nindent 2 }}
selector:
matchLabels:
app: '{{ template "gatekeeper.name" . }}'
2 changes: 1 addition & 1 deletion cmd/build/helmify/kustomize-for-helm.yaml
Original file line number Diff line number Diff line change
@@ -297,7 +297,7 @@ metadata:
name: gatekeeper-controller-manager
namespace: gatekeeper-system
spec:
minAvailable: HELMSUBST_PDB_CONTROLLER_MANAGER_MINAVAILABLE
minAvailable: HELMSUBST_PDB_CONTROLLER_MANAGER
selector:
matchLabels:
control-plane: controller-manager
2 changes: 1 addition & 1 deletion cmd/build/helmify/replacements.go
Original file line number Diff line number Diff line change
@@ -217,7 +217,7 @@ var replacements = map[string]string{
- 'services/status'
{{- end }}`,

"HELMSUBST_PDB_CONTROLLER_MANAGER_MINAVAILABLE": `{{ .Values.pdb.controllerManager.minAvailable }}`,
"HELMSUBST_PDB_CONTROLLER_MANAGER": `{{ .Values.pdb.controllerManager | toYaml | nindent 2 }}`,

`HELMSUBST_AUDIT_CONTROLLER_MANAGER_DEPLOYMENT_IMAGE_RELEASE: ""`: `{{- if .Values.image.release }}
image: {{ .Values.image.repository }}:{{ .Values.image.release }}
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ metadata:
name: gatekeeper-controller-manager
namespace: '{{ .Release.Namespace }}'
spec:
minAvailable: {{ .Values.pdb.controllerManager.minAvailable }}
minAvailable: {{ .Values.pdb.controllerManager | toYaml | nindent 2 }}
selector:
matchLabels:
app: '{{ template "gatekeeper.name" . }}'

0 comments on commit 3a8c4bd

Please sign in to comment.