Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #165 from alejandroEsc/ae/secrets
Browse files Browse the repository at this point in the history
chore: do not missing fields to secret
  • Loading branch information
jetstack-bot authored Aug 17, 2020
2 parents a26c485 + 16a721b commit d7bef63
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/kube-oidc-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "v0.3.0"
description: A Helm chart for kube-oidc-proxy
home: https://github.com/jetstack/kube-oidc-proxy
name: kube-oidc-proxy
version: 0.3.0
version: 0.3.1
maintainers:
- name: mhrabovcin
- name: joshvanl
42 changes: 28 additions & 14 deletions deploy/charts/kube-oidc-proxy/templates/secret_config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "kube-oidc-proxy.fullname" . }}-config
labels:
{{ include "kube-oidc-proxy.labels" . | indent 4 }}
type: Opaque
data:
{{ if .Values.oidc.caPEM }}
{{- if .Values.oidc.caPEM }}
oidc.ca-pem: {{ .Values.oidc.caPEM | default "" | b64enc }}
{{ end }}
{{- end }}

{{- if .Values.oidc.issuerUrl }}
oidc.issuer-url: {{ .Values.oidc.issuerUrl | b64enc }}
oidc.username-claim: {{ .Values.oidc.usernameClaim | b64enc }}
{{- end }}

{{- if .Values.oidc.usernameClaim }}
oidc.username-claim: {{ .Values.oidc.usernameClaim | default "" | b64enc }}
{{- end }}

{{- if .Values.oidc.clientId }}
oidc.client-id: {{ .Values.oidc.clientId | b64enc }}
{{- end }}

{{- if .Values.oidc.usernamePrefix }}
oidc.username-prefix: {{ .Values.oidc.usernamePrefix | b64enc }}
oidc.username-prefix: {{ .Values.oidc.usernamePrefix | default "" | b64enc }}
{{- end }}

{{- if .Values.oidc.groupsClaim }}
oidc.groups-claim: {{ .Values.oidc.groupsClaim | b64enc }}
oidc.groups-claim: {{ .Values.oidc.groupsClaim | default "" | b64enc }}
{{- end }}

{{- if .Values.oidc.groupsPrefix }}
oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | b64enc }}
oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | default "" | b64enc }}
{{- end }}

{{- if .Values.oidc.signingAlgs }}
oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | b64enc }}
oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | default "" | b64enc }}
{{- end }}
{{ if .Values.oidc.requiredClaims }}

{{- if .Values.oidc.requiredClaims }}
oidc.required-claims: {{ include "requiredClaims" . | b64enc }}
{{- end }}
kind: Secret
metadata:
name: {{ include "kube-oidc-proxy.fullname" . }}-config
labels:
{{ include "kube-oidc-proxy.labels" . | indent 4 }}
type: Opaque

0 comments on commit d7bef63

Please sign in to comment.