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
Add OpenShift support #36
Comments
@kadel I suggest to go with:
Then we can support different providers with a small change of the current code base. Also IMHO adding |
+1 on adding flag |
I was thinking about this a bit, especially considering that I feel the options are getting a bit "crazy". Maybe we should use subcommands to have a better structure and avoid so many boolean definition and if statements. We could use subcommands for objects and keep the option for --stdout --out --yaml and --provider. something like:
By default we create a service for every docker-compose service. thoughts ? |
@Runseb I like your proposal. Will we still provide default controller (i.e. deployment) when |
@Runseb does your proposal imply that converting compose to multiple types of controllers (e.g. |
I'm afraid that this might get little messy 😢 As OpenShift adds few thinks on top of Kubernetes you will get options that are not valid for all providers. |
I also like Sebastien's approach. Currently convert functiin doesn't look good because of many boolean variables and if statements. Need to think a bit more in order to cover multiple controllers generation. We can add validation for subcommand relating to Openshift primitives only. |
I think that we should think about this more from users perspective than from code perspective. For me it seems little strange because it emphasize choosing controller object to much. I expect that most user will use default one and won't care that much about others. |
I suggest to @kadel assigns this issues to himself and starts working in a branch. For the configuration, we need to investigate #39 , using a The idea being that using kubernetes or openshift or any other future provider could be hidden and made default. That way users familiar with docker-compose can use |
+1 for preference file, this will keep command-line clean and simple. I will keep in my mind that we might go this way when working on openshift provider. |
I think we can close this. Basic OpenShift support has been merged. We can always open new issues to track adding additional features. |
We would like to contribute OpenShift support to kompose2.
In core OpenShift is basically Kubernetes with some additional objects like
BuildConfig
,DeploymentConfig
,ImageStream
orRoute
.With
BuildConfig
OpenShift can even support docker-composebuild
directive.I guess that this first design question would be how command line is going to look like.
What if we use provider (orchestration tool) name as command and actions as subcommands?
Examples how it would look like:
When we do it like this, than in future different providers could even have different actions.
The text was updated successfully, but these errors were encountered: