Skip to content

Commit

Permalink
Merge pull request #217 from k8s-infra-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…16-to-release-0.5

[release-0.5] 🐛 Fix imagePullSecrets bug
  • Loading branch information
k8s-ci-robot committed Aug 22, 2023
2 parents d9e33a9 + e5bb68e commit 6956436
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 6956436

Please sign in to comment.