Re: [kubernetes/kubernetes] Cannot format a selector with jsonpath (#15858)

0 views
Skip to first unread message

Michail Kargakis

unread,
Jun 10, 2017, 11:54:20 AM6/10/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@kubernetes/sig-cli-misc


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

fejta-bot

unread,
Dec 26, 2017, 10:29:22 PM12/26/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

fejta-bot

unread,
Jan 25, 2018, 10:38:00 PM1/25/18
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

Tim Hockin

unread,
Jan 31, 2018, 11:55:15 PM1/31/18
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

/lifecycle frozen
/remove-lifecycle stale

Nikhita Raghunath

unread,
Mar 4, 2018, 3:53:34 AM3/4/18
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

/remove-lifecycle rotten

Nikhita Raghunath

unread,
Sep 13, 2018, 4:58:14 PM9/13/18
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Removing help-wanted as there isn't a clear direction and details on how to fix this for contributors to dive into.

/remove-help

Kubernetes Prow Robot

unread,
May 6, 2020, 10:37:28 AM5/6/20
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@liggitt: Closing this issue.

In response to this:

/close

The layer that does jsonpath rendering is intentionally type-agnostic. I don't anticipate adding kube-specific object rendering there.

Resources that support the /scale subresource (replication controllers, replicasets, deployments, statefulsets, some custom resources, etc) return a stringified selector in the .status.selector field of the scale subresource:

kubectl get --raw /apis/apps/v1/namespaces/default/deployments/my-dep/scale | \
 jq -r .status.selector

Something like #60902 that would allow kubectl get|patch to make requests to subresources would let us do this:

kubectl get deployment/my-dep --subresource=scale -o jsonpath="{.status.selector}"

xref kubernetes/kubectl#564 for adding subresource support to kubectl which would enable getting string-formatted selectors for scale-supporting resources.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Jordan Liggitt

unread,
May 6, 2020, 10:39:51 AM5/6/20
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

/close

The layer that does jsonpath rendering is intentionally type-agnostic. I don't anticipate adding kube-specific object rendering there.

Resources that support the /scale subresource (replication controllers, replicasets, deployments, statefulsets, some custom resources, etc) return a stringified selector in the .status.selector field of the scale subresource:

kubectl get --raw /apis/apps/v1/namespaces/default/deployments/my-dep/scale | \
  jq -r .status.selector

Something like #60902 that would allow kubectl get|patch to make requests to subresources would let us do this:

kubectl get deployment/my-dep --subresource=scale -o jsonpath="{.status.selector}"

xref kubernetes/kubectl#564 for adding subresource support to kubectl which would enable getting string-formatted selectors for scale-supporting resources.

Kubernetes Prow Robot

unread,
May 6, 2020, 10:40:01 AM5/6/20
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Closed #15858.

Reply all
Reply to author
Forward
0 new messages