Skip to content

Commit

Permalink
add zero quota policy to powermax (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
atye authored Feb 22, 2023
1 parent f55c59d commit 18af78c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions operatorconfig/moduleconfig/authorization/v1.6.0/policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ data:
common.roles[v].system_types[input.systemtype].system_ids[input.storagesystemid].pool_quotas[input.storagepool] >= to_number(input.request.volumeSizeInKb)
y := to_number(common.roles[v].system_types[input.systemtype].system_ids[input.storagesystemid].pool_quotas[input.storagepool])
}
permitted_roles[v] = y {
claimed_roles := split(input.claims.roles, ",")
some i
a := claimed_roles[i]
common.roles[a]
v := claimed_roles[i]
common.roles[v].system_types[input.systemtype].system_ids[input.storagesystemid].pool_quotas[input.storagepool] == 0
y := to_number(common.roles[v].system_types[input.systemtype].system_ids[input.storagesystemid].pool_quotas[input.storagepool])
}
---
apiVersion: v1
kind: ConfigMap
Expand Down

0 comments on commit 18af78c

Please sign in to comment.