This repository was archived by the owner on Jul 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 5858 [ " ${CLUSTER_PRIVATE_SUBNETS} " != " " ] && eksctl_args+=( --vpc-private-subnets=" ${CLUSTER_PRIVATE_SUBNETS} " )
5959
6060 eksctl create cluster " ${cluster_name} " " ${eksctl_args[@]} " --dry-run > generated-cluster.yaml
61- yq -i " .managedNodeGroups[0].disableIMDSv1 = true" generated-cluster.yaml
61+ yq w -i " .managedNodeGroups[0].disableIMDSv1 = true" generated-cluster.yaml
6262
6363 eksctl create cluster -f generated-cluster.yaml --auto-kubeconfig --timeout=40m
6464
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function create_eks_cluster() {
6262 [ ! -z " ${USE_EXISTING_SUBNET} " ] && eksctl_args+=( --vpc-private-subnets=" ${EKS_PRIVATE_SUBNET_1} ,${EKS_PRIVATE_SUBNET_2} " )
6363
6464 eksctl create cluster " ${CLUSTER_NAME} " " ${eksctl_args[@]} " --dry-run > generated-cluster.yaml
65- yq -i " .managedNodeGroups[0].disableIMDSv1 = true" generated-cluster.yaml
65+ yq w -i " .managedNodeGroups[0].disableIMDSv1 = true" generated-cluster.yaml
6666
6767 eksctl create cluster -f generated-cluster.yaml --auto-kubeconfig --timeout=40m
6868}
You can’t perform that action at this time.
0 commit comments