Skip to content

Commit 9796614

Browse files
committed
Add custom config annotations
1 parent 2875c40 commit 9796614

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

helm/oauth2-proxy/templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
apiVersion: v1
44
kind: ConfigMap
55
metadata:
6+
{{- if .Values.config.annotations }}
7+
annotations:
8+
{{ toYaml .Values.config.annotations | indent 4 }}
9+
{{- end }}
610
labels:
711
app: {{ template "oauth2-proxy.name" . }}
812
chart: {{ template "oauth2-proxy.chart" . }}

helm/oauth2-proxy/templates/secret.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
apiVersion: v1
33
kind: Secret
44
metadata:
5+
{{- if .Values.config.annotations }}
6+
annotations:
7+
{{ toYaml .Values.config.annotations | indent 4 }}
8+
{{- end }}
59
labels:
610
app: {{ template "oauth2-proxy.name" . }}
711
chart: {{ template "oauth2-proxy.chart" . }}

helm/oauth2-proxy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Oauth client configuration specifics
22
config:
3+
# Add config annotations
4+
annotations: {}
35
# OAuth client ID
46
clientID: "XXXXXXX"
57
# OAuth client secret

0 commit comments

Comments
 (0)