Skip to content

Commit 5fb1130

Browse files
author
Moritz Clasmeier
committed
Accidentally left out during manual merge
1 parent 26eb1dd commit 5fb1130

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/env/env.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ func DetectClusterType(config KubeConfig, apiResources []string) types.ClusterTy
147147
return types.ClusterTypeInfraGKE
148148
}
149149

150+
// Minikube clusters typically have context name "minikube".
151+
if contextLower == "minikube" || strings.HasPrefix(contextLower, "minikube-") {
152+
return types.ClusterTypeMinikube
153+
}
154+
150155
// Check for OpenShift 4 clusters.
151156
if isOpenShift4(apiResources) {
152157
if isInfraOpenShift4(config) {

0 commit comments

Comments
 (0)