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

Make OpenShift inherit from Kubernetes #240

Merged
merged 2 commits into from
Oct 28, 2016

Conversation

dustymabe
Copy link
Contributor

No description provided.

@dustymabe
Copy link
Contributor Author

This is just a first stab and not ready yet. @kadel we really need to refactor k8sutils.go and pull out some of those functions into a separate file I think. Help me find out which functions should go in what file.

@dustymabe dustymabe changed the title [WIP] refactor passing of options data Make OpenShift inherit from Kubernetes Oct 27, 2016
@@ -242,6 +228,21 @@ func Down(c *cli.Context) {

}

// Convenience method to return the appropriate Transformer based on
// what provider we are using.
func getTransformer(opt kobject.ConvertOptions) transformer.Transformer {
Copy link
Member

Choose a reason for hiding this comment

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

can be this moved to transformer package?
There is GetLoader fce that is inside loader package, it might be better to have it in the same way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah - looks like this can't be done because then there would be an import cycle because transformer.go would need to import transformer/kubernetes, which imports transformer.

import cycle not allowed

This is so you can set Opts on instance creation of
kubernetes.Kubernetes and openshift.Openshift. This is useful
so that we can pass option information arround without having
to do it on the call stack every time.
@dustymabe
Copy link
Contributor Author

this is probably a change that needs 2 reviewers. @janetkuo, can you review?

@kadel
Copy link
Member

kadel commented Oct 27, 2016

this is probably a change that needs 2 reviewers. @janetkuo, can you review?

Agreed, second pair of eyes would be great.

Copy link
Member

@kadel kadel left a comment

Choose a reason for hiding this comment

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

LGTM
but needs second review

@ngtuna
Copy link
Contributor

ngtuna commented Oct 28, 2016

LGTM. Thanks @dustymabe 👍

@ngtuna ngtuna merged commit 9c38e88 into kubernetes:master Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants