-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement kubectl get/describe for ReplicaSet #20886
implement kubectl get/describe for ReplicaSet #20886
Conversation
Labelling this PR as size/L |
GCE e2e test build/test passed for commit 4935b804413967c49d7c43f0b7ef72addbf31f18. |
4935b80
to
b5e99be
Compare
Thanks! |
@@ -475,10 +468,6 @@ func describePod(pod *api.Pod, rcs []api.ReplicationController, events *api.Even | |||
fmt.Fprintf(out, "Reason:\t%s\n", pod.Status.Reason) | |||
fmt.Fprintf(out, "Message:\t%s\n", pod.Status.Message) | |||
fmt.Fprintf(out, "IP:\t%s\n", pod.Status.PodIP) | |||
var matchingRCs []*api.ReplicationController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
GCE e2e test build/test passed for commit b5e99be. |
The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label? |
cc @kubernetes/kubectl |
@@ -87,6 +87,7 @@ func describerMap(c *client.Client) map[unversioned.GroupKind]Describer { | |||
api.Kind("Endpoints"): &EndpointsDescriber{c}, | |||
api.Kind("ConfigMap"): &ConfigMapDescriber{c}, | |||
|
|||
extensions.Kind("ReplicaSet"): &ReplicaSetDescriber{c}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smarterclayton @nikhiljindal DefaultObjectDescriber (below) was added by PR #4880.
DefaultObjectDescriber only supports a small subset of resource types. I can't see it used anywhere other than the DefaultObjectDescriber unit test. I checked Openshift Origin also.
That PR was about enabling printing of local objects. I don't see how DefaultObjectDescriber is related to that. Can we rip it out?
Thanks. This looks like a faithful translation of the RC code. I had a suggestion and a question, but this is good enough to start with. We can make additional changes in subsequent PRs. |
LGTM |
Tests can be added in a subsequent PR, also. |
See also #20928 |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit b5e99be. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
func FormatLabelSelector(labelSelector *LabelSelector) string { | ||
var l string | ||
if selector, err := LabelSelectorAsSelector(labelSelector); err != nil { | ||
l = selector.String() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L86 should exchange with L88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #20994
Ref #3024