Skip to content

Commit 7edb0f2

Browse files
Merge pull request openshift#493 from kargakis/rg-ttl
Tag resource groups with a TTL
2 parents 7f2bb23 + 7e13dc7 commit 7edb0f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hack/create.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ export RESOURCEGROUP=$1
4646
rm -rf _data
4747
mkdir -p _data/_out
4848

49-
az group create -n $RESOURCEGROUP -l eastus --tags now=$(date +%s) >/dev/null
49+
ttl=76h
50+
if [[ -n $RESOURCEGROUP_TTL ]]; then
51+
ttl=$RESOURCEGROUP_TTL
52+
fi
53+
az group create -n $RESOURCEGROUP -l eastus --tags now=$(date +%s) ttl=$ttl >/dev/null
5054

5155
# if AZURE_CLIENT_ID is used as AZURE_AAD_CLIENT_ID, script will reset global team account!
5256
set +x

0 commit comments

Comments
 (0)