Skip to content

Commit 54c9f5a

Browse files
Merge pull request #368 from younsl/feat/serviceaccount-imagepullsecrets
feat(oauth2-proxy): Add support imagePullSecrets to service account
2 parents 6d8e089 + 0925ea3 commit 54c9f5a

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 8.3.3
2+
version: 8.4.0
33
apiVersion: v2
44
appVersion: 7.13.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -31,8 +31,8 @@ maintainers:
3131
kubeVersion: ">=1.16.0-0"
3232
annotations:
3333
artifacthub.io/changes: |
34-
- kind: changed
35-
description: Updated OAuth2-Proxy image to v7.13.0
34+
- kind: added
35+
description: Add imagePullSecrets support to ServiceAccount
3636
links:
3737
- name: Github PR
38-
url: https://github.com/oauth2-proxy/manifests/pull/366
38+
url: https://github.com/oauth2-proxy/manifests/pull/368

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
220220
| `serviceAccount.enabled` | create a service account | `true` |
221221
| `serviceAccount.name` | the service account name | `` |
222222
| `serviceAccount.annotations` | (optional) annotations for the service account | `{}` |
223+
| `serviceAccount.imagePullSecrets` | imagePullSecrets for the service account | `[]` |
223224
| `strategy` | configure deployment strategy | `{}` |
224225
| `tolerations` | list of node taints to tolerate | `[]` |
225226
| `securityContext.enabled` | enable Kubernetes security context on container | `true` |

helm/oauth2-proxy/templates/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ metadata:
1717
{{- $labels | indent 4 }}
1818
name: {{ $saName }}
1919
namespace: {{ $namespace }}
20+
{{- with .Values.serviceAccount.imagePullSecrets }}
21+
imagePullSecrets:
22+
{{ toYaml . | indent 2 }}
23+
{{- end }}
2024
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
2125
{{- if and .Values.redis.enabled .Values.initContainers.waitForRedis.enabled }}
2226
---

helm/oauth2-proxy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ serviceAccount:
176176
name:
177177
automountServiceAccountToken: true
178178
annotations: {}
179+
## imagePullSecrets for the service account
180+
imagePullSecrets: []
181+
# - name: myRegistryKeySecretName
179182

180183
# Network policy settings.
181184
networkPolicy:

0 commit comments

Comments
 (0)