Skip to content

Commit

Permalink
chore: Controller Manager affinity can now be deleted.
Browse files Browse the repository at this point in the history
Signed-off-by: kahirokunn <[email protected]>
  • Loading branch information
kahirokunn committed Oct 18, 2023
1 parent e47b2ba commit 14ba61d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/build/helmify/replacements.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ var replacements = map[string]string{

`HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_POD_SECURITY_CONTEXT: ""`: `{{- toYaml .Values.controllerManager.podSecurityContext | nindent 8 }}`,

`HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_AFFINITY: ""`: `{{- toYaml .Values.controllerManager.affinity | nindent 8 }}`,
`HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_AFFINITY: ""`: `{{- if .Values.controllerManager.affinity }}
{{- toYaml .Values.controllerManager.affinity | nindent 8 }}
{{- end }}`,

"HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_STRATEGY_TYPE": `{{ .Values.controllerManager.strategyType }}`,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ spec:
release: '{{ .Release.Name }}'
spec:
affinity:
{{- if .Values.controllerManager.affinity }}
{{- toYaml .Values.controllerManager.affinity | nindent 8 }}
{{- end }}
automountServiceAccountToken: true
containers:
- {{- if .Values.image.release }}
Expand Down

0 comments on commit 14ba61d

Please sign in to comment.