Skip to content

Resolve api groups in resolveresource - #8280

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:resolve-group-resources
Mar 31, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:resolve-group-resources

Conversation

@liggitt

@liggitt liggitt commented Mar 29, 2016

Copy link
Copy Markdown
Contributor

Fixes #7117

Comment thread pkg/cmd/util/cmd.go Outdated

partialResource := unversioned.GroupVersionResource{Resource: strings.ToLower(resourceGroupParts[0])}
if len(resourceGroupParts) > 1 {
partialResource.Group = resourceGroupParts[1]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lower the group while you're here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oc get hpa.Autoscaling doesn't lowercase group to work... I'm not sure I want to enable incorrect groups to work here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

agreed with @liggitt - at any case we should not diverge from kubectl

@liggitt

liggitt commented Mar 29, 2016

Copy link
Copy Markdown
Contributor Author

@deads2k @Kargakis PTAL

@liggitt

liggitt commented Mar 29, 2016

Copy link
Copy Markdown
Contributor Author

[test]

Comment thread pkg/cmd/util/cmd.go Outdated
if groupResource != gvr.GroupResource() {
return "", "", &meta.AmbiguousResourceError{PartialResource: partialResource, MatchingResources: gvrs}
}
// Allow specifying the group the same way kubectl does

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be ideal if we would re-use the code from there for all the parsing we do here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be ideal if we would re-use the code from there for all the parsing we do here.

ParseResourceArg

@0xmichalis

Copy link
Copy Markdown
Contributor

LGTM

@liggitt

liggitt commented Mar 30, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@liggitt

liggitt commented Mar 30, 2016

Copy link
Copy Markdown
Contributor Author

flake on #6040, re[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 49ad7cc

@openshift-bot

Copy link
Copy Markdown
Contributor

@liggitt

liggitt commented Mar 30, 2016

Copy link
Copy Markdown
Contributor Author

Yum timeout, re[merge]

@0xmichalis

Copy link
Copy Markdown
Contributor

flake #6533

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5489/) (Image: devenv-rhel7_3877)

@0xmichalis

Copy link
Copy Markdown
Contributor

now network flake [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 49ad7cc

@openshift-bot
openshift-bot merged commit 7af1063 into openshift:master Mar 31, 2016
@liggitt
liggitt deleted the resolve-group-resources branch April 1, 2016 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants