bug: CEL validation of PermissionClaims.ResourceSelector.Namespaces not compiling or passing tests #2898
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Describe the bug
As part of #2456, a CEL validation rule was added to the
PermissionClaims.ResourceSelector.Namespaces
field to disallow the empty string (""
) anywhere in the list.However, this test is not passing and the
validator
function created from the rule seems to be a no-op based on debugging information.Steps To Reproduce
pkg/apis/apis/v1alpha1/types_apiexport_test.go
and remove thet.Skip
statementcd pkg/apis && go test ./apis/v1alpha1 -run TestAPIExportPermissionClaimNamespace
Expected Behaviour
The CEL validation function should be constructed, but for some reason stepping into it all the fields are set to nil. Possibly a bug in our parsing logic?
Additional Context
No response
The text was updated successfully, but these errors were encountered: