Skip to content

Commit 92e6d22

Browse files
Merge pull request #144 from avakarev/support-ingress-labels
Support ingress extra labels
2 parents bc4e02a + 6f93d3d commit 92e6d22

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
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.11.0
2+
version: 6.12.0
33
apiVersion: v2
44
appVersion: 7.4.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ 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`

helm/oauth2-proxy/templates/ingress.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ 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" . }}
1417
namespace: {{ template "oauth2-proxy.namespace" $ }}
1518
{{- with .Values.ingress.annotations }}

helm/oauth2-proxy/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ ingress:
153153
# name: ssl-redirect
154154
# port:
155155
# name: use-annotation
156+
labels: {}
156157
# annotations:
157158
# kubernetes.io/ingress.class: nginx
158159
# kubernetes.io/tls-acme: "true"

0 commit comments

Comments
 (0)