Adding support for enableSyncLabels for clustermanager operator and registration controller (#1021)

Signed-off-by: Jeffrey Wong <jeffreywong0417@gmail.com>
This commit is contained in:
Jeffrey
2025-06-11 22:32:36 -04:00
committed by GitHub
parent 377ba25c26
commit 215cfed77e
262 changed files with 11329 additions and 15463 deletions

View File

@@ -26,6 +26,7 @@ type Options struct {
SkipRemoveCRDs bool
ControlPlaneNodeLabelSelector string
DeploymentReplicas int32
EnableSyncLabels bool
}
// RunClusterManagerOperator starts a new cluster manager operator
@@ -86,6 +87,7 @@ func (o *Options) RunClusterManagerOperator(ctx context.Context, controllerConte
o.ControlPlaneNodeLabelSelector,
o.DeploymentReplicas,
controllerContext.OperatorNamespace,
o.EnableSyncLabels,
)
statusController := clustermanagerstatuscontroller.NewClusterManagerStatusController(