You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/05/15 02:51:06 UTC

[GitHub] [flink-kubernetes-operator] Aitozi commented on pull request #215: [FLINK-27163] Add label for the session job to help list the session …

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

   > 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`
   
   https://github.com/kubernetes/kubernetes/pull/53345
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org