Skip to content

Commit 8d0742b

Browse files
authored
adding the annotation for targetted FFCRD (#15)
1 parent aec76ea commit 8d0742b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webhooks/mutating_admission_webhook.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func (m *PodMutator) Handle(ctx context.Context, req admission.Request) admissio
7575
ObjectMeta: metav1.ObjectMeta{
7676
Name: configName,
7777
Namespace: req.Namespace,
78+
Annotations: map[string]string{
79+
"openfeature.dev/featureflagconfiguration": featureFlagCustomResource.Name,
80+
},
7881
},
7982
//TODO
8083
Data: map[string]string{

0 commit comments

Comments
 (0)