Skip to content

Commit

Permalink
added imagepullsecrets
Browse files Browse the repository at this point in the history
Signed-off-by: CrimsonRot <[email protected]>
  • Loading branch information
CrimsonRot committed Oct 18, 2024
1 parent 212d817 commit b444357
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/kubewarden-controller/templates/post-install-hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
{{- if .Values.preDeleteHook.podSecurityContext }}
securityContext:
{{ toYaml .Values.preDeleteHook.podSecurityContext | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- include "imagePullSecrets" .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: post-install-job
Expand Down Expand Up @@ -85,6 +89,10 @@ spec:
{{- if .Values.preDeleteHook.podSecurityContext }}
securityContext:
{{ toYaml .Values.preDeleteHook.podSecurityContext | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- include "imagePullSecrets" .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: delete-pre-1-11-policyreports-job
Expand All @@ -94,7 +102,7 @@ spec:
securityContext:
{{ toYaml .Values.preDeleteHook.containerSecurityContext | indent 12 }}
{{- end }}

---
# Delete pre 1.17 webhook certificates secret.
apiVersion: batch/v1
Expand Down Expand Up @@ -127,6 +135,10 @@ spec:
{{- if .Values.preDeleteHook.podSecurityContext }}
securityContext:
{{ toYaml .Values.preDeleteHook.podSecurityContext | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- include "imagePullSecrets" .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: del-pre-1-17-webhook-srv-cert
Expand Down

0 comments on commit b444357

Please sign in to comment.