Skip to content
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

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

mqliang
Copy link
Contributor

@mqliang mqliang commented Feb 9, 2016

Ref #3024

@mqliang mqliang mentioned this pull request Feb 9, 2016
@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 9, 2016
@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-bot
Copy link

k8s-bot commented Feb 9, 2016

GCE e2e test build/test passed for commit 4935b804413967c49d7c43f0b7ef72addbf31f18.

@mqliang mqliang force-pushed the ReplicaSet-kubectl branch from 4935b80 to b5e99be Compare February 9, 2016 06:02
@bgrant0607
Copy link
Member

Thanks!

cc @Kargakis @janetkuo @madhusudancs

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@k8s-bot
Copy link

k8s-bot commented Feb 9, 2016

GCE e2e test build/test passed for commit b5e99be.

@k8s-github-robot
Copy link

The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label?

@bgrant0607
Copy link
Member

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},
Copy link
Member

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?

@bgrant0607
Copy link
Member

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.

@bgrant0607
Copy link
Member

LGTM

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2016
@bgrant0607
Copy link
Member

Tests can be added in a subsequent PR, also.

@bgrant0607
Copy link
Member

See also #20928

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Feb 10, 2016

GCE e2e test build/test passed for commit b5e99be.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Feb 10, 2016
@k8s-github-robot k8s-github-robot merged commit 66e8722 into kubernetes:master Feb 10, 2016
func FormatLabelSelector(labelSelector *LabelSelector) string {
var l string
if selector, err := LabelSelectorAsSelector(labelSelector); err != nil {
l = selector.String()
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #20994

@mqliang mqliang deleted the ReplicaSet-kubectl branch November 28, 2016 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/app-lifecycle area/kubectl lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants