diff --git a/internal/pkg/controller/controller_test.go b/internal/pkg/controller/controller_test.go index 69191bf3..f6bb4f77 100644 --- a/internal/pkg/controller/controller_test.go +++ b/internal/pkg/controller/controller_test.go @@ -52,6 +52,10 @@ func TestMain(m *testing.M) { // Perform rolling upgrade on deploymentConfig and create env var upon updating the configmap func TestControllerUpdatingConfigmapShouldCreateEnvInDeploymentConfig(t *testing.T) { + // Don't run test on non-openshift environment + if !kube.IsOpenshift() { + return + } // Creating configmap configmapName := configmapNamePrefix + "-update-" + testutil.RandSeq(5)