Skip to content

Commit

Permalink
clean up destination naming in infra list (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca authored Oct 6, 2021
1 parent 9eafc4a commit 400ead9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ func list() error {
Name: d.Name,
Status: "💻 → ❌ Can't reach internet",
}

if kube, ok := d.GetKubernetesOk(); ok {
row.Endpoint = kube.Endpoint
row.CertificateAuthorityData = []byte(kube.Ca)
row.Type = "k8s"
row.Name = "infra:" + row.Name
row.Type = "kubernetes"

if kubeConfig.CurrentContext == row.Name {
row.CurrentlySelected = "*"
}
}
// other dest types?

rows = append(rows, row)
}

Expand Down

0 comments on commit 400ead9

Please sign in to comment.