mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Added kustomize install script (#1392)
This commit is contained in:
parent
26d7587c43
commit
2ffe9b024b
1 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
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
|
Loading…
Add table
Reference in a new issue