Skip to content

Commit e7eb02c

Browse files
committed
feat(charts/dex): add optional initContainers to deployment.
Signed-off-by: Lars Larsson <[email protected]>
1 parent c4c126c commit e7eb02c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

charts/dex/Chart.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ annotations:
2323
artifacthub.io/changes: |
2424
- kind: added
2525
description: "Common labels to all resources created by the chart"
26-
artifacthub.io/images: |
2726
- name: dex
28-
image: ghcr.io/dexidp/dex:v2.35.3

charts/dex/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ ingress:
124124
| configSecret.create | bool | `true` | Enable creating a secret from the values passed to `config`. If set to false, name must point to an existing secret. |
125125
| configSecret.name | string | `""` | The name of the secret to mount as configuration in the pod. If not set and create is true, a name is generated using the fullname template. Must point to secret that contains at least a `config.yaml` key. |
126126
| config | object | `{}` | Application configuration. See the [official documentation](https://dexidp.io/docs/). |
127+
| initContainers | list | `[]` | [Init Containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) for details. |
127128
| volumes | list | `[]` | Additional storage [volumes](https://kubernetes.io/docs/concepts/storage/volumes/). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1) for details. |
128129
| volumeMounts | list | `[]` | Additional [volume mounts](https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1) for details. |
129130
| envFrom | list | `[]` | Additional environment variables mounted from [secrets](https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables) or [config maps](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables) for details. |

charts/dex/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
hostAliases:
4242
{{- toYaml . | nindent 8 }}
4343
{{- end }}
44+
{{- if .Values.initContainers }}
45+
initContainers:
46+
{{- toYaml .Values.initContainers |nindent 8 }}
47+
{{- end }}
4448
containers:
4549
- name: {{ .Chart.Name }}
4650
securityContext:

charts/dex/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ configSecret:
5555
# See the [official documentation](https://dexidp.io/docs/).
5656
config: {}
5757

58+
# -- [Init Containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/).
59+
# See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) for details.
60+
initContainers: []
61+
5862
# -- Additional storage [volumes](https://kubernetes.io/docs/concepts/storage/volumes/).
5963
# See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1) for details.
6064
volumes: []

0 commit comments

Comments
 (0)