Skip to content

Commit 42fbba4

Browse files
authored
allow reading oauth2 client id from kubero-secrets (#41)
1 parent b2bcb01 commit 42fbba4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

helm-charts/kubero/secrets.yaml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ stringData:
1818
BITBUCKET_USERNAME:
1919
BITBUCKET_APP_PASSWORD:
2020
GITHUB_CLIENT_SECRET:
21+
OAUTH2_CLIENT_ID:
2122
OAUTH2_CLIENT_SECRET:

helm-charts/kubero/templates/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,14 @@ spec:
165165
- name: OAUTO2_CLIENT_NAME
166166
value: {{ .Values.kubero.auth.oauth2.name | quote }}
167167
- name: OAUTH2_CLIENT_ID
168+
{{- if .Values.kubero.auth.oauth2.id }}
168169
value: {{ .Values.kubero.auth.oauth2.id | quote }}
170+
{{ else }}
171+
valueFrom:
172+
secretKeyRef:
173+
name: kubero-secrets
174+
key: OAUTH2_CLIENT_ID
175+
{{- end }}
169176
- name: OAUTO2_CLIENT_AUTH_URL
170177
value: {{ .Values.kubero.auth.oauth2.authUrl | quote }}
171178
- name: OAUTO2_CLIENT_TOKEN_URL

0 commit comments

Comments
 (0)