-
Notifications
You must be signed in to change notification settings - Fork 525
[GEP-33] Add Capabilities support to Worker MachineImage Version defaulting #12529
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
[GEP-33] Add Capabilities support to Worker MachineImage Version defaulting #12529
Conversation
c95d063
to
1ed9590
Compare
cf2daae
to
81da807
Compare
31a3596
to
c2f0a12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for advancing this topic incrementally.
Some small findings from my side.
pkg/controllermanager/controller/shoot/maintenance/reconciler_test.go
Outdated
Show resolved
Hide resolved
c2f0a12
to
771d238
Compare
/lgtm |
LGTM label has been added. Git tree hash: 40221c6f82b3facd9560a8a21070a3f45ffe7d28
|
/retest-required |
1 similar comment
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for the enhancements and waiting for my feedback.
pkg/controllermanager/controller/shoot/maintenance/helper/helper.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
LGTM label has been added. Git tree hash: fa636aa1e3faa2eb096c4d2b74d1f4906d90800d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: timuthy 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 |
…ulting (gardener#12529) * Enhance worker machine image defaulting with capabilities support * Implement capabilities filtering for machine images in shoot maintenance controller * move capability filter logic to helper package and cleanup nits * improve readability and update docstrings
How to categorize this PR?
/kind enhancement
/area usability
/area os
What this PR does / why we need it:
Implementation as part of GEP-33.
Adds capability filter in the shoot maintenance controller for machine image versions.
Adds capability support to worker image version defaulting during shoot admission.
This functionality is part of
getDefaultMachineImage
. The check is performed only if the worker specifies a valid machineType. If the machineType is not found in the CloudProfile, the check is skipped. We avoid failing early to ensure that the error message at L1172 still provides users with recommendations for supported machineTypes.Which issue(s) this PR fixes:
Part of #11301
Special notes for your reviewer:
@LucaBernstein @timuthy
Release note: