Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1325 from huiwq1990/imagePullSecrets
Browse files Browse the repository at this point in the history
add helm parameter imagePullSecrets
  • Loading branch information
k8s-ci-robot authored Dec 8, 2020
2 parents 9821ccf + c03b6ad commit 21b60ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kubefed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ chart and their default values.
| controllermanager.image | Name of the KubeFed image. | kubefed |
| controllermanager.tag | Tag of the KubeFed image. | latest |
| controllermanager.imagePullPolicy | Image pull policy. | IfNotPresent |
| controllermanager.imagePullSecrets | Image pull secrets. | []
| controllermanager.commonTolerations | Tolerations for all the pods. | [] |
| controllermanager.commonNodeSelector | Node selector for all the pods. | {} |
| controllermanager.featureGates.PushReconciler | Push reconciler feature. | true |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
nodeSelector:
{{- toYaml .Values.commonNodeSelector | nindent 8 }}
tolerations:
Expand Down Expand Up @@ -86,6 +90,10 @@ spec:
rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
nodeSelector:
{{- toYaml .Values.commonNodeSelector | nindent 8 }}
tolerations:
Expand Down
4 changes: 4 additions & 0 deletions charts/kubefed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ controllermanager:
# value: "value"
# effect: "NoSchedule"

## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# - name: secretName

controller:
annotations: {}
replicaCount: 2
Expand Down

0 comments on commit 21b60ac

Please sign in to comment.