Skip to content

Conversation

@rene-dekker
Copy link
Member

@rene-dekker rene-dekker commented Jan 21, 2026

fix(apiserver): Add missing permission permission

On OCP 4.20, the apiserver would show error:
"time="2026-01-15T15:29:01Z" level=error msg="Failed to watch" error="failed to list config.openshift.io/v1, Resource=infrastructures: infrastructures.config.openshift.io is forbidden: User "system:serviceaccount:calico-system:calico-apiserver" cannot list resource "infrastructures" in API group "config.openshift.io" at the cluster scope" klog-logger=calico-apiserver reflector="pkg/mod/k8s.io/client-go@v0.33.6/tools/cache/reflector.go:285" type="config.openshift.io/v1, Resource=infrastructures""

Added a required permission for setting up watches in the calico-apiserver on OCP 4.20

On OCP 4.20, the apiserver would show error:
 "time="2026-01-15T15:29:01Z" level=error msg="Failed to watch" error="failed to list config.openshift.io/v1, Resource=infrastructures: infrastructures.config.openshift.io is forbidden: User \"system:serviceaccount:calico-system:calico-apiserver\" cannot list resource \"infrastructures\" in API group \"config.openshift.io\" at the cluster scope" klog-logger=calico-apiserver reflector="pkg/mod/k8s.io/client-go@v0.33.6/tools/cache/reflector.go:285" type="config.openshift.io/v1, Resource=infrastructures""
@rene-dekker
Copy link
Member Author

/merge-when-ready

@marvin-tigera
Copy link
Contributor

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and leave the branch after I've merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants