From b0392702d36c5bcf604deeb3c80f58eafce2d057 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Tue, 21 Nov 2023 15:38:58 +0100 Subject: [PATCH] polish controllers Signed-off-by: odubajDT --- controllers/core/featureflagsource/controller.go | 3 +++ controllers/core/featureflagsource/controller_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/core/featureflagsource/controller.go b/controllers/core/featureflagsource/controller.go index 469c86836..a8e2b8d37 100644 --- a/controllers/core/featureflagsource/controller.go +++ b/controllers/core/featureflagsource/controller.go @@ -44,6 +44,9 @@ type FeatureFlagSourceReconciler struct { FlagdProxy *flagdproxy.FlagdProxyHandler } +// renovate: datasource=github-tags depName=open-feature/flagd/flagd-proxy +const flagdProxyTag = "v0.3.0" + //+kubebuilder:rbac:groups=core.openfeature.dev,resources=featureflagsources,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=core.openfeature.dev,resources=featureflagsources/status,verbs=get;update;patch //+kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete diff --git a/controllers/core/featureflagsource/controller_test.go b/controllers/core/featureflagsource/controller_test.go index 06c4b50c2..e65c5bc7d 100644 --- a/controllers/core/featureflagsource/controller_test.go +++ b/controllers/core/featureflagsource/controller_test.go @@ -91,7 +91,7 @@ func TestFeatureFlagSourceReconciler_Reconcile(t *testing.T) { } kpConfig := flagdproxy.NewFlagdProxyConfiguration(commontypes.EnvConfig{ FlagdProxyImage: "ghcr.io/open-feature/flagd-proxy", - FlagdProxyTag: "v0.3.0", + FlagdProxyTag: flagdProxyTag, }) kpConfig.Namespace = testNamespace