Skip to content

Commit

Permalink
add makefile target to login to created ARO
Browse files Browse the repository at this point in the history
Signed-off-by: kksat <[email protected]>
  • Loading branch information
kksat committed Aug 13, 2024
1 parent 591d5dd commit 80eb14c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bicep.makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ aro-url: ## Get ARO URL
.PHONY: domain-zone-exists
domain-zone-exists: ## Fail if DNS domain zone does not exists
ARO_DOMAIN=${ARO_DOMAIN} hack/domain-zone-exists.sh

.PHONY: oc-login
oc-login: ## Login with oc to existing ARO cluster
oc login "$(shell az aro show --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP} --query "apiserverProfile.url" -o tsv)" \
-u "$(shell az aro list-credentials --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP} --query 'kubeadminUsername' -o tsv)" \
-p "$(shell az aro list-credentials --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP} --query 'kubeadminPassword' -o tsv)"

0 comments on commit 80eb14c

Please sign in to comment.