-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extending Runtime Custom Resource with Additional Workers #601
base: main
Are you sure you want to change the base?
Conversation
var controlPlaneConf, infraConfig *runtime.RawExtension | ||
zones := getZones(rt.Spec.Shoot.Provider.Workers) | ||
infraConfig, controlPlaneConf, err = getConfig(rt.Spec.Shoot, zones) | ||
if len(rt.Spec.Shoot.Provider.Workers) != 1 { |
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.
NOTE: we can have this code moved to validation webhook later on
infraConfig, controlPlaneConf, err = getConfig(rt.Spec.Shoot, zones) | ||
if err != nil { | ||
return err | ||
if len(rt.Spec.Shoot.Provider.Workers) != 1 { |
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.
NOTE: we can have this code moved to validation webhook later on
// uncomment if we decide to require to validate to have all same zones in all workers | ||
// | ||
//if len(workers) == 1 { | ||
// return zones, nil | ||
//} | ||
// | ||
//for _, worker := range workers { | ||
// if !slices.Equal(worker.Zones, zones) { | ||
// return nil, errors.New("workers have specified different zones set, or zones are in different order") | ||
// } | ||
//} | ||
|
||
return zones, nil |
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.
We can clean up this part.
Add ability to define and modify multiple workers for a Gardener shoot in the additionalWorkers collection
Description:
Changes proposed in this pull request:
additionalWorkers
collection - it will allow to define more worker groups in Gardener Shoot for Kyma RuntimeNewProviderExtenderPatchOperation
to patch Zones and version information for each Worker separately.InfrastructureConfig
andControlPlaneConfig
are treated as immutable during update unless they are specified in the RuntimeCRLogic flow operation update:
On shoot create:
additionalWorkers
collectionInfrastructureConfig
andcontrolPlaneConfig
are created to include ALL zones used in ALL provided workers .controlPlaneConfig
are provided inRuntimeCR
they will be used to create ShootinfrastructureConfig
zones cannot match with worker zones - the operation will failOn shoot update:
additionalWorkers
collection. This operation will not affect existinginfrastructureConfig
andcontrolPlaneConfig
InfrastructureConfig
andControlPlaneConfig
shoot data are immutableinfrastructureConfig
infrastructureConfig
andcontrolPlaneConfig
are provided inRuntimeCR
they will be used to create ShootinfrastructureConfig
zones cannot match with worker zones - the operation will failAdditional:
Related issue(s)
#46