Skip to content

lib/rest_openshift.rb self.populate update #85

Closed
@xingxingxia

Description

@xingxingxia

In 4.0 env, due to https://jira.coreos.com/browse/MSTR-306, Given I have a project fails with:

error getting self from api: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Unauthorized","reason":"Unauthorized","code":401}

Apply below diff, Given I have a project then passes.

       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)
       end

Need update it considering 3.x compatibility
@akostadinov @pruan-rht could you help?
CC @zhouying7780 @wjiangjay @zihantang-rh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions