From 8d0742b4d553795d8815dff8b8d2d7b9c6d52117 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Sun, 29 May 2022 16:02:03 +0100 Subject: [PATCH] adding the annotation for targetted FFCRD (#15) --- webhooks/mutating_admission_webhook.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webhooks/mutating_admission_webhook.go b/webhooks/mutating_admission_webhook.go index 4acdede5c..3f0a22bf5 100644 --- a/webhooks/mutating_admission_webhook.go +++ b/webhooks/mutating_admission_webhook.go @@ -75,6 +75,9 @@ func (m *PodMutator) Handle(ctx context.Context, req admission.Request) admissio ObjectMeta: metav1.ObjectMeta{ Name: configName, Namespace: req.Namespace, + Annotations: map[string]string{ + "openfeature.dev/featureflagconfiguration": featureFlagCustomResource.Name, + }, }, //TODO Data: map[string]string{