Skip to content

Commit

Permalink
fix openshift cluster detection (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Aug 24, 2021
1 parent f30e925 commit c7af0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyze/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit c7af0dc

Please sign in to comment.