Fix a bug in setting env variable for amazon vpc cni

This commit is contained in:
Prateek Gogia 2023-08-09 15:55:19 -05:00
parent dc2db03de2
commit 938ff9c0a6
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ echo "ADMIN_ACCESS=${ADMIN_ACCESS}"
create_args=()
create_args+=("--networking=${CNI_PLUGIN:-calico}")
if [[ "${CNI_PLUGIN}" == "amazonvpc" ]]; then
create_args+=("--set spec.networking.amazonvpc.env.ENABLE_PREFIX_DELEGATION=true")
create_args+=("--set spec.networking.amazonvpc.env=ENABLE_PREFIX_DELEGATION=true")
fi
# INSTANCE_IMAGE configures the image used for control plane and kube nodes
create_args+=("--image=${INSTANCE_IMAGE:-ssm:/aws/service/canonical/ubuntu/server/20.04/stable/current/arm64/hvm/ebs-gp2/ami-id}")