From 0c8f2b21a4143eea02ab39b58c910b0524df03d5 Mon Sep 17 00:00:00 2001 From: ehearneredhat Date: Thu, 22 Aug 2024 15:37:23 +0100 Subject: [PATCH 1/4] create kuadrant-system ns Signed-off-by: ehearneredhat --- .github/workflows/verify-dashboards-alerts.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify-dashboards-alerts.yaml b/.github/workflows/verify-dashboards-alerts.yaml index 47a6b868e..7fbb7be02 100644 --- a/.github/workflows/verify-dashboards-alerts.yaml +++ b/.github/workflows/verify-dashboards-alerts.yaml @@ -34,6 +34,7 @@ jobs: kubectl apply -k config/dependencies/istio/sail kubectl -n istio-system wait --for=condition=Available deployment istio-operator --timeout=300s kubectl apply -f config/dependencies/istio/sail/istio.yaml + kubectl create ns kuadrant-system # Install Observability Stack (Grafana and Prometheus) kubectl kustomize config/observability/ | docker run --rm -i ryane/kfilt -i kind=CustomResourceDefinition | kubectl apply --server-side -f - @@ -119,4 +120,4 @@ jobs: exit 1 fi - echo "Prometheus has all alert rules." \ No newline at end of file + echo "Prometheus has all alert rules." From 3763c599bbd28735bfd102e26ca5f451f6dce415 Mon Sep 17 00:00:00 2001 From: ehearneredhat Date: Thu, 22 Aug 2024 15:41:20 +0100 Subject: [PATCH 2/4] add workflow dispatch Signed-off-by: ehearneredhat --- .github/workflows/verify-dashboards-alerts.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/verify-dashboards-alerts.yaml b/.github/workflows/verify-dashboards-alerts.yaml index 7fbb7be02..78038918d 100644 --- a/.github/workflows/verify-dashboards-alerts.yaml +++ b/.github/workflows/verify-dashboards-alerts.yaml @@ -12,6 +12,7 @@ on: - examples/alerts/prometheusrules_policies_missing.yaml - examples/alerts/slo-availability.yaml - examples/alerts/slo-latency.yaml + workflow_dispatch: jobs: verify-dashboards-alerts: name: Verify Dashboards and Alerts OK From 4b1b78253ce45b056ca2cab570e2a0f0c9843372 Mon Sep 17 00:00:00 2001 From: ehearneredhat Date: Thu, 22 Aug 2024 15:42:15 +0100 Subject: [PATCH 3/4] trigger workflow Signed-off-by: ehearneredhat --- .github/workflows/verify-dashboards-alerts.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/verify-dashboards-alerts.yaml b/.github/workflows/verify-dashboards-alerts.yaml index 78038918d..0744f3319 100644 --- a/.github/workflows/verify-dashboards-alerts.yaml +++ b/.github/workflows/verify-dashboards-alerts.yaml @@ -2,17 +2,7 @@ name: Verify Dashboards and Alerts OK on: push: - branches: main - paths: - # Dashboards - - examples/dashboards/app_developer.json - - examples/dashboards/business_user.json - - examples/dashboards/platform_engineer.json - # Alerts - - examples/alerts/prometheusrules_policies_missing.yaml - - examples/alerts/slo-availability.yaml - - examples/alerts/slo-latency.yaml - workflow_dispatch: + jobs: verify-dashboards-alerts: name: Verify Dashboards and Alerts OK From b90235e4b605f8623b02313a74b79a17b0ae8772 Mon Sep 17 00:00:00 2001 From: ehearneredhat Date: Thu, 22 Aug 2024 15:42:59 +0100 Subject: [PATCH 4/4] remove workflow dispatch and restore triggers Signed-off-by: ehearneredhat --- .github/workflows/verify-dashboards-alerts.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify-dashboards-alerts.yaml b/.github/workflows/verify-dashboards-alerts.yaml index 0744f3319..7fbb7be02 100644 --- a/.github/workflows/verify-dashboards-alerts.yaml +++ b/.github/workflows/verify-dashboards-alerts.yaml @@ -2,7 +2,16 @@ name: Verify Dashboards and Alerts OK on: push: - + branches: main + paths: + # Dashboards + - examples/dashboards/app_developer.json + - examples/dashboards/business_user.json + - examples/dashboards/platform_engineer.json + # Alerts + - examples/alerts/prometheusrules_policies_missing.yaml + - examples/alerts/slo-availability.yaml + - examples/alerts/slo-latency.yaml jobs: verify-dashboards-alerts: name: Verify Dashboards and Alerts OK