redhat-developer / gitops-operator

An operator that gets you an ArgoCD for cluster configuration out-of-the-box on OpenShift along with the UI for visualizing environments.
Apache License 2.0
147 stars 273 forks source link

fix: operator controller manager cannot list networkpolicies [1.11] #713

Closed iam-veeramalla closed 3 months ago

iam-veeramalla commented 3 months ago

What type of PR is this?

/kind bug

What does this PR do / why we need it: fix: operator controller manager cannot list networkpolicies

E0522 18:24:17.392760       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.3/tools/cache/reflector.go:229: Failed to watch *v1.NetworkPolicy: failed to list *v1.NetworkPolicy: networkpolicies.networking.k8s.io is forbidden: User "system:serviceaccount:openshift-operators:openshift-gitops-operator-controller-manager" cannot list resource "networkpolicies" in API group "networking.k8s.io" at the cluster scope

Have you updated the necessary documentation? NA

How to test changes / Special notes to the reviewer:

openshift-ci[bot] commented 3 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from iam-veeramalla. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/redhat-developer/gitops-operator/blob/v1.11/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment