Skip to content

Commit

Permalink
fix(helm): allow installation of post-install and post-upgrade jobs
Browse files Browse the repository at this point in the history
Was missing from 52db6a7

Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
  • Loading branch information
sathieu committed Oct 21, 2022
1 parent 91d29f6 commit eb9a40d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/build/helmify/static/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ Output post install webhook probe container entry
resources:
{{- toYaml .Values.postInstall.resources | nindent 4 }}
securityContext:
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- toYaml .Values.postInstall.securityContext | nindent 4 }}
volumeMounts:
- mountPath: /certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
resources:
{{- toYaml .Values.postUpgrade.resources | nindent 12 }}
securityContext:
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- toYaml .Values.postUpgrade.securityContext | nindent 12 }}
{{- with .Values.postUpgrade }}
affinity:
Expand Down
4 changes: 4 additions & 0 deletions manifest_staging/charts/gatekeeper/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ Output post install webhook probe container entry
resources:
{{- toYaml .Values.postInstall.resources | nindent 4 }}
securityContext:
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- toYaml .Values.postInstall.securityContext | nindent 4 }}
volumeMounts:
- mountPath: /certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
resources:
{{- toYaml .Values.postUpgrade.resources | nindent 12 }}
securityContext:
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- toYaml .Values.postUpgrade.securityContext | nindent 12 }}
{{- with .Values.postUpgrade }}
affinity:
Expand Down

0 comments on commit eb9a40d

Please sign in to comment.