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

Consider changing --rc flag to bool and adding --replicas #52

Closed
janetkuo opened this issue Jul 22, 2016 · 2 comments
Closed

Consider changing --rc flag to bool and adding --replicas #52

janetkuo opened this issue Jul 22, 2016 · 2 comments
Assignees

Comments

@janetkuo
Copy link
Member

Right now all flags for specifying controller types are bool, except for --rc, which is int.

This is confusing because I cannot do this

$ ../kompose convert --rc -y
Incorrect Usage.

And this (surprisingly) gives me a deployment

$ ../kompose convert --rc="0" -y
file "redis-svc.yaml" created
file "web-svc.yaml" created
file "redis-deployment.yaml" created
file "web-deployment.yaml" created

I propose that we change --rc back to bool and add another int flag for specifying replicas, since other controllers also take replicas in their spec. We can default it to -1 as unset, and then we don't specify it in spec (and let K8s API server decide the default value). If it's set to something >= 0, we set it explicitly.

@ngtuna
Copy link
Contributor

ngtuna commented Jul 22, 2016

+1. Are u going to do or shoud I take it?

@janetkuo
Copy link
Member Author

I can take this one
On Thu, Jul 21, 2016 at 7:33 PM Tuna [email protected] wrote:

+1. Are u going to do or shoud I take it?


You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub
#52 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEpqQxaBI4-E2R7SXy2ICxUnr-k2ARuEks5qYCwRgaJpZM4JSVIn
.

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

No branches or pull requests

2 participants