From c59a462778ddea5df3adeedfda9bc3b1985ac996 Mon Sep 17 00:00:00 2001 From: Maor Friedman Date: Thu, 21 Mar 2024 11:47:55 +0200 Subject: [PATCH] dynatrace-token-provider add qontract integration annotation --- reconcile/dynatrace_token_provider.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reconcile/dynatrace_token_provider.py b/reconcile/dynatrace_token_provider.py index 06c77528a2..b6c4dd08bb 100644 --- a/reconcile/dynatrace_token_provider.py +++ b/reconcile/dynatrace_token_provider.py @@ -51,6 +51,7 @@ OCMBaseClient, init_ocm_base_client, ) +from reconcile.utils.openshift_resource import QONTRACT_ANNOTATION_INTEGRATION from reconcile.utils.runtime.integration import ( PydanticRunParams, QontractReconcileIntegration, @@ -358,7 +359,13 @@ def construct_base_syncset( { "apiVersion": "v1", "kind": "Secret", - "metadata": {"name": SECRET_NAME, "namespace": SECRET_NAMESPACE}, + "metadata": { + "name": SECRET_NAME, + "namespace": SECRET_NAMESPACE, + "annotations": { + QONTRACT_ANNOTATION_INTEGRATION: QONTRACT_INTEGRATION + }, + }, "data": { "apiUrl": f"{self.base64_encode_str(dt_api_url)}", "dataIngestTokenId": f"{self.base64_encode_str(ingestion_token.id)}",