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

feat(openshift): Support OpenShift 4.x API Groups. Fixes #1631 #1644

Merged
merged 5 commits into from
Aug 1, 2019

Conversation

gastaldi
Copy link
Contributor

@gastaldi gastaldi commented Jul 19, 2019

This PR aims to support OpenShift 4.x endpoints Fix #1631

@rohanKanojia
Copy link
Member

ok to test

@@ -1,7 +1,7 @@

{
"kind": "Template",
"apiVersion": "v1",
"apiVersion": "template.openshift.io/v1",
Copy link
Contributor Author

@gastaldi gastaldi Jul 25, 2019

Choose a reason for hiding this comment

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

@rohanKanojia @iocanel I need your expertise here: with this change, all templates must have the apiVersion set to template.openshift.io/v1, which may break existing functionality when reading template files set to v1. Any suggestions or should we let it throw an error indicating that the template needs to be fixed?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure but we can try adding notFoundTransformation entries in BackwardsCompatibilityInterceptor. I think this new apiVersion compatible with openshift 3.11 and 3.10 ? I think maybe we can dump v1 apiVersion users.....

} catch (MalformedURLException e) {
throw KubernetesClientException.launderThrowable(e);
OpenShiftConfig config = OpenShiftConfig.wrap(context.getConfig());
OpenShiftClient oc = new DefaultOpenShiftClient(context.getClient(), config);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When is this client closed?

@gastaldi
Copy link
Contributor Author

gastaldi commented Aug 1, 2019

I can confirm that this PR allows kubernetes-client to work in OS4. @rohanKanojia wanna merge it?

@gastaldi
Copy link
Contributor Author

gastaldi commented Aug 1, 2019

[merge]

@fusesource-ci fusesource-ci merged commit 5dedc4a into fabric8io:master Aug 1, 2019
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.

Support OpenShift 4.x
4 participants