diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index 82383b6f..0c068fbb 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -22,7 +22,7 @@ maintainers: annotations: artifacthub.io/changes: | - kind: added - description: "Common labels to all resources created by the chart" + description: "Add extra container possibility in deployment chart" artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.35.3 diff --git a/charts/dex/README.md b/charts/dex/README.md index cd7d7a74..0f7082db 100644 --- a/charts/dex/README.md +++ b/charts/dex/README.md @@ -169,6 +169,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 | +| extraContainers | list | `[]` | Additionnals container in the pod. See the documentation of [extraContainers](https://github.com/criblio/helm-charts/blob/master/common_docs/EXTRA_EXAMPLES.md#using-extracontainers-) configuration. | ## Migrating from stable/dex (or banzaicloud-stable/dex) chart diff --git a/charts/dex/templates/deployment.yaml b/charts/dex/templates/deployment.yaml index 1f3ad4b8..46665e76 100644 --- a/charts/dex/templates/deployment.yaml +++ b/charts/dex/templates/deployment.yaml @@ -109,6 +109,9 @@ spec: {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.extraContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: config secret: diff --git a/charts/dex/values.yaml b/charts/dex/values.yaml index 756d49ef..db7b7e6c 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -279,3 +279,18 @@ networkPolicy: # ports: # - port: 636 # protocol: TCP + +# Allow extra containers +extraContainers: [] + # Example of nginx sidecar configuration + #- name: dex-sidecar-nginx-proxy + # image: ghcr.io/nginxinc/nginx-unprivileged:1.23.3 + # pullPolicy: IfNotPresent + # volumeMounts: + # - mountPath: /etc/nginx + # name: nginx-conf + # readOnly: true + # ports: + # - containerPort: 8443 + # name: https-nginx + # protocol: TCP