Skip to content

Commit ffd914c

Browse files
authored
Enable shadow links by default (#1199)
1 parent c85e837 commit ffd914c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
project: operator
2+
kind: Added
3+
body: ShadowLink CRD for controlling 25.3 shadow link settings. See documentation for details.
4+
time: 2025-12-10T12:19:13.689549-05:00

operator/cmd/crd/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var (
3535
crds.Redpanda(),
3636
crds.Role(),
3737
crds.Schema(),
38+
crds.ShadowLink(),
3839
crds.Topic(),
3940
crds.User(),
4041
}
@@ -44,7 +45,6 @@ var (
4445
}
4546
experimentalCRDs = []*apiextensionsv1.CustomResourceDefinition{
4647
crds.NodePool(),
47-
crds.ShadowLink(),
4848
}
4949
schemes = []func(s *runtime.Scheme) error{
5050
clientgoscheme.AddToScheme,

operator/cmd/run/run.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ type RunOptions struct {
8484
enableRedpandaControllers bool
8585

8686
enableV2NodepoolController bool
87-
enableShadowLinksController bool
8887
enableConsoleController bool
8988
managerOptions ctrl.Options
9089
clusterDomain string
@@ -141,7 +140,6 @@ func (o *RunOptions) BindFlags(cmd *cobra.Command) {
141140
// Controller flags.
142141
cmd.Flags().BoolVar(&o.enableConsoleController, "enable-console", true, "Specifies whether or not to enabled the redpanda Console controller")
143142
cmd.Flags().BoolVar(&o.enableV2NodepoolController, "enable-v2-nodepools", false, "Specifies whether or not to enabled the v2 nodepool controller")
144-
cmd.Flags().BoolVar(&o.enableShadowLinksController, "enable-shadowlinks", false, "Specifies whether or not to enabled the shadow links controller")
145143
cmd.Flags().BoolVar(&o.enableVectorizedControllers, "enable-vectorized-controllers", false, "Specifies whether or not to enabled the legacy controllers for resources in the Vectorized Group (Also known as V1 operator mode)")
146144
cmd.Flags().BoolVar(&o.enableRedpandaControllers, "enable-redpanda-controllers", true, "Specifies whether or not to enabled the Redpanda cluster controllers")
147145
cmd.Flags().StringVar(&o.clusterDomain, "cluster-domain", "cluster.local", "Set the Kubernetes local domain (Kubelet's --cluster-domain)")
@@ -185,6 +183,7 @@ func (o *RunOptions) BindFlags(cmd *cobra.Command) {
185183
cmd.Flags().Bool("force-defluxed-mode", false, "A deprecated and unused flag")
186184
cmd.Flags().Bool("allow-pvc-deletion", false, "Deprecated: Ignored if specified")
187185
cmd.Flags().Bool("operator-mode", true, "A deprecated and unused flag")
186+
cmd.Flags().Bool("enable-shadowlinks", false, "Specifies whether or not to enabled the shadow links controller")
188187
}
189188

190189
func (o *RunOptions) ControllerEnabled(controller Controller) bool {
@@ -444,12 +443,9 @@ func Run(
444443
}
445444
}
446445

447-
// ShadowLink Reconciler
448-
if opts.enableShadowLinksController {
449-
if err := redpandacontrollers.SetupShadowLinkController(ctx, mgr, cloudExpander, v1Controllers, v2Controllers); err != nil {
450-
setupLog.Error(err, "unable to create controller", "controller", "ShadowLink")
451-
return err
452-
}
446+
if err := redpandacontrollers.SetupShadowLinkController(ctx, mgr, cloudExpander, v1Controllers, v2Controllers); err != nil {
447+
setupLog.Error(err, "unable to create controller", "controller", "ShadowLink")
448+
return err
453449
}
454450

455451
if err := redpandacontrollers.SetupTopicController(ctx, mgr, cloudExpander, v1Controllers, v2Controllers); err != nil {

0 commit comments

Comments
 (0)