[Need help] Add an annotation to all services of type LoadBalancer using OPA gatekeeper AssignMetadata mutation CRD #457
Unanswered
spandan541
asked this question in
Gatekeeper
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need some help adding an annotation to all services of type LoadBalancer using the AssignMetadata CRD.
As of today, I am not sure if the match section supports comparing fields in spec (eg: spec.type).
Hence I was wondering if there is any way to compare the value of
spec.type == LoadBalancer
in the AssignMetadata CRDProposed solution :-
Can we can filter out services by adding a
filter
field to the match section? Something like the example below :-Eg:
Please do suggest if this use case can already be solved using the existing CRDs. Looking forward to a few suggestions.
Beta Was this translation helpful? Give feedback.
All reactions