From 4ff934e38023f39efbfaa94110a797ce989a1665 Mon Sep 17 00:00:00 2001 From: Pooya Azarpour Date: Sat, 25 Nov 2023 14:45:35 +0330 Subject: [PATCH] [FIX] Fix using in 'yq' command when yq not contain eval flag Signed-off-by: Pooya Azarpour --- e2e/kind.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/kind.mk b/e2e/kind.mk index cb3f2fb8f..901fef148 100644 --- a/e2e/kind.mk +++ b/e2e/kind.mk @@ -29,7 +29,7 @@ $(KIND_KUBECONFIG): $(KIND) # Applies local-path-config.yaml to kind cluster and forces restart of provisioner - can be simplified once https://github.com/kubernetes-sigs/kind/pull/3090 is merged. # This is necessary due to the multi node cluster. Classic k8s hostPath provisioner doesn't permit multi node and sharedFileSystemPath support is only in local-path-provisioner v0.0.23. @kubectl apply -n local-path-storage -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.23/deploy/local-path-storage.yaml - @kubectl get cm -n local-path-storage local-path-config -o yaml|yq e '.data."config.json"="{\"nodePathMap\":[],\"sharedFileSystemPath\": \"/tmp/e2e/local-path-provisioner\"}"'|kubectl apply -f - + @kubectl get cm -n local-path-storage local-path-config -o yaml|yq $(yq --help | grep -q eval && echo e) '.data."config.json"="{\"nodePathMap\":[],\"sharedFileSystemPath\": \"/tmp/e2e/local-path-provisioner\"}"'|kubectl apply -f - @kubectl delete po -n local-path-storage --all $(KIND): export GOBIN = $(go_bin)