-
Notifications
You must be signed in to change notification settings - Fork 771
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
Adding --controller
flag in up
& down
#868
Conversation
--controller
flag in up
& down
--controller
flag in up
& down
@surajnarwade Need tests 👍 |
@@ -797,6 +797,21 @@ func (k *Kubernetes) Deploy(komposeObject kobject.KomposeObject, opt kobject.Con | |||
return err | |||
} | |||
log.Infof("Successfully created Deployment: %s", t.Name) | |||
|
|||
case *extensions.DaemonSet: |
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.
Not too sure why this code is being added? Can you describe this at least within the commit description?
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.
Sure I will mention
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.
@cdrage , updated commit message
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.
please update GitHub description too...
c061f05
to
9308b06
Compare
To make `kompose up` & `kompose convert` equal in feature, This PR will add `--controller` flag for `kompose up` as well as `kompose down` so that user experience will be the same for `up` & `convert` Resolves kubernetes#798 since we are adding `--controller` to `up` and `down`, So respective code to deploy and undeploy also being added for `daemonset` and `replicationcontroller` Added tests for `--controller`
9308b06
to
126d982
Compare
@cdrage , review needed :) |
--controller
flag in up
& down
--controller
flag in up
& down
@@ -103,6 +103,19 @@ test_k8s() { | |||
sleep 2 # Sleep for k8s to catch up to deployment | |||
echo -e "\n${RED}kompose down -f $f ${NC}\n" | |||
./kompose down -f $f | |||
echo -e "\nTesting controller=daemonset key\n" |
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.
I think we should find an alternative way to write these integration tests (perhaps in a separate function? and only running the httpd.yaml test?) or even a separate file...
It's a bit messy at the moment and we really need to refactor everything (using e2e_test.go
similar to our other project we're working on.
Do you mind opening an issue explaining that we should refactor our integration tests to use a Go file / make this better? As well as add a comment (and spacing above this line) with a # TODO: need to reorganize / refactor
Otherwise, this LGTM (for now).
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.
Thanks for adding issue as well.
Ready to merge ?
LGTM! Let's merge! |
To make
kompose up
&kompose convert
equal in feature, This PR willadd
--controller
flag forkompose up
as well askompose down
so that user experience will be the same for
up
&convert
Resolves #798