Closed kravciak closed 1 year ago
curlpod
If you want to run locally before rc2 you need to use auditScanner.image.tag=latest parameter and symlink charts directory into e2e tests.
auditScanner.image.tag=latest
KUBEWARDEN_CHARTS_LOCATION=./charts make clean cluster install tests audit-scanner-installation.bats
diff --git a/Makefile b/Makefile index 734ef27..8a1ee33 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ define install-kubewarden = $(KUBEWARDEN_CRDS_CHART_RELEASE) $(KUBEWARDEN_CHARTS_LOCATION)/kubewarden-crds $(helm_in) --version $(KUBEWARDEN_CONTROLLER_CHART_VERSION) \ --values $(ROOT_RESOURCES_DIR)/default-kubewarden-controller-values.yaml \ - $(KUBEWARDEN_CONTROLLER_CHART_RELEASE) $(KUBEWARDEN_CHARTS_LOCATION)/kubewarden-controller + $(KUBEWARDEN_CONTROLLER_CHART_RELEASE) $(KUBEWARDEN_CHARTS_LOCATION)/kubewarden-controller --set auditScanner.image.tag=latest $(helm_in) --version $(KUBEWARDEN_DEFAULTS_CHART_VERSION) \ --values $(ROOT_RESOURCES_DIR)/default-kubewarden-defaults-values.yaml \ $(KUBEWARDEN_DEFAULTS_CHART_RELEASE) $(KUBEWARDEN_CHARTS_LOCATION)/kubewarden-defaults diff --git a/tests/common.bash b/tests/common.bash index 827dc5a..f824913 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -22,6 +22,7 @@ function helm_up { # set default version, can be overridden with parameters case $1 in 'kubewarden-controller') + extraparams='--set auditScanner.image.tag=latest' def_version=$KUBEWARDEN_CRDS_CHART_VERSION;; 'kubewarden-defaults') def_version=$KUBEWARDEN_DEFAULTS_CHART_VERSION;; @@ -31,7 +32,7 @@ function helm_up { helm upgrade --version $def_version --wait \ --namespace $NAMESPACE --create-namespace \ - "${@:2}" $1 $KUBEWARDEN_CHARTS_LOCATION/$1 + "${@:2}" $1 $KUBEWARDEN_CHARTS_LOCATION/$1 ${extraparams:-}
curlpod
function that calls curl from in podIf you want to run locally before rc2 you need to use
auditScanner.image.tag=latest
parameter and symlink charts directory into e2e tests.