We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f853e9 commit f22ea6eCopy full SHA for f22ea6e
1 file changed
templates/resource-policy.yaml
@@ -9,15 +9,14 @@ data:
9
policy.rego: |
10
package policy
11
default allow = false
12
- allow {
13
- input["submods"]["cpu0"]["ear.status"] == "affirming"
+ allow if {
+ input.submods.cpu0["ear.status"] == "affirming"
14
gpu0_ok
15
}
16
+ gpu0_ok if {
17
+ not input.submods.gpu0
18
+ }
19
- gpu0_ok {
- not input["submods"]["gpu0"]
- }
20
-
21
22
- input["submods"]["gpu0"]["ear.status"] == "affirming"
+ input.submods.gpu0["ear.status"] == "affirming"
23
0 commit comments