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

Repo Index Merge #801

Merged
merged 7 commits into from
Sep 13, 2019
Merged

Repo Index Merge #801

merged 7 commits into from
Sep 13, 2019

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Sep 11, 2019

What type of PR is this?
/component kudoctl
/kind feature

What this PR does / why we need it:
kudo repo index --merge
kudo repo index --merge-repo

Which issue(s) this PR fixes:
Fixes #769

Special notes for your reviewer:
Looking to add some more tests tomorrow

Does this PR introduce a user-facing change?:

kudo repo index --merge
kudo repo index --merge-repo

@kensipe
Copy link
Member Author

kensipe commented Sep 12, 2019

/retest

Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

I am sorry, I had to request changes for two reasons:

  • I don't know how merge works in helm and I did not understand how I would use the flags just from the command line docs. I think we need examples and some better description in the cmd itself
  • maybe I missed something but I feel like we don't have the actual merging unit tested - since merging two things is a potentially brittle operation it would be nice to have that covered. I am fine with extracting merge to a special method and unit testing just merge(index1, index2) that should be fairly simple to write :) I am just curious how that works actually - is the left always right? How merge deals with items present on both sides? I would like those be covered by unit tests (and documented also in the cmd).

pkg/kudoctl/bundle/bundle.go Outdated Show resolved Hide resolved
pkg/kudoctl/bundle/finder/bundle_finder.go Outdated Show resolved Hide resolved
pkg/kudoctl/cmd/repo_index.go Outdated Show resolved Hide resolved
pkg/kudoctl/cmd/repo_index.go Outdated Show resolved Hide resolved
pkg/kudoctl/cmd/repo_index_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

Thanks!

@kudo-ci
Copy link

kudo-ci commented Sep 13, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alenkacz, gerred, kensipe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [alenkacz,gerred,kensipe]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kensipe kensipe merged commit ee36805 into master Sep 13, 2019
@kudo-ci kudo-ci deleted the ken/repo-merge branch September 13, 2019 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repo Index --merge
4 participants