Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Workerless Shoots] Introduce API changes in the Shoot (gardener#7828)
* Introduce `WorkerlessShoots` feature gate in `gardener-apiserver` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Introduce `IsWorkerless` method for Shoot Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `spec.provider` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `.spec.kubernetes` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `spec.systemcomponents` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] Prevent going back and forth between workerless Shoot and Shoot with workers Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] Add/adapt unit tests Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [API] Make `spec.secretBindingName` optional Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `spec.secretBindingName` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt usages of `spec.secretBindingName` to use pointer Handle nil secretbinding in controllers Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [API] Make `.spec.provider.workers` optional Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `spec.provider.workersSettings` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [API] Make `MaintenanceAutoUpdate` fields optional Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] `spec.maintenance.autoUpdate.machineImageVersion` Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt usages for maintenance.autoUpdate.machineImageVersion Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [API] Make Networking optional in shoot spec Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt Networking usages to use pointer Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Handle optional networking field in tests Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [validation] spec.networking Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt Shoot validator plugin for workerless Shoot networking Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Handle optional networking field in controllers Adapt gardener-scheduler to not check network cidr disjointedness if networking is nil Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt defaulting of fields in Shoot spec [defaulting] `spec.maintenance` [defaulting] `spec.kubernetes` and `spec.networking` [defaulting] `spec.provider` and `spec.systemComponents` [defaulting] `spec.addons` [defaulting] Add/adapt unit tests Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Forbid managedseed and managedseedset creation with workerless shoot Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt size limit in admissioncontroller webhook test Now that many fields are optional, the resourceSize is lesser Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Adapt Shoot VPA and Shoot nodelocalDNS admission plugin Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Introduce field in botanist shoot for workless shoot Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * [botanist] Handle optional fields in botanist Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Address PR review feedback from rfranzke * Revert making `.spec.maintenance.autoUpdate.kubernetesVersion` optional * Run `make generate` * Use helper function for checking if shoot is workerless Co-Authored-By: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-Authored-By: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> * Address PR review feedback from acumino * Rework `ToNetworks` function * Adapt networkpolicy reconciler * Address Review * Return validation error if neither shoot have service cidr nor seed has shoot defaults for service cidr * Improve Shoot predicate for `controllerregistration` controller * Use static defaulting to default networking for workerless Shoots * Address PR review feedback --------- Co-authored-by: Ashish Ranjan Yadav <ashish.ranjan.yadav@sap.com> Co-authored-by: Sonu Kumar Singh <sonu.kumar.singh02@sap.com> Co-authored-by: acumino <sksgkpvks@gmail.com>
- Loading branch information