Skip to content

Commit 3738137

Browse files
committed
feat: add annotations to subscription creation for target namespaces
Enhanced the createSubscription function to include annotations for target namespaces, allowing better management and visibility of subscription configurations. This change adds a new annotation "cpaas.io/target-namespaces" with the specified namespace.
1 parent 4e41a1e commit 3738137

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/operator/operatorhub/subscription.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func (o *Operator) createSubscription(ctx context.Context, name, namespace, csv
118118
"metadata": map[string]interface{}{
119119
"name": name,
120120
"namespace": namespace,
121+
"annotations": map[string]interface{}{
122+
"cpaas.io/target-namespaces": namespace,
123+
},
121124
"labels": map[string]interface{}{
122125
"catalog": "platform",
123126
},

0 commit comments

Comments
 (0)