-
Notifications
You must be signed in to change notification settings - Fork 749
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
Added flag --suppress-warnings
, --verbose
, --error-on-warning
global flags
#111
Conversation
304c315
to
7830721
Compare
7830721
to
1f894df
Compare
I'd suggest changing |
We should choose short flags sparingly, only for the most frequently used options (since there are only 26 ones we can use). |
-w
and --verbose
global flags--quiet
and --verbose
global flags
1f894df
to
4975aef
Compare
@janetkuo updated comment above |
4975aef
to
797a4fa
Compare
So now with |
Mistakenly pushed close PR button, sorry about that. @janetkuo can you confirm about this PR with the flags that I have added? |
@surajssd , code looks good to me. I tested with $ kompose --quiet convert --file docker-voting.yml --out voting.txt
Unsupported key build - ignoring
$ kompose convert --file docker-voting.yml --out voting.txt
WARN[0000] Unsupported key build - ignoring
WARN[0000] Volume mount on the host "./result" isn't supported - ignoring path on the host
WARN[0000] Volume mount on the host "./vote" isn't supported - ignoring path on the host
WARN[0000] [worker] Service cannot be created because of missing port.
WARN[0000] [db] Service cannot be created because of missing port. Do we expect that output ? |
797a4fa
to
00ba810
Compare
@ngtuna yes the behavior of Rebased on current master. |
@surajssd yeah but how about volume mount & service warning ? |
@ngtuna what @janetkuo said here
so i am exiting on any warning, so that user will have to fix those warnings before she/he can go forward. How do you perceive this? |
@ngtuna sure thanks :) |
Just realize we have missed it for the release |
@surajssd sorry I should've made this more clear. I meant:
|
00ba810
to
287579f
Compare
--quiet
and --verbose
global flags--quiet
, --verbose
, --error-on-warning
global flags
@janetkuo yep changed code accordingly, and also updated #111 (comment) with the latest usage. |
Hi @surajssd thanks, I played around with it and have some more comments:
$ kompose -f docker-voting.yml --quiet up
We are going to create Kubernetes deployments and services for your Dockerized application.
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
Your application has been deployed to Kubernetes. You can run 'kubectl get deployment,svc,pods' for details.
# There's fatal error when the service already existed
$ kompose -f docker-voting.yml up
We are going to create Kubernetes deployments and services for your Dockerized application.
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
WARN[0000] [worker] Service cannot be created because of missing port.
FATA[0000] Error: 'services "db" already exists' while creating service: db
# `--quiet` suppressed the fatal errror
$ kompose -f docker-voting.yml --quiet up
We are going to create Kubernetes deployments and services for your Dockerized application.
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
$ kompose -f docker-voting.yml --error-on-warning up
We are going to create Kubernetes deployments and services for your Dockerized application.
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
[worker] Service cannot be created because of missing port. Can we leverage |
…obal flags - `--suppress-warnings` it ignores all warnings. - `--verbose` displays everything - `--error-on-warning` with any warning exits displaying error. Fixes kubernetes#100
287579f
to
57c460c
Compare
Without any option normal warnings and errors
With
With
With
|
--quiet
, --verbose
, --error-on-warning
global flags--suppress-warnings
, --verbose
, --error-on-warning
global flags
Looks good. The change is awesome! Thanks 👍 |
Merging! |
--suppress-warnings
it ignores all warnings.--verbose
displays everything--error-on-warning
with any warning exits displaying error.Fixes #100