Skip to content

Conversation

elankath
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Machine Class now has VirtualCapacity that maps to WorkerPool's NodeTemplate VirtualCapacity.

ialidzhikov and others added 30 commits January 6, 2022 11:30
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
Co-authored-by: Samarth Deyagond <samarth.deyagond@sap.com>
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
* improve documentation

* added make rule to generate api docs
* Fixed broken links

* Fixed additional broken links
…ollout

Scale down annotation value corrected
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
Co-authored-by: Samarth Deyagond <sdeyagond@microsoft.com>
Co-authored-by: Martin Weindel <martin.weindel@sap.com>
Co-authored-by: Ashwani Kumar <ash.kumar@sap.com>

Co-authored-by: Ashwani Kumar <ash.kumar@sap.com>
Co-authored-by: Himanshu Sharma <79965161+himanshu-kun@users.noreply.github.com>
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
@gardener-robot gardener-robot added size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) and removed size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Jul 1, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
@gardener-robot gardener-robot added kind/api-change API change with impact on API users needs/second-opinion Needs second review by someone else size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Jul 1, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
@gardener-robot gardener-robot removed the size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) label Jul 1, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
@gardener-robot gardener-robot added size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) and removed size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Jul 1, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 1, 2025
Copy link
Member

@aaronfern aaronfern left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @elankath!
A few comments from me

// Capacity contains subfields to track all node resources required to scale nodegroup from zero
Capacity corev1.ResourceList

// VirtualCapacity represents the expected Node 'virtual' capacity ie comprising virtual extended resources.
Copy link
Member

Choose a reason for hiding this comment

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

nit

Suggested change
// VirtualCapacity represents the expected Node 'virtual' capacity ie comprising virtual extended resources.
// VirtualCapacity represents the expected Node 'virtual' capacity i.e comprising virtual extended resources.

virtualCapacityChanged = SyncVirtualCapacity(machineClass.NodeTemplate.VirtualCapacity, nodeCopy, lastAppliedVirtualCapacity)
}

if !annotationsChanged && !labelsChanged && !taintsChanged && !virtualCapacityChanged {
Copy link
Member

Choose a reason for hiding this comment

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

You will have to consider initializedNodeAnnotation in this check here
As otherwise we could prematurely return and miss adding node.machine.sapcloud.io/last-applied-anno-labels-taints annotation to the node

Co-authored-by: Aaron Francis Fernandes <79958509+aaronfern@users.noreply.github.com>
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 5, 2025
@gardener-robot
Copy link

@elankath You need rebase this pull request with latest master branch. Please check.

@gardener-robot gardener-robot added size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) and removed size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Aug 5, 2025
@elankath elankath closed this by deleting the head repository Aug 5, 2025
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/api-change API change with impact on API users needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/rebase Needs git rebase needs/review Needs review needs/second-opinion Needs second review by someone else reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)

Projects

None yet

Development

Successfully merging this pull request may close these issues.