mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* update git command to get tag in 'v*' format Signed-off-by: Shuting Zhao <shutting06@gmail.com> * add label "appVersion" to report change request Signed-off-by: Shuting Zhao <shutting06@gmail.com> * fix linter issue Signed-off-by: Shuting Zhao <shutting06@gmail.com> * update git hash Signed-off-by: Shuting Zhao <shutting06@gmail.com>
23 lines
698 B
Bash
Executable file
23 lines
698 B
Bash
Executable file
|
|
#!/bin/sh
|
|
set -e
|
|
|
|
pwd=$(pwd)
|
|
hash=$(git describe --match "v[0-9]*")
|
|
#
|
|
## Install Kind
|
|
curl -Lo $pwd/kind https://kind.sigs.k8s.io/dl/v0.11.0/kind-linux-amd64
|
|
chmod a+x $pwd/kind
|
|
|
|
## Create Kind Cluster
|
|
$pwd/kind create cluster
|
|
$pwd/kind load docker-image ghcr.io/kyverno/kyverno:$hash
|
|
$pwd/kind load docker-image ghcr.io/kyverno/kyvernopre:$hash
|
|
|
|
pwd=$(pwd)
|
|
cd $pwd/definitions
|
|
echo "Installing kustomize"
|
|
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/ -o $pwd/definitions/install.yaml
|