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

remove usage of legacy client in oc describers #16041

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Aug 29, 2017

This pull will switch describers in oc 3.7 from using /oapi to using the groupified API. This means that normal CRUD will work from oc3.7 to master3.5, but oc describe from oc3.7 to master3.5 will not. oc describe from oc3.5 to master3.7 will work fine

kubectl only supports one level of skew. Do we need to update ours to match: https://github.com/openshift/openshift-docs/blob/d5c99ae36b59436459219701c2c19d1bce9bf905/release_notes/index.adoc ?

@fabianofranz @smarterclayton @liggitt

@openshift-merge-robot openshift-merge-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 29, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-api-review labels Aug 29, 2017
@liggitt
Copy link
Contributor

liggitt commented Aug 29, 2017

kubectl only supports one level of skew. Do we need to update ours to match: https://github.com/openshift/openshift-docs/blob/d5c99ae36b59436459219701c2c19d1bce9bf905/release_notes/index.adoc ?

The cited example happens to fall in our desired support window ("For example, a 3.4 oc will work against 3.3, 3.4, and 3.5 servers.") but we should update that table with X.Y-1

if err != nil {
glog.V(1).Info(err)
}

m := map[schema.GroupKind]kprinters.Describer{
buildapi.Kind("Build"): &BuildDescriber{c, kclient},
Copy link
Contributor

Choose a reason for hiding this comment

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

reason to not drop the last 7 uses of c and snip that client completely?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reason to not drop the last 7 uses of c and snip that client completely?

I hadn't decided how granular I'd go with the kube client ones.

Copy link
Contributor

Choose a reason for hiding this comment

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

leaving kclient as-is and getting rid of c would let us eliminate /oapi calls here. Not a big deal, just wondered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

leaving kclient as-is and getting rid of c would let us eliminate /oapi calls here. Not a big deal, just wondered

I'll pick it up on the next pass.

@liggitt
Copy link
Contributor

liggitt commented Aug 29, 2017

LGTM

@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2017
@enj enj unassigned knobunc Aug 29, 2017
@deads2k
Copy link
Contributor Author

deads2k commented Aug 29, 2017

#13966

/retest

@deads2k
Copy link
Contributor Author

deads2k commented Aug 29, 2017

@fabianofranz @juanvallejo I'm thinking about splitting all the describers by API group, so that they end up closer to the types.

@deads2k deads2k removed the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2017
@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2017
@openshift-merge-robot openshift-merge-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. needs-api-review labels Aug 30, 2017
@deads2k
Copy link
Contributor Author

deads2k commented Aug 30, 2017

/retest

1 similar comment
@deads2k
Copy link
Contributor Author

deads2k commented Aug 30, 2017

/retest

@openshift-merge-robot openshift-merge-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 30, 2017
@dobbymoodge
Copy link
Contributor

/retest

3 similar comments
@deads2k
Copy link
Contributor Author

deads2k commented Aug 30, 2017

/retest

@deads2k
Copy link
Contributor Author

deads2k commented Aug 30, 2017

/retest

@deads2k
Copy link
Contributor Author

deads2k commented Aug 30, 2017

/retest

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue

@openshift-merge-robot openshift-merge-robot merged commit 240a531 into openshift:master Aug 31, 2017
@deads2k deads2k deleted the client-01-prune branch January 24, 2018 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm 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.

None yet

6 participants