Skip to content

Commit

Permalink
add resource-group to query
Browse files Browse the repository at this point in the history
  • Loading branch information
sondresjolyst committed Nov 22, 2023
1 parent 348bbc4 commit 1210743
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/lock-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ on:
- cron: '0 18 * * *'
workflow_dispatch:


secrets:
AZURE_CLIENT_ID:
required: true
AZURE_SUBSCRIPTION_ID:
required: true
AZURE_TENANT_ID:
required: true

permissions:
id-token: write
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/check_resource_lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SLACK_WEBHOOK_URL="$(az keyvault secret show \
--name "${KV_SECRET_SLACK_WEBHOOK}" \
--subscription "${AZ_SUBSCRIPTION_ID}" |
jq -r .value)"
CLUSTERS=$(az aks list --output json | jq '{k8s:[.[] | {name: .name, resourceGroup: .resourceGroup, id: .id}]}')
CLUSTERS=$(az aks list --resource-group "${AZ_RESOURCE_GROUP_CLUSTERS}" --output json | jq '{k8s:[.[] | {name: .name, resourceGroup: .resourceGroup, id: .id}]}')

createLock() {
local NAME=$1
Expand Down

0 comments on commit 1210743

Please sign in to comment.