-
Notifications
You must be signed in to change notification settings - Fork 70
OpenShift to KubeShift #778
Conversation
e9ab1f7 to
aae0e4e
Compare
8ff0186 to
0374d41
Compare
8573d26 to
f0ff91c
Compare
|
|
||
| # Check the API url | ||
| url = self.api.cluster['server'] | ||
| print url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete
f2fefb2 to
bc69420
Compare
| from urllib import urlencode | ||
| from atomicapp.providers.lib.kubeshift.kubebase import KubeBase | ||
| from atomicapp.providers.lib.kubeshift.exceptions import KubeOpenshiftError | ||
| from atomicapp.constants import LOGGER_DEFAULT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move LOGGER_DEFAULT to above import KubeBase so that it matches kubernetes.py
fd38c0d to
098db0b
Compare
|
can we have a better commit message than "refactor" ? |
|
@dustymabe Yeah, I was going to update this after the code changes :) |
8af1aaf to
543fef0
Compare
|
Updated the PR with the OpenShift namespaces fix as per openshift/origin#10334 |
atomicapp/providers/openshift.py
Outdated
|
|
||
| # Check if the namespace that the app is being deployed to is available | ||
| # DISABLED at the moment due to issues with OpenShift 1.3.0 | ||
| # https://github.com/openshift/origin/issues/10334 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the two lines of comments above
This commit converts the current OpenShift provider to use the 'KubeShift' library. Allowing OpenShift to use the universal library for both Kubernetes and OpenShift, decreasing technical debt in learning how each provider API communicates. Tests are also added which cover a large majority of test scenarios for the KubeShift library. Included is a new pytest plugin which allows mocking an example HTTP server.
543fef0 to
1a37ab8
Compare
|
#dotests |
|
I think we are good to go.. merge away |
|
maybe remove WIP from title first |
|
@dustymabe just going to run through a few last-minute tests and we'll be good to go :) |
An open PR to keep track of progress
TODO:
openshift.pytests