mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Merge pull request #10188 from tthvo/OCPBUGS-69923
OCPBUGS-69923: ensure deterministic zone ordering for control plane machines
This commit is contained in:
@@ -159,6 +159,9 @@ func (c *ClusterAPI) Generate(ctx context.Context, dependencies asset.Parents) e
|
||||
if err != nil {
|
||||
logrus.Warn(errors.Wrap(err, "failed to filter zone list"))
|
||||
}
|
||||
// Sort the zones by lexical order to ensure CAPI and MAPI machines
|
||||
// are distributed to zones in the same order.
|
||||
slices.Sort(mpool.Zones)
|
||||
}
|
||||
|
||||
tags, err := aws.CapaTagsFromUserTags(clusterID.InfraID, installConfig.Config.Platform.AWS.UserTags)
|
||||
|
||||
@@ -253,6 +253,9 @@ func (m *Master) Generate(ctx context.Context, dependencies asset.Parents) error
|
||||
if err != nil {
|
||||
logrus.Warn(errors.Wrap(err, "failed to filter zone list"))
|
||||
}
|
||||
// Sort the zones by lexical order to ensure CAPI and MAPI machines
|
||||
// are distributed to zones in the same order.
|
||||
slices.Sort(mpool.Zones)
|
||||
}
|
||||
|
||||
pool.Platform.AWS = &mpool
|
||||
|
||||
Reference in New Issue
Block a user