Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Add support for imagePullSecrets to helm charts
Browse files Browse the repository at this point in the history
fixes #2712

Co-authored-by: Chris Whitty <[email protected]>
  • Loading branch information
Samze and Chris Whitty committed Oct 4, 2019
1 parent 73229d4 commit 52fb287
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ chart and their default values.
|-----------|-------------|---------|
| `image` | Service catalog image to use | `quay.io/kubernetes-service-catalog/service-catalog:v0.3.0-beta.0` |
| `imagePullPolicy` | `imagePullPolicy` for the service catalog | `Always` |
| `imagePullSecrets`| The pre-existing secrets to use to pull images from a private registry | `[]` |
| `webhook.updateStrategy` | `updateStrategy` for the service catalog webhook deployment | `RollingUpdate` |
| `webhook.minReadySeconds` | how many seconds an webhook server pod needs to be ready before killing the next, during update | `1` |
| `webhook.annotations` | Annotations for webhook pods | `{}` |
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/cleaner-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: clean-job-account
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: service-catalog
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/controller-manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
serviceAccountName: "{{ .Values.controllerManager.serviceAccount }}"
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: controller-manager
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: migration-job-account
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
volumes:
- name: storage
persistentVolumeClaim:
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/pre-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: pre-migration-job-account
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
volumes:
- name: storage
persistentVolumeClaim:
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/webhook-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
{{- end }}
spec:
serviceAccountName: "{{ .Values.webhook.serviceAccount }}"
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: svr
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Default values for Service Catalog
# service-catalog image to use
image: quay.io/kubernetes-service-catalog/service-catalog:v0.3.0-beta.0
# imagePullSecrets pre-existing secrets to use to pull images from a private registry
imagePullSecrets: []
# imagePullPolicy for the service-catalog; valid values are "IfNotPresent",
# "Never", and "Always"
imagePullPolicy: Always
Expand Down
2 changes: 2 additions & 0 deletions charts/healthcheck/templates/healthcheck-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ spec:
heritage: "{{ .Release.Service }}"
spec:
serviceAccountName: "service-catalog-healthcheck"
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: healthcheck
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/healthcheck/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Default values for Health Check
# Image to use
image: quay.io/kubernetes-service-catalog/healthcheck:v0.3.0-beta.0
# imagePullSecrets pre-existing secrets to use to pull images from a private registry
imagePullSecrets: []
# ImagePullPolicy; valid values are "IfNotPresent", "Never", and "Always"
imagePullPolicy: IfNotPresent
rbacApiVersion: rbac.authorization.k8s.io/v1
1 change: 1 addition & 0 deletions charts/test-broker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Service Broker
| Parameter | Description | Default |
|-----------|-------------|---------|
| `image` | Image to use | `quay.io/kubernetes-service-catalog/test-broker:v0.3.0-beta.0` |
| `imagePullSecrets`| The pre-existing secrets to use to pull images from a private registry | `[]` |
| `imagePullPolicy` | `imagePullPolicy` for the test-broker | `Always` |

Specify each parameter using the `--set key=value[,key=value]` argument to
Expand Down
2 changes: 2 additions & 0 deletions charts/test-broker/templates/broker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: test-broker
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/test-broker/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Default values for Test Service Broker
# Image to use
image: quay.io/kubernetes-service-catalog/test-broker:v0.3.0-beta.0
# imagePullSecrets pre-existing secrets to use to pull images from a private registry
imagePullSecrets: []
# ImagePullPolicy; valid values are "IfNotPresent", "Never", and "Always"
imagePullPolicy: Always
# Whether the broker should also log to stderr instead of to files only
Expand Down
1 change: 1 addition & 0 deletions charts/ups-broker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Service Broker
| Parameter | Description | Default |
|-----------|-------------|---------|
| `image` | Image to use | `quay.io/kubernetes-service-catalog/user-broker:v0.3.0-beta.0` |
| `imagePullSecrets`| The pre-existing secrets to use to pull images from a private registry | `[]` |
| `imagePullPolicy` | `imagePullPolicy` for the ups-broker | `Always` |

Specify each parameter using the `--set key=value[,key=value]` argument to
Expand Down
2 changes: 2 additions & 0 deletions charts/ups-broker/templates/broker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
containers:
- name: ups-broker
image: {{ .Values.image }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ups-broker/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Default values for User-Provided Service Broker
# Image to use
image: quay.io/kubernetes-service-catalog/user-broker:v0.3.0-beta.0
# imagePullSecrets pre-existing secrets to use to pull images from a private registry
imagePullSecrets: []
# ImagePullPolicy; valid values are "IfNotPresent", "Never", and "Always"
imagePullPolicy: Always
# Whether the broker should also log to stderr instead of to files only
Expand Down

0 comments on commit 52fb287

Please sign in to comment.