Skip to content

Commit

Permalink
fine grained orphaned role assignment cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Oct 29, 2024
1 parent a9bbf61 commit 1871db9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dev-infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ region.wait:
.PHONY: region.wait

region: region.wait regional.rg
@scripts/cleanup-orphaned-rolebindings.sh $(REGIONAL_RESOURCEGROUP)
az deployment group create \
--name $(REGIONAL_RG_DEPLOYMENT_NAME) \
--resource-group $(REGIONAL_RESOURCEGROUP) \
Expand Down Expand Up @@ -192,7 +193,8 @@ svc.wait:
@./ensure-no-running-deployment.sh $(SVC_RESOURCEGROUP) $(SVC_RG_DEPLOYMENT_NAME)
.PHONY: svc.wait

svc: svc.wait svc.rg cleanup-orphaned-rolebindings
svc: svc.wait svc.rg
@scripts/cleanup-orphaned-rolebindings.sh $(SVC_RESOURCEGROUP)
az deployment group create \
--name $(SVC_RG_DEPLOYMENT_NAME) \
--resource-group $(SVC_RESOURCEGROUP) \
Expand Down Expand Up @@ -272,7 +274,8 @@ mgmt.wait:
@./ensure-no-running-deployment.sh $(MGMT_RESOURCEGROUP) $(MGMG_RG_DEPLOYMENT_NAME)
.PHONY: mgmt.wait

mgmt: mgmt.wait mgmt.rg cleanup-orphaned-rolebindings
mgmt: mgmt.wait mgmt.rg
@scripts/cleanup-orphaned-rolebindings.sh $(MGMT_RESOURCEGROUP)
az deployment group create \
--name $(MGMG_RG_DEPLOYMENT_NAME) \
--resource-group $(MGMT_RESOURCEGROUP) \
Expand Down

0 comments on commit 1871db9

Please sign in to comment.