-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(kuma-cp): allow using Dataplane kind in top level targetRef in all policies #12659
feat(kuma-cp): allow using Dataplane kind in top level targetRef in all policies #12659
Conversation
…ll policies Signed-off-by: Marcin Skalski <[email protected]>
Reviewer Checklist🔍 Each of these sections need to be checked by the reviewer of the PR 🔍:
|
Signed-off-by: Marcin Skalski <[email protected]>
Signed-off-by: Marcin Skalski <[email protected]>
…taplane-kind # Conflicts: # pkg/plugins/policies/meshtimeout/api/v1alpha1/validator.go # pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/validator.go
pkg/plugins/policies/meshfaultinjection/api/v1alpha1/validator.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Marcin Skalski <[email protected]>
wait, but the stuff in ResourceDescriptor is static and depends on the policy type, right? we should allow/disallow |
Signed-off-by: Marcin Skalski <[email protected]>
@lobkovilya I've circled back to isInboundPolicy option |
probably you need to add some unit tests in validation, as there were no failures with incorrect approach |
@lobkovilya I've added this test previosly: kuma/pkg/core/resources/apis/mesh/validators_test.go Lines 1030 to 1040 in 1bbc414
|
No I mean initially you've passed |
Signed-off-by: Marcin Skalski <[email protected]>
Signed-off-by: Marcin Skalski <[email protected]>
Signed-off-by: Marcin Skalski <[email protected]>
Signed-off-by: Marcin Skalski <[email protected]>
Signed-off-by: Marcin Skalski <[email protected]>
Motivation
As in pr title, we want to use top level targetRef kind Dataplane in all policies