Skip to content

Commit

Permalink
Merge pull request #228 from jkroepke/imagePullSecrets
Browse files Browse the repository at this point in the history
[helm] Add global.imagePullSecrets
  • Loading branch information
pierluigilenoci authored Aug 23, 2024
2 parents ca0ef13 + b2d887e commit 1daccb7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.7.10
version: 7.7.11
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down
22 changes: 12 additions & 10 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,23 @@ spec:
name: configaccesslist
{{- end }}

{{- if .Values.imagePullSecrets }}
{{- with (.Values.imagePullSecrets | default .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- with .Values.topologySpreadConstraints }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
9 changes: 8 additions & 1 deletion helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
global: {}
# To help compatibility with other charts which use global.imagePullSecrets.
# global:
# imagePullSecrets:
# - name: pullSecret1
# - name: pullSecret2

## Override the deployment namespace
##
namespaceOverride: ""
Expand Down Expand Up @@ -75,7 +82,7 @@ image:
# Optionally specify an array of imagePullSecrets.
# Secrets must be manually created in the namespace.
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
# imagePullSecrets:
imagePullSecrets: []
# - name: myRegistryKeySecretName

# Set a custom containerPort if required.
Expand Down

0 comments on commit 1daccb7

Please sign in to comment.