diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index 4e3f0c30..c931262b 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: dex -version: 0.23.1 +version: 0.24.0 appVersion: "2.42.0" kubeVersion: ">=1.14.0-0" description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -21,8 +21,11 @@ maintainers: url: https://sagikazarmark.com annotations: artifacthub.io/changes: | - - kind: changed - description: "Fix chart icon url" + - kind: added + description: Add extraObjects + links: # Optional + - name: Github PR + url: https://github.com/dexidp/helm-charts/pull/132 artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.42.0 diff --git a/charts/dex/README.md b/charts/dex/README.md index c6a934b1..4e468b3b 100644 --- a/charts/dex/README.md +++ b/charts/dex/README.md @@ -1,6 +1,6 @@ # dex -![version: 0.23.1](https://img.shields.io/badge/version-0.23.1-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) +![version: 0.24.0](https://img.shields.io/badge/version-0.24.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -184,6 +184,7 @@ ingress: | strategy | object | `{}` | Deployment [strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) configuration. | | networkPolicy.enabled | bool | `false` | Create [Network Policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/) | | networkPolicy.egressRules | list | `[]` | A list of network policy egress rules | +| extraObjects | list | `[]` | extra objects to deploy extraObjects can be of type map or slice. If slice, keys are ignored and only values are used. items contained within extraObjects can be defined as dict or string and are passed through tpl. | ## Migrating from stable/dex (or banzaicloud-stable/dex) chart diff --git a/charts/dex/templates/extraObjects.yaml b/charts/dex/templates/extraObjects.yaml new file mode 100644 index 00000000..87b019f0 --- /dev/null +++ b/charts/dex/templates/extraObjects.yaml @@ -0,0 +1,15 @@ +{{- /* Normalize extraObjects to a list, easier to loop over */ -}} +{{- $extraObjects := .Values.extraObjects | default (list) -}} + +{{- if kindIs "map" $extraObjects -}} + {{- $extraObjects = values $extraObjects -}} +{{- end -}} + +{{- range $extraObjects }} +--- + {{- if kindIs "map" . }} + {{- tpl (toYaml .) $ | nindent 0 }} + {{- else if kindIs "string" . }} + {{- tpl . $ | nindent 0 }} + {{- end }} +{{- end }} diff --git a/charts/dex/values.yaml b/charts/dex/values.yaml index 2515f6ca..609a8efd 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -343,3 +343,16 @@ networkPolicy: # ports: # - port: 636 # protocol: TCP + +# -- extra objects to deploy +# extraObjects can be of type map or slice. If map, keys are ignored and only values are used. +# items contained within extraObjects can be defined as dict or string and are passed through tpl. +extraObjects: null +# - apiVersion: v1 +# kind: Secret +# type: Opaque +# metadata: +# name: google-serviceaccount +# data: +# token: | +# {{ print "super secret JSON file" | b64enc }}