Skip to content

Commit

Permalink
better legacy check
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Oct 23, 2024
1 parent f5149ff commit 1c0419f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/kubeconfig/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func addCluster(config *clientcmdapi.Config, cluster gcp.Cluster, overwrite, ver
Server: cluster.Endpoint,
CertificateAuthorityData: ca,
}
isLegacy := cluster.Kind == gcp.KindLegacy || (strings.HasPrefix(cluster.Name, "nav") && strings.HasSuffix(cluster.Name, "gcp"))
isLegacy := cluster.Kind == gcp.KindLegacy || (strings.EqualFold("nav", cluster.Tenant) && strings.HasSuffix(cluster.Name, "gcp"))

if isLegacy {
kubeconfigCluster.CertificateAuthorityData = nil
Expand Down

0 comments on commit 1c0419f

Please # to comment.