Skip to content

Commit

Permalink
Merge pull request #249 from franknstyle/capa-label
Browse files Browse the repository at this point in the history
use label for bastion discovery
  • Loading branch information
franknstyle authored May 17, 2023
2 parents 2129f04 + 6594748 commit 9cb89a4
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 9cb89a4

Please sign in to comment.