Skip to content

Conversation

@gabesaba
Copy link
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Finishes cleanup. See #2447 for motivation.

Which issue(s) this PR fixes:

Fixes #2447

Special notes for your reviewer:

Reviewing will be easier by reviewing the two commits in order

  1. Update remaining usages
  2. Rename

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. 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. labels Jul 30, 2024
@k8s-ci-robot k8s-ci-robot requested review from denkensk and mimowo July 30, 2024 09:23
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 30, 2024
@netlify
Copy link

netlify bot commented Jul 30, 2024

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 670ac3f
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/66a8b11b8d70880008fd2ba5
😎 Deploy Preview https://deploy-preview-2721--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

type FlavorResourceQuantities map[kueue.ResourceFlavorReference]Requests
type FlavorResourceQuantitiesFlat map[FlavorResource]int64

func (f FlavorResourceQuantitiesFlat) Unflatten() FlavorResourceQuantities {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! I'm happy this trickery is out :)

@mimowo
Copy link
Contributor

mimowo commented Jul 30, 2024

/lgtm
/approve
Thanks for splitting the change into 2 commits. Indeed, it made it easy to read.

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

LGTM label has been added.

DetailsGit tree hash: 661f94ef3a8644e24c36c2082dcce60660219a10

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gabesaba, mimowo

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

The pull request process is described here

Details 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 Jul 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit 3682278 into kubernetes-sigs:main Jul 30, 2024
@k8s-ci-robot k8s-ci-robot added this to the v0.9 milestone Jul 30, 2024
@gabesaba gabesaba deleted the cleanup_frq branch July 30, 2024 10:43
gabesaba added a commit to gabesaba/kueue that referenced this pull request Aug 13, 2024
* Finish Flattenning FlavorResourceQuantities

* Rename FlavorResourceQuantitiesFlat to FlavorResourceQuantities
k8s-ci-robot pushed a commit that referenced this pull request Aug 13, 2024
* Cleanup to use FlavorResourceQuantities.Add in cache (#2696)

* fix: Refactor FitInCohort tests (#2655)

* fix: Refactor FitInCohorot tests

* fix: delete no-op function

* fix: use new method to add usage

* fix: to enforce resource group constraint for flavors and resources

* fix: consolidated into a single resource group

* fix: delete flavorNames

* fix: adjusted test cases to align with existing expected conditions

* fix: change FlavorResourceQuantitiesFlat value

* Finish flattening of FlavorResourceQuantities (#2721)

* Finish Flattenning FlavorResourceQuantities

* Rename FlavorResourceQuantitiesFlat to FlavorResourceQuantities

* Cleanup preemption.go (#2800)

* [Partial Admission] Check Mode before attempting Preemption (#2809)

* Prefer Reclamation to Priority Based Preemption (#2811)

---------

Co-authored-by: s-shiraki <[email protected]>
kannon92 pushed a commit to openshift-kannon92/kubernetes-sigs-kueue that referenced this pull request Nov 19, 2024
* Finish Flattenning FlavorResourceQuantities

* Rename FlavorResourceQuantitiesFlat to FlavorResourceQuantities
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flatten FlavorResourceQuantities

3 participants