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

Remove possibility to install multiple packages #479

Merged
merged 5 commits into from
Jul 3, 2019

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Jul 1, 2019

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind cleanup

What this PR does / why we need it:
There are two main things in this PR:

  • a little bit of refactoring in install
  • MOST IMPORTANTLY I removed the possibility to install multiple packages at once. My reasoning:
    -- I don't see much use cases for doing that vs running two kudo install commands
    -- it was not documented anywhere anyway so I think we can just remove it

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

it is not possible to pass multiple arguments to `kudo install` command. Run multiple `kudo install` commands if you need to install more packages.

kc, err := kudo.NewClient(options.Namespace, options.KubeConfigPath)
if err != nil {
return errors.Wrap(err, "creating kudo client")
if len(args) != 1 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the main change

@alenkacz alenkacz closed this Jul 1, 2019
@alenkacz alenkacz reopened this Jul 1, 2019
Copy link
Member

@fabianbaier fabianbaier left a comment

Choose a reason for hiding this comment

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

I like the direction we are going with it but found just two minor things. If we can address those I am happy with it :)

pkg/kudoctl/cmd/install/install.go Outdated Show resolved Hide resolved
pkg/kudoctl/cmd/install/install_test.go Outdated Show resolved Hide resolved
@alenkacz
Copy link
Contributor Author

alenkacz commented Jul 2, 2019

@fabianbaier thanks, great feedback :) fixed

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

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

lgtm

@kensipe
Copy link
Member

kensipe commented Jul 3, 2019

@fabianbaier are you good here? I want this to land before I get to carried away with some refactor that includes install from url.

@kensipe kensipe mentioned this pull request Jul 3, 2019
Copy link
Member

@fabianbaier fabianbaier left a comment

Choose a reason for hiding this comment

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

awesome! lgtm!

@alenkacz alenkacz merged commit ebe82db into master Jul 3, 2019
@alenkacz alenkacz deleted the av/remove-multiple-args branch October 30, 2019 09:08
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.

3 participants