diff --git a/helm/oauth2-proxy/Chart.yaml b/helm/oauth2-proxy/Chart.yaml index eacc8b0..b633186 100644 --- a/helm/oauth2-proxy/Chart.yaml +++ b/helm/oauth2-proxy/Chart.yaml @@ -1,5 +1,5 @@ name: oauth2-proxy -version: 8.3.3 +version: 8.4.0 apiVersion: v2 appVersion: 7.13.0 home: https://oauth2-proxy.github.io/oauth2-proxy/ @@ -31,8 +31,8 @@ maintainers: kubeVersion: ">=1.16.0-0" annotations: artifacthub.io/changes: | - - kind: changed - description: Updated OAuth2-Proxy image to v7.13.0 + - kind: added + description: Add imagePullSecrets support to ServiceAccount links: - name: Github PR - url: https://github.com/oauth2-proxy/manifests/pull/366 + url: https://github.com/oauth2-proxy/manifests/pull/368 diff --git a/helm/oauth2-proxy/README.md b/helm/oauth2-proxy/README.md index 9d7de12..9928cd4 100644 --- a/helm/oauth2-proxy/README.md +++ b/helm/oauth2-proxy/README.md @@ -220,6 +220,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart | `serviceAccount.enabled` | create a service account | `true` | | `serviceAccount.name` | the service account name | `` | | `serviceAccount.annotations` | (optional) annotations for the service account | `{}` | +| `serviceAccount.imagePullSecrets` | imagePullSecrets for the service account | `[]` | | `strategy` | configure deployment strategy | `{}` | | `tolerations` | list of node taints to tolerate | `[]` | | `securityContext.enabled` | enable Kubernetes security context on container | `true` | diff --git a/helm/oauth2-proxy/templates/serviceaccount.yaml b/helm/oauth2-proxy/templates/serviceaccount.yaml index e38cd7a..97aeffe 100644 --- a/helm/oauth2-proxy/templates/serviceaccount.yaml +++ b/helm/oauth2-proxy/templates/serviceaccount.yaml @@ -17,6 +17,10 @@ metadata: {{- $labels | indent 4 }} name: {{ $saName }} namespace: {{ $namespace }} +{{- with .Values.serviceAccount.imagePullSecrets }} +imagePullSecrets: +{{ toYaml . | indent 2 }} +{{- end }} automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} {{- if and .Values.redis.enabled .Values.initContainers.waitForRedis.enabled }} --- diff --git a/helm/oauth2-proxy/values.yaml b/helm/oauth2-proxy/values.yaml index 8516e9c..728fbaa 100644 --- a/helm/oauth2-proxy/values.yaml +++ b/helm/oauth2-proxy/values.yaml @@ -176,6 +176,9 @@ serviceAccount: name: automountServiceAccountToken: true annotations: {} + ## imagePullSecrets for the service account + imagePullSecrets: [] + # - name: myRegistryKeySecretName # Network policy settings. networkPolicy: