-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.16
-
None
-
False
-
Description of problem:
It appears that the metadata field, specifically resourceVersion, is missing in the ProjectList object Questions: Is the absence of resourceVersion in the ProjectList metadata for project.openshift.io/v1 by design, or is this a bug? If this is by design, could you please clarify the reasoning behind it?This caused issues when handling watch events in the Argo CD gitops-engine. After printing out the API resource details during troubleshooting, we confirmed that the resourceVersion is missing for ProjectList. Related Jira: https://issues.redhat.com/browse/GITOPS-5213 This jira is opened as a placeholder for the Github issue reported for the same: https://github.com/openshift/api/issues/2064
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
https://issues.redhat.com/browse/GITOPS-5213 1. Enable resource.resource,respectRBAC in extraConfig 2. Configure additional clusterrole and clusterrolebinding if using a cluster scoped instance 3. Check the logs to see the above message.
Actual results:
Log being spammed with message Project.project.openshift.io on https:<...>: initial RV \"\" is not supported due to issues with underlying WATCH, retrying in 1s" server="https://kubernetes.default.svc"91E0809 19:18:32.728128 retrywatcher.go:130] "Watch failed" err="unknown"
Expected results:
No spamming of the logs
Additional info:
Here is the relevant log output: &{map[apiVersion:project.openshift.io/v1 kind:ProjectList metadata:map[]] &{map[apiVersion:apps/v1 kind:StatefulSetList metadata:map[resourceVersion:50313]] &{map[apiVersion:operator.openshift.io/v1 kind:KubeControllerManagerList metadata:map[continue: resourceVersion:50313]] &{map[apiVersion:operator.openshift.io/v1 kind:KubeControllerManagerList metadata:map[continue: resourceVersion:50313]] &{map[apiVersion:argoproj.io/v1alpha1 kind:AppProjectList metadata:map[continue: resourceVersion:72951]]