mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
fix openshift cluster detection (#408)
This commit is contained in:
committed by
GitHub
parent
f30e925580
commit
c7af0dc593
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user