Skip to content
Snippets Groups Projects
Unverified Commit f1408151 authored by Varac's avatar Varac
Browse files

prometheus-alerts job doesnt need ansible

TRIGGER_JOBS=enable-monitoring,enable-nextcloud,enable-wekan,enable-wordpress,enable-zulip
parent 1d8b58ff
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ include: ...@@ -18,7 +18,7 @@ include:
- | - |
echo "Env vars:" echo "Env vars:"
echo echo
env | grep -E '^(CLUSTER_NAME|FQDN|IP_ADDRESS|ANSIBLE_HOST_KEY_CHECKING|KANIKO_BUILD_IMAGENAME|SSH_KEY_ID|SHELL|CI_PROJECT_DIR)=' env | grep -E '^(HOSTNAME|CLUSTER_NAME|FQDN|IP_ADDRESS|ANSIBLE_HOST_KEY_CHECKING|KANIKO_BUILD_IMAGENAME|SSH_KEY_ID|SHELL|CI_PROJECT_DIR)='
echo echo
echo "Uptime: $(uptime)" echo "Uptime: $(uptime)"
echo "KANIKO build image ref: ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CI_CONTAINER_TAG}" echo "KANIKO build image ref: ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CI_CONTAINER_TAG}"
...@@ -683,7 +683,7 @@ testinfra: ...@@ -683,7 +683,7 @@ testinfra:
- .general_rules - .general_rules
interruptible: true interruptible: true
kube-prometheus-stack-alerts: prometheus-alerts:
stage: cluster-health stage: cluster-health
needs: needs:
- job: install-stackspin - job: install-stackspin
...@@ -695,10 +695,7 @@ kube-prometheus-stack-alerts: ...@@ -695,10 +695,7 @@ kube-prometheus-stack-alerts:
- *debug_information - *debug_information
- export BASIC_AUTH_PW=$(python3 -m stackspin $HOSTNAME secrets | grep stackspin-prometheus-basic-auth | cut -d'=' -f2) - export BASIC_AUTH_PW=$(python3 -m stackspin $HOSTNAME secrets | grep stackspin-prometheus-basic-auth | cut -d'=' -f2)
- cd test/ - cd test/
- > - bash ../.gitlab/ci_scripts/retry_cmd_until_success.sh 30 10 pytest -s -m prometheus
bash ../.gitlab/ci_scripts/retry_cmd_until_success.sh 30 10
pytest -s -m 'prometheus' --connection=ansible
--ansible-inventory=../${CLUSTER_DIR}/inventory.yml --hosts='ansible://*'
extends: extends:
- .monitoring_rules - .monitoring_rules
interruptible: true interruptible: true
......
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