-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: morvencao <[email protected]>
- Loading branch information
Showing
63 changed files
with
65 additions
and
4,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# define the variables | ||
REPO_URL = [email protected]:Azure/ARO-HCP.git | ||
BRANCH = maestro-light-setup | ||
CLONE_DIR = aro-hcp | ||
|
||
# clone the repo | ||
clone: | ||
@if [ -d $(CLONE_DIR) ]; then \ | ||
echo "Removing existing directory $(CLONE_DIR)..."; \ | ||
rm -rf $(CLONE_DIR); \ | ||
fi; \ | ||
echo "Cloning repository..."; \ | ||
git clone $(REPO_URL) -b $(BRANCH) $(CLONE_DIR) | ||
.PHONY: clone | ||
|
||
# create the cluster (svc-cluster or mgmt-cluster) | ||
cluster: clone | ||
ifndef AKSCONFIG | ||
$(error "Must set AKSCONFIG") | ||
endif | ||
@$(MAKE) -C $(CLONE_DIR)/dev-infrastructure cluster | ||
.PHONY: cluster | ||
|
||
# grant admin access to the cluster | ||
aks.admin-access: | ||
ifndef AKSCONFIG | ||
$(error "Must set AKSCONFIG") | ||
endif | ||
@$(MAKE) -C $(CLONE_DIR)/dev-infrastructure aks.admin-access | ||
.PHONY: aks.admin-access | ||
|
||
# retrieve the kubeconfig | ||
aks.kubeconfig: | ||
ifndef AKSCONFIG | ||
$(error "Must set AKSCONFIG") | ||
endif | ||
@$(MAKE) -C $(CLONE_DIR)/dev-infrastructure aks.kubeconfig | ||
.PHONY: aks.kubeconfig | ||
|
||
# deploy the maestro server | ||
deploy-server: | ||
@AKSCONFIG=svc-cluster $(MAKE) -C $(CLONE_DIR)/maestro deploy-server | ||
.PHONY: deploy-server | ||
|
||
# deploy the maestro agent | ||
deploy-agent: | ||
@AKSCONFIG=mgmt-cluster $(MAKE) -C $(CLONE_DIR)/maestro deploy-agent | ||
.PHONY: deploy-agent | ||
|
||
# register the maestro agent | ||
register-agent: | ||
@AKSCONFIG=svc-cluster $(MAKE) -C $(CLONE_DIR)/maestro register-agent | ||
.PHONY: register-agent | ||
|
||
# clean up the resources | ||
clean: | ||
ifndef AKSCONFIG | ||
$(error "Must set AKSCONFIG") | ||
endif | ||
@$(MAKE) -C $(CLONE_DIR)/dev-infrastructure clean | ||
@rm -rf $(CLONE_DIR) | ||
.PHONY: clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
test/e2e/setup/aro/cluster/configurations/mgmt-cluster.bicepparam
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
test/e2e/setup/aro/cluster/configurations/svc-cluster.bicepparam
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.