Skip to content

Commit

Permalink
Fix imagePullSecrets bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adriananeci authored and k8s-infra-cherrypick-robot committed Aug 22, 2023
1 parent d9e33a9 commit e5bb68e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 4 additions & 8 deletions hack/charts/cluster-api-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- args:
{{- if .Values.logLevel }}
Expand Down Expand Up @@ -80,10 +84,6 @@ spec:
image: "{{- if .registry -}}{{ .registry }}/{{- end -}}{{ .repository }}{{- if (.digest) -}} @{{ .digest }}{{- else -}}:{{ default $.Chart.AppVersion .tag }} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.image.manager.pullPolicy }}
{{- with .Values.imagePullSecrets.manager }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
name: manager
ports:
- containerPort: 9443
Expand Down Expand Up @@ -112,10 +112,6 @@ spec:
image: "{{- if .registry -}}{{ .registry }}/{{- end -}}{{ .repository }}{{- if (.digest) -}} @{{ .digest }}{{- else -}}:{{ default $.Chart.AppVersion .tag }} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.image.kubeRBACProxy.pullPolicy }}
{{- with .Values.imagePullSecrets.kubeRBACProxy }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
name: kube-rbac-proxy
ports:
- containerPort: 8443
Expand Down
4 changes: 1 addition & 3 deletions hack/charts/cluster-api-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ image:
pullPolicy: IfNotPresent
healthAddr: ":8081"
metricsBindAddr: "127.0.0.1:8080"
imagePullSecrets:
manager: {}
kubeRBACProxy: {}
imagePullSecrets: {}
resources:
manager:
limits:
Expand Down

0 comments on commit e5bb68e

Please sign in to comment.