Skip to content

Commit

Permalink
[FIX] Fix using in 'yq' command when yq not contain eval flag
Browse files Browse the repository at this point in the history
Signed-off-by: Pooya Azarpour <[email protected]>
  • Loading branch information
poyaz committed Nov 29, 2023
1 parent 4417b96 commit 4ff934e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/kind.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ff934e

Please sign in to comment.