From 46bb78694ec91f50c680c7ef800ba550318f86bc Mon Sep 17 00:00:00 2001 From: Quentin Loos Date: Mon, 7 Sep 2020 17:25:55 +0200 Subject: [PATCH] Add automatic creation of ENIConfig's --- stable/aws-vpc-cni/templates/eniconfig.yaml | 13 +++++++++++++ stable/aws-vpc-cni/values.yaml | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 stable/aws-vpc-cni/templates/eniconfig.yaml diff --git a/stable/aws-vpc-cni/templates/eniconfig.yaml b/stable/aws-vpc-cni/templates/eniconfig.yaml new file mode 100644 index 000000000..f4851732d --- /dev/null +++ b/stable/aws-vpc-cni/templates/eniconfig.yaml @@ -0,0 +1,13 @@ +{{- if .Values.crd.create -}} +{{- range .Values.eni_configs -}} +apiVersion: crd.k8s.amazonaws.com/v1alpha1 +kind: ENIConfig +metadata: + name: {{ .az }} +spec: + subnet: {{ .subnet }} + securityGroups: + {{ toYaml .security_groups | indent 2 }} +--- +{{- end -}} +{{- end -}} diff --git a/stable/aws-vpc-cni/values.yaml b/stable/aws-vpc-cni/values.yaml index 808a36400..0ea4e7c45 100644 --- a/stable/aws-vpc-cni/values.yaml +++ b/stable/aws-vpc-cni/values.yaml @@ -61,3 +61,11 @@ nodeSelector: {} tolerations: [] affinity: {} + +eni_configs: [] +# eni_configs: +# - az: eu-west-1a +# subnet: subnet-0bfb6d177a5fce771 +# security_groups: +# - sg-023feb92f68dc6918 +