Skip to content

Commit

Permalink
fix gke by using contextName
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal committed Feb 9, 2020
1 parent d52d1d2 commit f591903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fleet/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func getProvider(cfg api.Config, contextName string) string {
switch {
case strings.HasPrefix(contextName, "kind-"):
return "kind"
case strings.HasPrefix(apiServerEndpoint, "gke"):
case strings.HasPrefix(contextName, "gke"):
return "GKE"
case strings.Contains(apiServerEndpoint, "amazon"):
return "AWS"
Expand Down

0 comments on commit f591903

Please sign in to comment.