Skip to content

Commit a2465c8

Browse files
committed
Change imagePullSecrets of helm chart to string
1 parent 69f55aa commit a2465c8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

deployments/helm-chart/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Parameter | Description | Default
247247
`controller.service.httpsPort.nodePort` | The custom NodePort for the HTTPS port. Requires `controller.service.type` set to `NodePort`. | ""
248248
`controller.service.httpsPort.targetPort` | The target port of the HTTPS port of the Ingress controller service. | 443
249249
`controller.serviceAccount.name` | The name of the service account of the Ingress controller pods. Used for RBAC. | Autogenerated
250-
`controller.serviceAccount.imagePullSecrets` | The names of the secrets containing docker registry credentials. | []
250+
`controller.serviceAccount.imagePullSecretName` | The name of the secret containing docker registry credentials. Secret must exist in the same namespace as the helm release. | ""
251251
`controller.reportIngressStatus.enable` | Update the address field in the status of Ingresses resources with an external address of the Ingress controller. You must also specify the source of the external address either through an external service via `controller.reportIngressStatus.externalService` or the `external-status-address` entry in the ConfigMap via `controller.config.entries`. **Note:** `controller.config.entries.external-status-address` takes precedence if both are set. | true
252252
`controller.reportIngressStatus.externalService` | Specifies the name of the service with the type LoadBalancer through which the Ingress controller is exposed externally. The external address of the service is used when reporting the status of Ingress resources. `controller.reportIngressStatus.enable` must be set to `true`. The default is autogenerated and enabled when `controller.service.create` is set to `true` and `controller.service.type` is set to `LoadBalancer`. | Autogenerated
253253
`controller.reportIngressStatus.enableLeaderElection` | Enable Leader election to avoid multiple replicas of the controller reporting the status of Ingress resources. `controller.reportIngressStatus.enable` must be set to `true`. | true

deployments/helm-chart/templates/controller-serviceaccount.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "nginx-ingress.labels" . | nindent 4 }}
9-
{{- if .Values.controller.serviceAccount.imagePullSecrets }}
9+
{{- if .Values.controller.serviceAccount.imagePullSecretName }}
1010
imagePullSecrets:
11-
{{ toYaml .Values.controller.serviceAccount.imagePullSecrets }}
11+
- name: {{ .Values.controller.serviceAccount.imagePullSecretName }}
1212
{{- end }}
1313
{{- end }}

deployments/helm-chart/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ controller:
243243
## Autogenerated if not set or set to "".
244244
# name: nginx-ingress
245245

246-
## The names of the secrets containing docker registry credentials.
247-
imagePullSecrets: []
248-
# - name: secret_name
246+
## The name of the secret containing docker registry credentials.
247+
## Secret must exist in the same namespace as the helm release.
248+
imagePullSecretName: ""
249249

250250
reportIngressStatus:
251251
## Update the address field in the status of Ingresses resources with an external address of the Ingress controller.

docs-web/installation/installation-with-helm.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ The following tables lists the configurable parameters of the NGINX Ingress cont
362362
* - ``controller.serviceAccount.name``
363363
- The name of the service account of the Ingress controller pods. Used for RBAC.
364364
- Autogenerated
365-
* - ``controller.serviceAccount.imagePullSecrets``
366-
- The names of the secrets containing docker registry credentials.
367-
- []
365+
* - ``controller.serviceAccount.imagePullSecretName``
366+
- The name of the secret containing docker registry credentials. Secret must exist in the same namespace as the helm release.
367+
- ""
368368
* - ``controller.reportIngressStatus.enable``
369369
- Update the address field in the status of Ingresses resources with an external address of the Ingress controller. You must also specify the source of the external address either through an external service via ``controller.reportIngressStatus.externalService`` or the ``external-status-address`` entry in the ConfigMap via ``controller.config.entries``. **Note:** ``controller.config.entries.external-status-address`` takes precedence if both are set.
370370
- true

0 commit comments

Comments
 (0)