Skip to content

Commit

Permalink
use label for bastion discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
franknstyle committed May 17, 2023
1 parent 2129f04 commit 6594748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/bastion.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func FetchBastionIpAddress(clusterName, namespace, kubeConfigPath string) (strin
namespace = "default"
}
p := gexe.RunProc(fmt.Sprintf(
`kubectl get awscluster/%s -o jsonpath='{.status.bastion.publicIp}' --namespace %s --kubeconfig %s`,
`kubectl get awscluster -l cluster.x-k8s.io/cluster-name=%s -o jsonpath='{.status.bastion.publicIp}' --namespace %s --kubeconfig %s`,
clusterName,
namespace,
kubeConfigPath,
Expand Down

0 comments on commit 6594748

Please sign in to comment.