Skip to content

Commit

Permalink
build(helm): add auto generation of client secret
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Apr 17, 2024
1 parent 04c7785 commit 2841b3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions k8s/helm/hub-adapter/templates/hub-adapter-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ spec:
env:
- name: API_CLIENT_ID
value: {{ .Values.env.API_CLIENT_ID | default "hub-adapter" | quote }}
- name: API_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: hub-adapter-keycloak-secret
key: kcsecret
- name: IDP_URL
value: {{ .Values.env.IDP_URL | default "http://keycloak-service:8080" | quote }} # To be replaced
- name: IDP_REALM
Expand Down
6 changes: 6 additions & 0 deletions k8s/helm/hub-adapter/templates/hub-adapter-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Secret
metadata:
name: hub-adapter-keycloak-secret
stringData:
kcsecret: {{ randAlphaNum 24 | b64enc | quote }}

0 comments on commit 2841b3b

Please sign in to comment.