Skip to content

Commit

Permalink
Merge branch 'main' into feat/proxyVarsFromSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
pierluigilenoci authored Aug 23, 2024
2 parents 4e392b5 + 1daccb7 commit 641385c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
6 changes: 3 additions & 3 deletions helm/oauth2-proxy/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 19.6.0
digest: sha256:201700e51781c5a41ee4b275fbfa33fa13bd755354a35ab703c3cb3266e3f5c5
generated: "2024-06-27T16:29:26.088834+02:00"
version: 19.6.1
digest: sha256:f8e8c7b17de324c1ee1401bc973d985bbbcb75d30faa2f5317ab5f54d6899c0d
generated: "2024-07-16T14:41:03.616506+02:00"
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords:
- redis
dependencies:
- name: redis
version: 19.6.0
version: 19.6.1
repository: https://charts.bitnami.com/bitnami
alias: redis
condition: redis.enabled
Expand Down
8 changes: 8 additions & 0 deletions helm/oauth2-proxy/ci/tpl-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ pass_authorization_header: "true"

extraArgs:
pass-authorization-header: "{{ $.Values.pass_authorization_header }}"

extraVolumes:
- name: "{{ $.Release.Name }}-secret"
secret:
secretName: "{{ .Release.Name }}-secret"
items:
- key: secret
path: secret
24 changes: 13 additions & 11 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ spec:
{{- end }}
{{- end }}
{{- if ne (len .Values.extraVolumes) 0 }}
{{ toYaml .Values.extraVolumes | indent 6 }}
{{ tpl (toYaml .Values.extraVolumes) . | indent 6 }}
{{- end }}
{{- if and (.Values.authenticatedEmailsFile.enabled) (eq .Values.authenticatedEmailsFile.persistence "configmap") }}
- configMap:
Expand All @@ -393,21 +393,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 641385c

Please sign in to comment.