2020-08-05 23:26:31 -07:00
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pwd=$(pwd)
|
|
|
|
hash=$(git describe --always --tags)
|
|
|
|
#
|
|
|
|
## Install Kind
|
2021-06-08 11:18:48 +05:30
|
|
|
curl -Lo $pwd/kind https://kind.sigs.k8s.io/dl/v0.11.0/kind-linux-amd64
|
2020-08-05 23:26:31 -07:00
|
|
|
chmod a+x $pwd/kind
|
|
|
|
|
|
|
|
## Create Kind Cluster
|
|
|
|
$pwd/kind create cluster
|
2020-11-24 11:49:08 -08:00
|
|
|
$pwd/kind load docker-image ghcr.io/kyverno/kyverno:$hash
|
|
|
|
$pwd/kind load docker-image ghcr.io/kyverno/kyvernopre:$hash
|
2020-08-05 23:26:31 -07:00
|
|
|
|
|
|
|
pwd=$(pwd)
|
|
|
|
cd $pwd/definitions
|
|
|
|
echo "Installing kustomize"
|
2020-12-13 11:43:01 +05:30
|
|
|
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
|
2020-12-16 01:16:53 +05:30
|
|
|
kustomize build $pwd/definitions/ -o $pwd/definitions/install.yaml
|