From c7af0dc59355e5226aeb841866a64896bb990f02 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Tue, 24 Aug 2021 09:51:12 -0700 Subject: [PATCH] fix openshift cluster detection (#408) --- pkg/analyze/distribution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyze/distribution.go b/pkg/analyze/distribution.go index 88365845..6d2a6949 100644 --- a/pkg/analyze/distribution.go +++ b/pkg/analyze/distribution.go @@ -46,7 +46,7 @@ const ( func CheckOpenShift(foundProviders *providers, apiResources []*metav1.APIResourceList, provider string) string { for _, resource := range apiResources { - if strings.Contains(resource.GroupVersion, "openshift") { + if strings.HasPrefix(resource.GroupVersion, "apps.openshift.io/") { foundProviders.openShift = true return "openShift" }