From 76f98d728a0d44d7495bfb8c8a1a659f0412bb39 Mon Sep 17 00:00:00 2001 From: Christoph Barbian Date: Sat, 9 Nov 2024 13:29:15 +0100 Subject: [PATCH] refactoring --- pkg/operator/operator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/operator/operator.go b/pkg/operator/operator.go index 714717c..1014813 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -31,6 +31,7 @@ import ( ) // TODO: write some logs (e.g. in the hooks) +// TODO: use source digest instead of (resp. in parallel to) source revision const Name = "component-operator.cs.sap.com" @@ -123,7 +124,7 @@ func (o *Operator) Setup(mgr ctrl.Manager) error { o.options.Name, resourceGenerator, component.ReconcilerOptions{ - UpdatePolicy: &[]reconciler.UpdatePolicy{reconciler.UpdatePolicySsaOverride}[0], + UpdatePolicy: ref(reconciler.UpdatePolicySsaOverride), }, ).WithPostReadHook( makeFuncPostRead(),