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

Drop k8s.io/apimachinery/pkg/util/sets #903

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

jonjohnsonjr
Copy link
Collaborator

Progress towards #902 (comment)

)

// Optimize optimizes a remote image or index from src to dst.
// THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE WITHOUT WARNING.
func Optimize(src, dst string, prioritize sets.String, opt ...Option) error {
func Optimize(src, dst string, prioritize []string, opt ...Option) error {
pset := sets.NewString(prioritize...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

if you are removing it from the public interface, then why not make it a private type alias of map[string]struct{} and expose just what we need in set[_test].go?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, roughly.

@codecov-io
Copy link

codecov-io commented Jan 7, 2021

Codecov Report

Merging #903 (9f70474) into master (3b7741e) will increase coverage by 0.06%.
The diff coverage is 65.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #903      +/-   ##
==========================================
+ Coverage   72.54%   72.60%   +0.06%     
==========================================
  Files         108      108              
  Lines        4673     4687      +14     
==========================================
+ Hits         3390     3403      +13     
- Misses        773      774       +1     
  Partials      510      510              
Impacted Files Coverage Δ
pkg/crane/optimize.go 11.40% <65.00%> (+11.40%) ⬆️

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 3b7741e...9f70474. Read the comment docs.

@jonjohnsonjr jonjohnsonjr changed the title Fork k8s.io/apimachinery/pkg/util/sets Drop k8s.io/apimachinery/pkg/util/sets Jan 7, 2021
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.

None yet

3 participants