openshift / api

Canonical location of the OpenShift API definition.
http://www.openshift.org
Apache License 2.0
94 stars 517 forks source link

Missing Metadata for ProjectList in project.openshift.io/v1 #2064

Open Mangaal opened 1 month ago

Mangaal commented 1 month ago

Description: 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, I confirmed that the resourceVersion is missing for ProjectList.

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]]