Skip to content

Commit a33d6b8

Browse files
author
Moritz Clasmeier
committed
Prettier cluster names
Fix test
1 parent 0dadc8c commit a33d6b8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

internal/env/env_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func TestClusterTypeString(t *testing.T) {
291291
{
292292
name: "types.ClusterTypeInfraGKE",
293293
clusterType: types.ClusterTypeInfraGKE,
294-
want: "GKE",
294+
want: "GKE (infra)",
295295
},
296296
{
297297
name: "InfraOpenShift4",

internal/types/cluster_type.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ func (ct ClusterType) IsOpenShift() bool {
5353
func (ct ClusterType) String() string {
5454
switch ct {
5555
case ClusterTypeInfraGKE:
56-
return "GKE"
56+
return "GKE (infra)"
5757
case ClusterTypeInfraOpenShift4:
5858
return "OpenShift4 (infra)"
5959
case ClusterTypeOpenShift4:
6060
return "OpenShift4"
6161
case ClusterTypeKind:
6262
return "Kind"
6363
case ClusterTypeMinikube:
64-
return "minikube"
64+
return "Minikube"
6565
case ClusterTypeK3s:
66-
return "k3s"
66+
return "K3s"
6767
case ClusterTypeCRC:
68-
return "crc"
68+
return "CRC"
6969
default:
7070
return "Unknown"
7171
}

0 commit comments

Comments
 (0)