Skip to content

Add k8s.io/apimachinery/pkg/util/sets - #462

Merged
stevekuznetsov merged 1 commit into
operator-framework:mainfrom
m1kola:sets
Oct 16, 2023
Merged

Add k8s.io/apimachinery/pkg/util/sets#462
stevekuznetsov merged 1 commit into
operator-framework:mainfrom
m1kola:sets

Conversation

@m1kola

@m1kolam1kola commented Oct 16, 2023

Copy link
Copy Markdown
Member

Description

Switches from map of empty structs to using sets package from apimachinery utils.

Note: there is also internal/resolution/variablesources/crd_constraints.go which uses map for empty structs, but there is #461 which modifies this file and makes use of sets package.

Fixes#454

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Switches from `map` of empty structs to using
sets package from apimachinery utils.
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@openshift-ciopenshift-ciBot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 16, 2023
@m1kola
m1kola marked this pull request as ready for review October 16, 2023 10:25
@m1kola
m1kola requested a review from a team as a code ownerOctober 16, 2023 10:25
@openshift-ciopenshift-ciBot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 16, 2023
@codecov

codecovBot commented Oct 16, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e001a0f) 83.80% compared to head (7c89b79) 83.80%.

Additional details and impacted files
@@ Coverage Diff @@## main #462 +/- ##
=======================================
Coverage 83.80% 83.80% =======================================
Files 23 23 Lines 846 846 =======================================
Hits 709 709 Misses 94 94 Partials 43 43 
FlagCoverage Δ
e2e65.95% <66.66%> (ø)
unit76.58% <77.77%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

FilesCoverage Δ
...lution/variablesources/bundles_and_dependencies.go96.00% <100.00%> (ø)
...al/resolution/variablesources/bundle_deployment.go72.72% <66.66%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stevekuznetsovstevekuznetsov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Oct 16, 2023
@stevekuznetsov
stevekuznetsov added this pull request to the merge queue Oct 16, 2023
Merged via the queue into operator-framework:main with commit 7161a7bOct 16, 2023
@m1kola
m1kola deleted the sets branch October 16, 2023 15:33
LalatenduMohanty pushed a commit to LalatenduMohanty/operator-controller that referenced this pull request Dec 19, 2024
…ller-operator (operator-framework#462)
Standardizing this method simplifies workflows and makes the project more contributor-friendly
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtmIndicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider using k8s.io/apimachinery/pkg/util/sets instead of map of empty structs for sets

2 participants

@m1kola@stevekuznetsov