fix openshift cluster detection (#408)

This commit is contained in:
Salah Aldeen Al Saleh
2021-08-24 09:51:12 -07:00
committed by GitHub
parent f30e925580
commit c7af0dc593

View File

@@ -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"
}