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

Commit acb1d73

Browse files
committed
deploy/charts/kube-oidc-proxy: expose all kube-oidc-flags with values.yaml
Signed-off-by: Martin Hrabovcin <[email protected]>
1 parent 89261e8 commit acb1d73

19 files changed

+145
-225
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ flow](https://storage.googleapis.com/kube-oidc-proxy/diagram-d9623e38a6cd3b585b4
3636
## Tutorial
3737

3838
Directions on how to deploy OIDC authentication with multi-cluster can be found
39-
[here.](./demo/README.md)
39+
[here.](./demo/README.md) or there is a [helm chart](./deploy/charts/kube-oidc-proxy/README.md).
4040

4141
### Quickstart
4242

charts/kube-oidc-proxy/Chart.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

charts/kube-oidc-proxy/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

charts/kube-oidc-proxy/templates/secret_config.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
appVersion: "v0.1.1"
3+
description: A Helm chart for kube-oidc-proxy
4+
home: https://github.com/jetstack/kube-oidc-proxy
5+
name: kube-oidc-proxy
6+
version: 0.1.0
7+
maintainers:
8+
- name: mhrabovcin

charts/kube-oidc-proxy/README.md renamed to deploy/charts/kube-oidc-proxy/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ oidc:
1414
clientId: my-client
1515
issuerUrl: https://accounts.google.com
1616
usernameClaim: email
17-
# Provide base64 encoded value of CA cert
17+
```
18+
19+
When a custom root CA certificate is required it should be added as PEM encoded
20+
text value:
21+
22+
```yaml
23+
oidc:
1824
caPEM: |
1925
-----BEGIN CERTIFICATE-----
2026
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG
@@ -65,4 +71,3 @@ service.
6571
tls:
6672
secretName: my-tls-secret-with-key-and-cert
6773
```
68-

charts/kube-oidc-proxy/templates/_helpers.tpl renamed to deploy/charts/kube-oidc-proxy/templates/_helpers.tpl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4343
{{- end }}
4444
app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{- end -}}
46+
47+
{{/*
48+
Required claims serialized to CLI argument
49+
*/}}
50+
{{- define "requiredClaims" -}}
51+
{{- if .Values.oidc.requiredClaims -}}
52+
{{- $local := (list) -}}
53+
{{- range $k, $v := .Values.oidc.requiredClaims -}}
54+
{{- $local = (printf "%s=%s" $k $v | append $local) -}}
55+
{{- end -}}
56+
{{ join "," $local }}
57+
{{- end -}}
58+
{{- end -}}

0 commit comments

Comments
 (0)