Skip to content

Commit 2b852f0

Browse files
authored
chore(chart-deps): update oauth2-proxy to version 8.5.0 (#2725)
1 parent 2cb5342 commit 2b852f0

File tree

8 files changed

+200
-29
lines changed

8 files changed

+200
-29
lines changed

chart/chart-index/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dependencies:
8181
version: 5.4.0
8282
repository: https://charts.min.io/
8383
- name: oauth2-proxy
84-
version: 8.3.3
84+
version: 8.5.0
8585
repository: https://oauth2-proxy.github.io/manifests
8686
- name: opentelemetry-operator
8787
alias: otel-operator

charts/oauth2-proxy/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
annotations:
22
artifacthub.io/changes: |
3-
- kind: changed
4-
description: Updated OAuth2-Proxy image to v7.13.0
3+
- kind: added
4+
description: Add HTTPRoutes for Gateway API support
55
links:
66
- name: Github PR
7-
url: https://github.com/oauth2-proxy/manifests/pull/366
7+
url: https://github.com/oauth2-proxy/manifests/pull/369
88
apiVersion: v2
99
appVersion: 7.13.0
1010
dependencies:
@@ -36,4 +36,4 @@ name: oauth2-proxy
3636
sources:
3737
- https://github.com/oauth2-proxy/oauth2-proxy
3838
- https://github.com/oauth2-proxy/manifests
39-
version: 8.3.3
39+
version: 8.5.0

charts/oauth2-proxy/README.md

Lines changed: 61 additions & 4 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Minimal Gateway API configuration with default rule
2+
gatewayApi:
3+
enabled: true
4+
gatewayRef:
5+
name: minimal-gateway
6+
hostnames:
7+
- minimal.example.com
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Test values for Gateway API HTTPRoute configuration
2+
gatewayApi:
3+
enabled: true
4+
gatewayRef:
5+
name: example-gateway
6+
namespace: gateway-system
7+
hostnames:
8+
- oauth.example.com
9+
rules:
10+
- matches:
11+
- path:
12+
type: PathPrefix
13+
value: /oauth2
14+
annotations:
15+
example.com/annotation: "value"
16+
labels:
17+
example.com/label: "value"
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{{- if .Values.gatewayApi.enabled -}}
2+
{{- $serviceName := include "oauth2-proxy.fullname" . -}}
3+
{{- $servicePort := .Values.service.portNumber -}}
4+
apiVersion: gateway.networking.k8s.io/v1
5+
kind: HTTPRoute
6+
metadata:
7+
labels:
8+
app: {{ template "oauth2-proxy.name" . }}
9+
{{- include "oauth2-proxy.labels" . | indent 4 }}
10+
{{- if .Values.gatewayApi.labels }}
11+
{{ toYaml .Values.gatewayApi.labels | indent 4 }}
12+
{{- end }}
13+
name: {{ template "oauth2-proxy.fullname" . }}
14+
namespace: {{ template "oauth2-proxy.namespace" $ }}
15+
{{- with .Values.gatewayApi.annotations }}
16+
annotations:
17+
{{ tpl ( toYaml . ) $ | indent 4 }}
18+
{{- end }}
19+
spec:
20+
{{- if .Values.gatewayApi.gatewayRef.name }}
21+
parentRefs:
22+
- name: {{ .Values.gatewayApi.gatewayRef.name }}
23+
{{- if .Values.gatewayApi.gatewayRef.namespace }}
24+
namespace: {{ .Values.gatewayApi.gatewayRef.namespace }}
25+
{{- end }}
26+
{{- end }}
27+
{{- if .Values.gatewayApi.hostnames }}
28+
hostnames:
29+
{{- range .Values.gatewayApi.hostnames }}
30+
- {{ tpl . $ | quote }}
31+
{{- end }}
32+
{{- end }}
33+
rules:
34+
{{- if .Values.gatewayApi.rules }}
35+
{{- range .Values.gatewayApi.rules }}
36+
- matches:
37+
{{- if .matches }}
38+
{{- toYaml .matches | nindent 4 }}
39+
{{- else }}
40+
- path:
41+
type: PathPrefix
42+
value: /
43+
{{- end }}
44+
backendRefs:
45+
{{- if .backendRefs }}
46+
{{- toYaml .backendRefs | nindent 4 }}
47+
{{- else }}
48+
- name: {{ $serviceName }}
49+
port: {{ $servicePort }}
50+
{{- end }}
51+
{{- if .filters }}
52+
filters:
53+
{{- toYaml .filters | nindent 4 }}
54+
{{- end }}
55+
{{- end }}
56+
{{- else }}
57+
- matches:
58+
- path:
59+
type: PathPrefix
60+
value: /
61+
backendRefs:
62+
- name: {{ $serviceName }}
63+
port: {{ $servicePort }}
64+
{{- end }}
65+
{{- end -}}

charts/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
---

charts/oauth2-proxy/values.yaml

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ config:
3131
# The name of the cookie that oauth2-proxy will create
3232
# If left empty, it will default to the release name
3333
cookieName: ""
34-
google:
35-
{}
34+
google: {}
3635
# adminEmail: xxxx
3736
# useApplicationDefaultCredentials: true
3837
# targetPrincipal: xxxx
@@ -84,8 +83,7 @@ image:
8483
# Optionally specify an array of imagePullSecrets.
8584
# Secrets must be manually created in the namespace.
8685
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
87-
imagePullSecrets:
88-
[]
86+
imagePullSecrets: []
8987
# - name: myRegistryKeySecretName
9088

9189
# Set a custom containerPort if required.
@@ -176,6 +174,9 @@ serviceAccount:
176174
name:
177175
automountServiceAccountToken: true
178176
annotations: {}
177+
## imagePullSecrets for the service account
178+
imagePullSecrets: []
179+
# - name: myRegistryKeySecretName
179180

180181
# Network policy settings.
181182
networkPolicy:
@@ -212,8 +213,35 @@ ingress:
212213
# hosts:
213214
# - chart-example.local
214215

215-
resources:
216-
{}
216+
# Gateway API HTTPRoute configuration
217+
# Ref: https://gateway-api.sigs.k8s.io/api-types/httproute/
218+
gatewayApi:
219+
enabled: false
220+
# The name of the Gateway resource to attach the HTTPRoute to
221+
# Example:
222+
# gatewayRef:
223+
# name: gateway
224+
# namespace: gateway-system
225+
gatewayRef:
226+
name: ""
227+
namespace: ""
228+
# HTTPRoute rule configuration
229+
# rules:
230+
# - matches:
231+
# - path:
232+
# type: PathPrefix
233+
# value: /
234+
rules: []
235+
# Hostnames to match in the HTTPRoute
236+
# hostnames:
237+
# - chart-example.local
238+
hostnames: []
239+
# Additional labels to add to the HTTPRoute
240+
labels: {}
241+
# Additional annotations to add to the HTTPRoute
242+
annotations: {}
243+
244+
resources: {}
217245
# limits:
218246
# cpu: 100m
219247
# memory: 300Mi
@@ -229,26 +257,22 @@ resizePolicy: []
229257
# - resourceName: memory
230258
# restartPolicy: RestartContainer
231259

232-
extraVolumes:
233-
[]
260+
extraVolumes: []
234261
# - name: ca-bundle-cert
235262
# secret:
236263
# secretName: <secret-name>
237264

238-
extraVolumeMounts:
239-
[]
265+
extraVolumeMounts: []
240266
# - mountPath: /etc/ssl/certs/
241267
# name: ca-bundle-cert
242268

243269
# Additional containers to be added to the pod.
244-
extraContainers:
245-
[]
270+
extraContainers: []
246271
# - name: my-sidecar
247272
# image: nginx:latest
248273

249274
# Additional Init containers to be added to the pod.
250-
extraInitContainers:
251-
[]
275+
extraInitContainers: []
252276
# - name: wait-for-idp
253277
# image: my-idp-wait:latest
254278
# command:
@@ -348,8 +372,7 @@ autoscaling:
348372
annotations: {}
349373
# Configure HPA behavior policies for scaling if needed
350374
# Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configuring-scaling-behavior
351-
behavior:
352-
{}
375+
behavior: {}
353376
# scaleDown:
354377
# stabilizationWindowSeconds: 300
355378
# policies:
@@ -402,8 +425,7 @@ initContainers:
402425
seccompProfile:
403426
type: RuntimeDefault
404427
timeout: 180
405-
resources:
406-
{}
428+
resources: {}
407429
# limits:
408430
# cpu: 100m
409431
# memory: 300Mi
@@ -544,8 +566,7 @@ metrics:
544566
# action: replace
545567

546568
# Extra K8s manifests to deploy
547-
extraObjects:
548-
[]
569+
extraObjects: []
549570
# - apiVersion: secrets-store.csi.x-k8s.io/v1
550571
# kind: SecretProviderClass
551572
# metadata:

0 commit comments

Comments
 (0)