Browse Source

Add values for extraContainers in deployment (#2073)

Signed-off-by: Benjamin Voigt <55484313+YurNaybor@users.noreply.github.com>
YurNaybor 3 years ago
parent
commit
2a1b95cc6c

+ 1 - 0
deploy/charts/external-secrets/README.md

@@ -84,6 +84,7 @@ The command removes all the Kubernetes components associated with the chart and
 | deploymentAnnotations | object | `{}` | Annotations to add to Deployment |
 | dnsConfig | object | `{}` | Specifies `dnsOptions` to deployment |
 | extraArgs | object | `{}` |  |
+| extraContainers | list | `[]` |  |
 | extraEnv | list | `[]` |  |
 | extraVolumeMounts | list | `[]` |  |
 | extraVolumes | list | `[]` |  |

+ 3 - 0
deploy/charts/external-secrets/templates/deployment.yaml

@@ -95,6 +95,9 @@ spec:
           volumeMounts:
           {{- toYaml .Values.extraVolumeMounts | nindent 12 }}
           {{- end }}
+        {{- if .Values.extraContainers }}
+          {{ toYaml .Values.extraContainers | nindent 8}}
+        {{- end }}
       {{- if .Values.dnsConfig }}
       dnsConfig:
           {{- toYaml .Values.dnsConfig | nindent 8 }}

+ 3 - 0
deploy/charts/external-secrets/values.yaml

@@ -85,6 +85,9 @@ extraVolumes: []
 ## -- Extra volumes to mount to the container.
 extraVolumeMounts: []
 
+## -- Extra containers to add to the pod.
+extraContainers: []
+
 # -- Annotations to add to Deployment
 deploymentAnnotations: {}