Skip to content

Commit fd0de2d

Browse files
Merge branch 'main' into fix/allow-literal-zero-values
2 parents 6f472f8 + a66a1f9 commit fd0de2d

19 files changed

+41
-7
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.13.0
2+
version: 6.12.2
33
apiVersion: v2
44
appVersion: 7.4.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,14 @@ Parameter | Description | Default
137137
`ingress.path` | Ingress accepted path | `/`
138138
`ingress.pathType` | Ingress [path type](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) | `ImplementationSpecific`
139139
`ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]`
140+
`ingress.labels` | Ingress extra labels | `{}`
140141
`ingress.annotations` | Ingress annotations | `nil`
141142
`ingress.hosts` | Ingress accepted hostnames | `nil`
142143
`ingress.tls` | Ingress TLS configuration | `nil`
143144
`livenessProbe.enabled` | enable Kubernetes livenessProbe. Disable to use oauth2-proxy with Istio mTLS. See [Istio FAQ](https://istio.io/help/faq/security/#k8s-health-checks) | `true`
144145
`livenessProbe.initialDelaySeconds` | number of seconds | 0
145146
`livenessProbe.timeoutSeconds` | number of seconds | 1
147+
`namespaceOverride` | Override the deployment namespace | `""`
146148
`nodeSelector` | node labels for pod assignment | `{}`
147149
`deploymentAnnotations` | annotations to add to the deployment | `{}`
148150
`podAnnotations` | annotations to add to each pod | `{}`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
To verify that oauth2-proxy has started, run:
22

3-
kubectl --namespace={{ .Release.Namespace }} get pods -l "app={{ template "oauth2-proxy.name" . }}"
3+
kubectl --namespace={{ template "oauth2-proxy.namespace" $ }} get pods -l "app={{ template "oauth2-proxy.name" . }}"

helm/oauth2-proxy/templates/_helpers.tpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ Create the name of the service account to use
7878
{{- end -}}
7979
{{- end -}}
8080

81+
{{/*
82+
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
83+
*/}}
84+
{{- define "oauth2-proxy.namespace" -}}
85+
{{- if .Values.namespaceOverride -}}
86+
{{- .Values.namespaceOverride -}}
87+
{{- else -}}
88+
{{- .Release.Namespace -}}
89+
{{- end -}}
90+
{{- end -}}
91+
8192
{{/*
8293
Redis subcharts fullname
8394
*/}}

helm/oauth2-proxy/templates/configmap-alpha.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
app: {{ template "oauth2-proxy.name" . }}
1111
{{- include "oauth2-proxy.labels" . | indent 4 }}
1212
name: {{ template "oauth2-proxy.fullname" . }}-alpha
13+
namespace: {{ template "oauth2-proxy.namespace" $ }}
1314
data:
1415
oauth2_proxy.yml: |
1516
---

helm/oauth2-proxy/templates/configmap-authenticated-emails-file.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
{{ toYaml .Values.authenticatedEmailsFile.annotations | indent 4 }}
1212
{{- end }}
1313
name: {{ template "oauth2-proxy.fullname" . }}-accesslist
14+
namespace: {{ template "oauth2-proxy.namespace" $ }}
1415
data:
1516
{{ default "restricted_user_access" .Values.authenticatedEmailsFile.restrictedUserAccessKey }}: {{ .Values.authenticatedEmailsFile.restricted_access | quote }}
1617
{{- end }}

helm/oauth2-proxy/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
app: {{ template "oauth2-proxy.name" . }}
1212
{{- include "oauth2-proxy.labels" . | indent 4 }}
1313
name: {{ template "oauth2-proxy.fullname" . }}
14+
namespace: {{ template "oauth2-proxy.namespace" $ }}
1415
data:
1516
oauth2_proxy.cfg: {{ tpl .Values.config.configFile $ | quote }}
1617
{{- end }}

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
{{ toYaml .Values.deploymentAnnotations | indent 8 }}
1010
{{- end }}
1111
name: {{ template "oauth2-proxy.fullname" . }}
12+
namespace: {{ template "oauth2-proxy.namespace" $ }}
1213
spec:
1314
replicas: {{ .Values.replicaCount }}
1415
{{- if .Values.revisionHistoryLimit }}

helm/oauth2-proxy/templates/google-secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
app: {{ template "oauth2-proxy.name" . }}
77
{{- include "oauth2-proxy.labels" . | indent 4 }}
88
name: {{ template "oauth2-proxy.fullname" . }}-google
9+
namespace: {{ template "oauth2-proxy.namespace" $ }}
910
type: Opaque
1011
data:
1112
service-account.json: {{ .Values.config.google.serviceAccountJson | b64enc | quote }}

helm/oauth2-proxy/templates/ingress.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ kind: Ingress
99
metadata:
1010
labels:
1111
app: {{ template "oauth2-proxy.name" . }}
12-
{{- include "oauth2-proxy.labels" . | indent 4 }}
12+
{{- include "oauth2-proxy.labels" . | indent 4 }}
13+
{{- if .Values.ingress.labels }}
14+
{{ toYaml .Values.ingress.labels | indent 4 }}
15+
{{- end }}
1316
name: {{ template "oauth2-proxy.fullname" . }}
17+
namespace: {{ template "oauth2-proxy.namespace" $ }}
1418
{{- with .Values.ingress.annotations }}
1519
annotations:
1620
{{ toYaml . | indent 4 }}

0 commit comments

Comments
 (0)