Skip to content

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind api-change
/kind cleanup

What this PR does / why we need it:

This allows API restructuing and a clean builder pattern on the new
options package. Tests have been added to the new package as well,
which bumps its test coverage to 100%.

Which issue(s) this PR fixes:

Follow-up of #1282

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

- Added dedicated `options` package for configuring `kubepkg`

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 14, 2020
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. labels May 14, 2020
Comment on lines +153 to 160
func run(opts *options.Options) error {
client := kubepkg.New(opts)
builds, err := client.ConstructBuilds()
if err != nil {
return errors.Wrap(err, "running kubepkg")
}
return client.WalkBuilds(builds, ro.architectures, ro.specOnly)
return client.WalkBuilds(builds)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this looks like we wanted to have it. Ref https://github.com/kubernetes/release/pull/1282/files#r424507497

@fejta-bot
Copy link

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

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

@saschagrunert -- Really nice cleanup! Just a few typos on a method name to fix I think.

This allows API restructuing and a clean builder pattern on the new
`options` package. Tests have been added to the new package as well,
which bumps its test coverage to 100%.

Signed-off-by: Sascha Grunert <[email protected]>
@saschagrunert
Copy link
Member Author

@saschagrunert -- Really nice cleanup! Just a few typos on a method name to fix I think.

Yep, fixed those, thank you! 🙏

@justaugustus
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 14, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justaugustus, saschagrunert

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 14, 2020
@k8s-ci-robot k8s-ci-robot merged commit 1f6ee2f into kubernetes:master May 14, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone May 14, 2020
@saschagrunert saschagrunert deleted the kubepkg-options branch May 14, 2020 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants