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

fix oapi, which has become obsolete in 4.0 #84

Closed
wants to merge 1 commit into from
Closed

fix oapi, which has become obsolete in 4.0 #84

wants to merge 1 commit into from

Conversation

pruan-rht
Copy link
Member

/oapi is obsoleted in 4.0 . Anything newer than 3.5 should use the groupified resources /apis/user.openshift.io/v1/users/~

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pruan-rht
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: akostadinov

If they are not already assigned, you can assign the PR to them by writing /assign @akostadinov in a comment when ready.

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 20, 2019
@pruan-rht
Copy link
Member Author

FYI /oapi was removed about a month ago: openshift/origin#21782 . Also, I've tested the new path it works up until 3.6, before which we have to use the /oapi path

@ghost
Copy link

ghost commented Feb 20, 2019

Actually we still have some hotfix will be backported to the version under 3.4, for this part, how to deal with?

@pruan-rht
Copy link
Member Author

@wjiangjay, can you specify what kind of hotfixes you are referring to? IMO 3.4 is barely touched now so we can consider that separately.

@pruan-rht pruan-rht removed the request for review from cjryan February 20, 2019 17:01
@@ -6,7 +6,7 @@ module OpenShift
extend Helper

def self.populate(path, base_opts, opts)
populate_common("/oapi/<oapi_version>", path, base_opts, opts)
populate_common("/apis/user.openshift.io/<oapi_version>", path, base_opts, opts)
Copy link
Contributor

Choose a reason for hiding this comment

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

::populate method is used by all calls. And I believe user.openshift.io is only for the user subsystem and will not work for ::list_projects for example.

I think that we need to drop this openshift/kube api calls separation because now openshift calls are not a separate endpoint, just extensions to kube API. And we can handle all calls in same way.

Copy link
Member Author

Choose a reason for hiding this comment

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

@akostadinov do you mean get ride of lib/rest_openshift.rb and merge it into lib/rest_kubernetes.rb

@akostadinov
Copy link
Contributor

@pruan-rht , @wjiangjay , maybe we can create a branch that will be dedicated to 3.5 and older so that we are not held back by such old versions. WDYT?

@akostadinov
Copy link
Contributor

Or shall we create a 3.x branch so that we design things according to 4.x in master from now on? Or do we still think expansion on 3.11 test cases is still ongoing?

@openshift/team-qe , opinions?

@pruan-rht
Copy link
Member Author

pruan-rht commented Feb 20, 2019

@akostadinov I vote for 4.x branch since it's so drastically different from 3.x. This way we don't need to monkey-patch all of these. perhaps something like v4 (like we did from v2 migrated to v3)

@akostadinov
Copy link
Contributor

My vote is the same, but now we make v3 branch again and keep master at v4. Easier to create pull requesrts on the command line. I still type -b v3 sometimes in the hurry :)

@pruan-rht
Copy link
Member Author

@akostadinov I'm fine with using v4 == master

@wabouhamad
Copy link

@akostadinov having master at v4 sounds good to me

@ghost
Copy link

ghost commented Feb 21, 2019

@pruan-rht @akostadinov The hotfix often means some CVEs(this need smoke or acceptance testing of versions from 3.1 to 3.11).

I am also fine with master is for v4

@pruan-rht
Copy link
Member Author

@wjiangjay if that's the case, then it's better IMO to create a separate branch for 3.x so we don't interrupt CVE testing.

@pruan-rht
Copy link
Member Author

closing this PR in favor of #88

@pruan-rht pruan-rht closed this Feb 25, 2019
@pruan-rht pruan-rht deleted the fix_oapi branch July 8, 2020 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants