Skip to content
Snippets Groups Projects
Commit 3d115087 authored by Guillermo Facundo Colunga's avatar Guillermo Facundo Colunga
Browse files

ci: fix helm_test stage

parent 0e557820
No related branches found
No related tags found
No related merge requests found
Pipeline #8258719 failed
......@@ -56,7 +56,7 @@ version_test:
rm -rf linux-386
# Check if the tag already exists in harbor to avoid overrides.
if helm pull oci://registry.cern.ch/monit/cern-it-kubernetes-monitoring --version $CI_COMMIT_TAG; then
if helm pull oci://registry.cern.ch/monit/cern-it-monitoring-kubernetes --version $CI_COMMIT_TAG; then
# Command was successful (exit code 0), so the tag exists
echo "The tag $TAG already exists in harbor. Please update it."
exit 1 # Exit with non-zero status to indicate tag exists
......@@ -151,9 +151,9 @@ helm_test:
helm dependency update
helm package .
ls -all
helm install cern-it-kubernetes-monitoring-crds https://gitlab.cern.ch/monitoring/helm-charts/kubernetes-monitoring-crds/-/archive/v0.1.0/kubernetes-monitoring-crds-v0.1.0.tar.gz -n monitoring --create-namespace
helm install cern-it-kubernetes-monitoring ./cern-it-kubernetes-monitoring-$LOCAL_VERSION.tgz -f values.yaml -n monitoring --create-namespace
helm test --logs cern-it-kubernetes-monitoring -n monitoring
helm install cern-it-monitoring-kubernetes-crds https://gitlab.cern.ch/monitoring/helm-charts/monitoring-kubernetes-crds/-/archive/v0.1.0/monitoring-kubernetes-crds-v0.1.0.tar.gz -n monitoring --create-namespace
helm install cern-it-monitoring-kubernetes ./cern-it-monitoring-kubernetes-$LOCAL_VERSION.tgz -f values.yaml -n monitoring --create-namespace
helm test --logs cern-it-monitoring-kubernetes -n monitoring
echo "Deleting temporal cluster."
openstack coe cluster delete $CLUSTER_NAME
......@@ -174,4 +174,4 @@ helm_deploy:
sed -i "s/^version:.*/version: ${CI_COMMIT_TAG}/" Chart.yaml
helm package .
echo $REGISTRY_PASSWORD | helm registry login https://registry.cern.ch/v2/ -u $REGISTRY_USER --password-stdin
helm push cern-it-kubernetes-monitoring-$CI_COMMIT_TAG.tgz oci://registry.cern.ch/monit
helm push cern-it-monitoring-kubernetes-$CI_COMMIT_TAG.tgz oci://registry.cern.ch/monit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment