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

chore: set kubectl flags on root command #456

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

cronik
Copy link
Contributor

@cronik cronik commented Apr 3, 2020

This changeset compliments #454 by making the cli flags more
readable in documentation and usage help.

The options AddKubectlFlags is only applied to the the root
argo rollouts command and has been removed from all the child
commands. The result of this from a documentation perspective
is options are now split between options specific to the command
and options inherited from parent.

One side effect of this is tests that use inherited args need to call
o.AddKubectlFlags(cmd) explicitly.

This changeset compliments argoproj#454 by making the cli flags more
readable in documentation and usage help.

The options AddKubectlFlags is only applied to the the root
argo rollouts command and has been removed from all the child
commands. The result of this from a documentation perspective
is options are now split between options specific to the command
and options inherited from parent.

One side effect of this is tests that use inherited args need to call
`o.AddKubectlFlags(cmd)` explicitly.
@codecov
Copy link

codecov bot commented Apr 3, 2020

Codecov Report

Merging #456 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #456      +/-   ##
==========================================
- Coverage   85.17%   85.14%   -0.03%     
==========================================
  Files          80       80              
  Lines        7539     7525      -14     
==========================================
- Hits         6421     6407      -14     
  Misses        804      804              
  Partials      314      314
Impacted Files Coverage Δ
pkg/kubectl-argo-rollouts/cmd/pause/pause.go 100% <ø> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/set/set.go 100% <ø> (ø) ⬆️
...kg/kubectl-argo-rollouts/cmd/get/get_experiment.go 67.46% <ø> (-0.39%) ⬇️
pkg/kubectl-argo-rollouts/cmd/create/create.go 71.42% <ø> (-0.32%) ⬇️
pkg/kubectl-argo-rollouts/cmd/retry/retry.go 100% <ø> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/set/set_image.go 100% <ø> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/abort/abort.go 100% <ø> (ø) ⬆️
...g/kubectl-argo-rollouts/cmd/terminate/terminate.go 100% <ø> (ø) ⬆️
...kg/kubectl-argo-rollouts/cmd/list/list_rollouts.go 87.12% <ø> (-0.13%) ⬇️
...kubectl-argo-rollouts/cmd/list/list_experiments.go 93.44% <ø> (-0.11%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebfd2f5...c079ad3. Read the comment docs.

Copy link
Member

@dthomson25 dthomson25 left a comment

Choose a reason for hiding this comment

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

LGTM

@dthomson25 dthomson25 merged commit b04dcfe into argoproj:master Apr 6, 2020
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

Successfully merging this pull request may close these issues.

2 participants