From e2611741dce7567613947f34a4bf300ddb2797e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Mon, 4 Apr 2022 23:46:34 +0200 Subject: [PATCH] chart: Add extraVolumes and extraVolumeMounts --- charts/aws-vpc-cni/README.md | 2 ++ charts/aws-vpc-cni/templates/daemonset.yaml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/charts/aws-vpc-cni/README.md b/charts/aws-vpc-cni/README.md index 70010bc0ec..2124cfb7fd 100644 --- a/charts/aws-vpc-cni/README.md +++ b/charts/aws-vpc-cni/README.md @@ -55,6 +55,8 @@ The following table lists the configurable parameters for this chart and their d | `init.securityContext` | Init container Security context | `privileged: true` | | `originalMatchLabels` | Use the original daemonset matchLabels | `false` | | `nameOverride` | Override the name of the chart | `aws-node` | +| `extraVolumes` | Array to add extra volumes | `[]` | +| `extraVolumeMounts` | Array to add extra mount | `[]` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `podSecurityContext` | Pod Security Context | `{}` | | `podAnnotations` | annotations to add to each pod | `{}` | diff --git a/charts/aws-vpc-cni/templates/daemonset.yaml b/charts/aws-vpc-cni/templates/daemonset.yaml index 5154670cc8..b0f67e0e03 100644 --- a/charts/aws-vpc-cni/templates/daemonset.yaml +++ b/charts/aws-vpc-cni/templates/daemonset.yaml @@ -110,6 +110,9 @@ spec: name: run-dir - mountPath: /run/xtables.lock name: xtables-lock + {{- with .Values.extraVolumeMounts }} + {{- toYaml .| nindent 10 }} + {{- end }} volumes: - name: cni-bin-dir hostPath: @@ -142,6 +145,9 @@ spec: - name: xtables-lock hostPath: path: /run/xtables.lock + {{- with .Values.extraVolumes }} + {{- toYaml .| nindent 6 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}