Skip to content

Commit d499fcf

Browse files
committed
migrate prod-gcp to new cluster
1 parent 9d3551d commit d499fcf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pkg/kubeconfig/gcpcluster.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ func getGCPClusters(ctx context.Context, project project) ([]k8sCluster, error)
8989
name = "dev-gcp"
9090
}
9191

92+
if project.Tenant == "nav" && cluster.Name == "nais-prod" {
93+
name = "prod-gcp"
94+
}
95+
9296
kind := project.Kind
93-
if slices.Contains([]string{"prod-gcp", "ci-gcp"}, name) {
97+
if slices.Contains([]string{"ci-gcp"}, name) {
9498
kind = kindLegacy
9599
}
96100

pkg/kubeconfig/labels.go

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ func parseKind(in string) Kind {
3232

3333
func getClusterServerForLegacyGCP(name string) string {
3434
switch name {
35-
case "prod-gcp":
36-
return "https://10.255.240.6"
3735
case "ci-gcp":
3836
return "https://10.255.240.7"
3937
default:

0 commit comments

Comments
 (0)