[Policy] Allow map variables for policy key #5116
lucaspouzac
started this conversation in
Ideas
Replies: 2 comments
-
hi @lucaspouzac we're looking into this and will update it in due course. We want to make sure whatever the solution is, it should work for both Ingress and VirtualServer. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Accepting a "map block" as Policy is essentially a sting blob. It is no better than or different than a snippet. I think the way to think about this is more like a programmability capability such as 'action' which is a capability of the VirtualServer custom resource. |
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
-
Is your feature request related to a problem? Please describe.
Actually, it's not possible to use map on key of policy, if we used nginx CRDs. It's ok if we declare manually this on http-snippets, we cannot re-use it on VirtualServerRoute easily.
Describe the solution you'd like
We would like to be able to use a map as a key variable like ${map_(mapName)}
Describe alternatives you've considered
Manual declaration, without CRDs usage.
Additional context
https://github.com/nginxinc/kubernetes-ingress/blob/v3.4.2/pkg/apis/configuration/validation/policy.go#L479
Beta Was this translation helpful? Give feedback.
All reactions