From 459428b21a41fac8ca5146a3c86dc52b729b26b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Thu, 28 Dec 2023 10:44:24 +0100 Subject: [PATCH] changes managed-by label from lifecycle-manager to infrastructure-manager --- internal/controller/gardener_cluster_controller.go | 2 +- internal/controller/gardener_cluster_controller_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/gardener_cluster_controller.go b/internal/controller/gardener_cluster_controller.go index 6bd8c859..b429a7ab 100644 --- a/internal/controller/gardener_cluster_controller.go +++ b/internal/controller/gardener_cluster_controller.go @@ -393,7 +393,7 @@ func (controller *GardenerClusterController) newSecret(cluster imv1.GardenerClus for key, val := range cluster.Labels { labels[key] = val } - labels["operator.kyma-project.io/managed-by"] = "lifecycle-manager" + labels["operator.kyma-project.io/managed-by"] = "infrastructure-manager" labels[clusterCRNameLabel] = cluster.Name return corev1.Secret{ diff --git a/internal/controller/gardener_cluster_controller_test.go b/internal/controller/gardener_cluster_controller_test.go index 4004e8bd..f60ae6fd 100644 --- a/internal/controller/gardener_cluster_controller_test.go +++ b/internal/controller/gardener_cluster_controller_test.go @@ -239,7 +239,7 @@ type TestSecret struct { func fixSecretLabels(kymaName, shootName string) map[string]string { labels := fixGardenerClusterLabels(kymaName, shootName) - labels["operator.kyma-project.io/managed-by"] = "lifecycle-manager" + labels["operator.kyma-project.io/managed-by"] = "infrastructure-manager" labels["operator.kyma-project.io/cluster-name"] = kymaName return labels }