Skip to content

Commit

Permalink
Separate oidc ca
Browse files Browse the repository at this point in the history
  • Loading branch information
6l20 committed Sep 30, 2021
1 parent 86aa66f commit 9c66f51
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.15
version: 1.0.16

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
14 changes: 12 additions & 2 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,14 @@ spec:
readOnly: true
{{- end }}
{{- if .Values.auth.tls.enabled }}
- name: qkm-certificates
- name: qkm-certs
mountPath: /certificates
readOnly: true
{{- end }}
{{- if .Values.auth.oidc.enabled }}
- name: oidc-certs
mountPath: /oidc_certs
readOnly: true
{{- end }}
- name: manifests-config
mountPath: /manifests
Expand Down Expand Up @@ -192,9 +197,14 @@ spec:
name: {{ include "quorumkeymanager.fullname" . }}-apikey-file
{{- end }}
{{- if .Values.auth.tls.enabled }}
- name: qkm-certificates
- name: qkm-certs
secret:
secretName: {{ .Values.auth.tls.secretName }}
{{- end }}
{{- if .Values.auth.oidc.enabled }}
- name: oidc-certs
secret:
secretName: {{ include "quorumkeymanager.fullname" . }}-oidc-certs
{{- end }}
- name: manifests-config
secret:
Expand Down
14 changes: 14 additions & 0 deletions templates/oidc-certs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.auth.oidc.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "quorumkeymanager.fullname" . }}-oidc-certs
labels:
{{- include "quorumkeymanager.labels" . | nindent 4 }}
annotations:
{{- include "quorumkeymanager.annotations" . | nindent 4 }}
type: Opaque
data:
ca.crt: {{ .Values.auth.oidc.ca }}
{{- end }}
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ auth:
file: "/apikey/sample.csv"
oidc:
enabled: false
cacert: ""
ca: ""
issuer: ""
tls:
enabled: false
cacert: ""
ca: ""
secretName: ""

0 comments on commit 9c66f51

Please sign in to comment.