Skip to content

Commit

Permalink
[OSSM-8154] Hotfix for cleaning custom prometheus operator (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkralik3 authored Sep 18, 2024
1 parent 04a6483 commit a456227
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/tests/tasks/observability/custom_prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/maistra/maistra-test-tool/pkg/util/env"
"github.com/maistra/maistra-test-tool/pkg/util/ns"
"github.com/maistra/maistra-test-tool/pkg/util/oc"
"github.com/maistra/maistra-test-tool/pkg/util/pod"
"github.com/maistra/maistra-test-tool/pkg/util/prometheus"
"github.com/maistra/maistra-test-tool/pkg/util/retry"
"github.com/maistra/maistra-test-tool/pkg/util/test"
Expand All @@ -50,12 +49,7 @@ func TestCustomPrometheus(t *testing.T) {
t.Cleanup(func() {
oc.RecreateNamespace(t, ns.Bookinfo)
oc.RecreateNamespace(t, meshNamespace)
oc.DeleteNamespace(t, customPrometheusNs)

// HACK: workaround for a bug with the OLM CSV cache (possibly OCPBUGS-5080)
// the bug is preventing re-installing prometheus again on the same cluster unless the cache is cleared
oc.DeletePod(t, pod.MatchingSelector("app=catalog-operator", "openshift-operator-lifecycle-manager"))
oc.DeletePod(t, pod.MatchingSelector("app=olm-operator", "openshift-operator-lifecycle-manager"))
prometheusoperator.Uninstall(t)
})

t.LogStep("Installing Prometheus operator")
Expand Down

0 comments on commit a456227

Please sign in to comment.