From 2ffe9b024be0c2d9944e8d6e13d19176f453a77b Mon Sep 17 00:00:00 2001 From: Yuvraj <10830562+evalsocket@users.noreply.github.com> Date: Sun, 13 Dec 2020 11:43:01 +0530 Subject: [PATCH] Added kustomize install script (#1392) --- scripts/ci.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/ci.sh b/scripts/ci.sh index cf263b4a60..cf24d9fac5 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -17,11 +17,7 @@ $pwd/kind load docker-image ghcr.io/kyverno/kyvernopre:$hash pwd=$(pwd) cd $pwd/definitions echo "Installing kustomize" -latest=$(curl -sL https://api.github.com/repos/kubernetes-sigs/kustomize/git/refs/tags/kustomize | jq '.[-1].ref' | grep -Po '\d+\.\d+\.\d+') -curl -sLO "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" -bash ./install_kustomize.sh $latest -chmod a+x $pwd/definitions/kustomize -echo "Kustomize image edit" -$pwd/definitions/kustomize edit set image ghcr.io/kyverno/kyverno:$hash -$pwd/definitions/kustomize edit set image ghcr.io/kyverno/kyvernopre:$hash -$pwd/definitions/kustomize build $pwd/definitions/ > $pwd/definitions/install.yaml \ No newline at end of file +curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash +kustomize edit set image ghcr.io/kyverno/kyverno:$hash +kustomize edit set image ghcr.io/kyverno/kyvernopre:$hash +kustomize build $pwd/definitions/ > $pwd/definitions/install.yaml \ No newline at end of file