mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
feat: splitting envVars for initContainers and containers
Signed-off-by: Retna Ramachandran <retna@gjensidige.no> Signed-off-by: Retna Ramachandran <retna.ramachandran@gjensidige.no>
This commit is contained in:
parent
c95802bf84
commit
5825dfbf4f
3 changed files with 7 additions and 2 deletions
|
@ -71,7 +71,8 @@ The following table lists the configurable parameters of the kyverno chart and t
|
|||
| `config.webhooks` | customize webhook configurations for both MutatingWebhookConfiguration and ValidatingWebhookConfiguration of Kubernetes resources, only `namesapceSelector` can be configured with Kyverno v1.4.0 | `nil` |
|
||||
| customLabels | object | `{}` | Additional labels |
|
||||
| `dnsPolicy` | Sets the DNS Policy which determines the manner in which DNS resolution happens across the cluster. For further reference, see [the official docs](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) | `ClusterFirst` |
|
||||
| envVars | Extra environment variables to pass to kyverno | {} |
|
||||
| `envVarsInit` | Extra environment variables to pass to kyverno initContainers | {} |
|
||||
| `envVars` | Extra environment variables to pass to kyverno containers | {} |
|
||||
| `extraArgs` | list of extra arguments to give the binary | `[]` |
|
||||
| `fullnameOverride` | override the expanded name of the chart | `nil` |
|
||||
| `generatecontrollerExtraResources` | extra resource type Kyverno is allowed to generate | `[]` |
|
||||
|
|
|
@ -66,7 +66,7 @@ spec:
|
|||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
{{- with .Values.envVars }}
|
||||
{{- with .Values.envVarsInit }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
|
|
|
@ -62,6 +62,10 @@ hostNetwork: false
|
|||
# for further reference: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
||||
dnsPolicy: "ClusterFirst"
|
||||
|
||||
#env variables for initContainers
|
||||
envVarsInit: {}
|
||||
|
||||
#env variables for containers
|
||||
envVars: {}
|
||||
|
||||
extraArgs: []
|
||||
|
|
Loading…
Add table
Reference in a new issue