While attaching the policy to user controller gives error and policy doesn't get attached. Users and Policies tested independently and no issue with them. Attachment of Policy to Role also works.
Error on controller:
ERROR controller-runtime.controller Reconciler error {"controller": "policyattachment", "request": "default/policyattachment-sample-dpy", "error": "defined references do not exist for PolicyAttachment 'policyattachment-sample-dpy/default"}
While attaching the policy to user controller gives error and policy doesn't get attached. Users and Policies tested independently and no issue with them. Attachment of Policy to Role also works.
File:
Error on controller:
ERROR controller-runtime.controller Reconciler error {"controller": "policyattachment", "request": "default/policyattachment-sample-dpy", "error": "defined references do not exist for PolicyAttachment 'policyattachment-sample-dpy/default"}