Skip to content

Commit

Permalink
get kubeconfig file for ARO
Browse files Browse the repository at this point in the history
Signed-off-by: c5346650 <manjun.jiao@sap.com>
  • Loading branch information
c5346650 committed Aug 27, 2024
1 parent 0973d67 commit 30a0609
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .config/cspell-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ getline
TMPARGS
getopt
unrecognised
kubeconfig
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.idea
.env
node_modules
kubeconfig
4 changes: 4 additions & 0 deletions bicep.makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ aro-credentials: ## Get ARO credentials
$(call required-environment-variables,ARO_RESOURCE_GROUP ARO_CLUSTER_NAME)
@az aro list-credentials --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP}

aro-kubeconfig: ## Get ARO kubeconfig file
$(call required-environment-variables,ARO_RESOURCE_GROUP ARO_CLUSTER_NAME)
@az aro get-admin-kubeconfig --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP}

aro-url: ## Get ARO URL
$(call required-environment-variables,ARO_RESOURCE_GROUP ARO_CLUSTER_NAME)
@az aro show --name ${ARO_CLUSTER_NAME} --resource-group ${ARO_RESOURCE_GROUP} --query "apiserverProfile.url" -o tsv
Expand Down

0 comments on commit 30a0609

Please sign in to comment.