morhidi commented on PR #215:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/215#issuecomment-1126859076

   > > k get sessionjob --field-selector 
spec.deploymentName=basic-session-cluster
   > 
   > I tried this way before, but the custom resource seems do not support 
field selector
   > 
   > ```
   > kubectl get sessionjob --field-selector 
spec.deploymentName=basic-session-cluster
   > Error from server (BadRequest): Unable to find "flink.apache.org/v1beta1, 
Resource=flinksessionjobs" that match label selector "", field selector 
"spec.deploymentName=basic-session-cluster": field label not supported: 
spec.deploymentName
   > 
   > kubectl version --short
   > Flag --short has been deprecated, and will be removed in the future. The 
--short output will become the default.
   > Client Version: v1.24.0
   > Kustomize Version: v4.5.4
   > Server Version: v1.23.3
   > ```
   > 
   > After search the related issues, I think the custom resource can only 
support field selector by `metadata.namespace` and `metadata.name`
   > 
   > 
[kubernetes/kubernetes#53345](https://github.com/kubernetes/kubernetes/pull/53345)
   
   
   > > k get sessionjob --field-selector 
spec.deploymentName=basic-session-cluster
   > 
   > I tried this way before, but the custom resource seems do not support 
field selector
   > 
   > ```
   > kubectl get sessionjob --field-selector 
spec.deploymentName=basic-session-cluster
   > Error from server (BadRequest): Unable to find "flink.apache.org/v1beta1, 
Resource=flinksessionjobs" that match label selector "", field selector 
"spec.deploymentName=basic-session-cluster": field label not supported: 
spec.deploymentName
   > 
   > kubectl version --short
   > Flag --short has been deprecated, and will be removed in the future. The 
--short output will become the default.
   > Client Version: v1.24.0
   > Kustomize Version: v4.5.4
   > Server Version: v1.23.3
   > ```
   > 
   > After search the related issues, I think the custom resource can only 
support field selector by `metadata.namespace` and `metadata.name`
   > 
   > 
[kubernetes/kubernetes#53345](https://github.com/kubernetes/kubernetes/pull/53345)
   
   Yeah, I was almost sure you've tried it, but I thought it was worth asking :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to