Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit d648f40

Browse files
authored
fix yq syntax (#210)
1 parent 4781a55 commit d648f40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/codebuild/run_canarytest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ then
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

tests/codebuild/run_canarytest_china.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)