can someone explain whats happening here #565
Replies: 1 comment
-
Is your policy really producing the expected result? Running it against your If you update missing_pipeline_labels contains missing if {
required_labels := {
"automation.abc/pa",
"automation.abc/pn",
}
required_labels[la] # enumerate all labels 'la' in 'required_labels'
not input.metadata.labels[la] # for each 'la' not in 'input'
missing := la # report it as missing
} then we'll get the deny reason: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this rego code , and yaml file , this seems to work however fail to understand what is happening here, how is missing is assigned label which is not in required labels . can someone explain what is happening
and this input
Beta Was this translation helpful? Give feedback.
All reactions