Skip to content

Commit

Permalink
fix issue with image pull secrets (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
parikls authored Feb 24, 2025
1 parent 71b5c98 commit e76fbdc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/admission-controller-lib/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 0.1.2
version: 0.1.3
appVersion: 0.1.0
name: admission-controller-lib
description: A Helm library chart that provides partial templates for an admission controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ spec:
args: ["post-install"]
env:
{{- include "admission-controller-lib.env" . | nindent 12 }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/admission-controller-lib/templates/_preinstall-job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ spec:
args: ["pre-install"]
env:
{{- include "admission-controller-lib.env" . | nindent 12 }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/admission-controller-lib/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
imagePullSecrets: []

admissionController:
serviceName: ""
webhookPath: "/mutate"
Expand Down

0 comments on commit e76fbdc

Please sign in to comment.