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 #730

Merged
merged 46 commits into from
Aug 22, 2019
Merged

Repo Index #730

merged 46 commits into from
Aug 22, 2019

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Aug 19, 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:

/component kudoctl
/kind feature

What this PR does / why we need it:
This feature adds the ability to create an index file for a folder of operator tarballs.

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

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

`kudo repo index` will create an index file for the group of operators.

kensipe and others added 30 commits August 5, 2019 15:16
Adding package cmd to cli docs
testing with in mem fs

code clean up

missed afero call for fromFolder
Co-Authored-By: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
@kensipe
Copy link
Member Author

kensipe commented Aug 19, 2019

I looked into rebasing... but it was too painful. which stems for this PR being built of a PR which took an significant amount of time (hence a significant deviation from master).

pkg/kudoctl/bundle/bundle.go Outdated Show resolved Hide resolved
pkg/kudoctl/files/file.go Outdated Show resolved Hide resolved
pkg/kudoctl/files/file.go Outdated Show resolved Hide resolved
pkg/kudoctl/files/file.go Outdated Show resolved Hide resolved
pkg/kudoctl/bundle/package.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.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
@gerred
Copy link
Member

gerred commented Aug 20, 2019

Hey @kensipe, I will review this by Wednesday evening. Currently traveling.

}

i.WriteFile(fs, target)
ri.out.Write([]byte(fmt.Sprintf("index %v created.\n", target)))
Copy link
Member

Choose a reason for hiding this comment

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

We should be moving more toward a pattern like this so that we can replace the Reader for testing (fmt.Printf forces you into os.Stdout).

As an aside, I DO prefer:
https://godoc.org/fmt#Fprintf which takes a writer as the first argument and does some work around caching buffers for printers. It does the exact same thing, just more robustly.

pkg/kudoctl/files/file.go Outdated Show resolved Hide resolved
@kudo-ci
Copy link

kudo-ci commented Aug 22, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

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

@kensipe kensipe requested a review from gkleiman August 22, 2019 16:35
@kensipe kensipe dismissed gkleiman’s stale review August 22, 2019 16:36

multiple requests for re-review not responded to. The request for changes was addressed.

@kensipe kensipe merged commit 333e1fb into master Aug 22, 2019
@kudo-ci kudo-ci deleted the ken/repo-index branch August 22, 2019 16:38
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.

Automated releases from operators repo to GCS
4 participants