From 753e8e8c0017884137185d615b5f814f073fa550 Mon Sep 17 00:00:00 2001 From: Howard Lau Date: Sun, 1 Nov 2020 06:46:34 +0000 Subject: [PATCH] Add managed-by Signed-off-by: Howard Lau --- controllers/controller_filer.go | 1 + controllers/controller_master.go | 1 + controllers/controller_volume.go | 1 + 3 files changed, 3 insertions(+) diff --git a/controllers/controller_filer.go b/controllers/controller_filer.go index 16770e6..5a7af7c 100644 --- a/controllers/controller_filer.go +++ b/controllers/controller_filer.go @@ -100,6 +100,7 @@ func (r *SeaweedReconciler) ensureFilerConfigMap(seaweedCR *seaweedv1.Seaweed) ( func labelsForFiler(name string) map[string]string { return map[string]string{ + label.ManagedByLabelKey: "seaweedfs-operator", label.NameLabelKey: "seaweedfs", label.ComponentLabelKey: "filer", label.InstanceLabelKey: name, diff --git a/controllers/controller_master.go b/controllers/controller_master.go index 00cb756..5de8ced 100644 --- a/controllers/controller_master.go +++ b/controllers/controller_master.go @@ -119,6 +119,7 @@ func (r *SeaweedReconciler) ensureMasterPeerService(seaweedCR *seaweedv1.Seaweed func labelsForMaster(name string) map[string]string { return map[string]string{ + label.ManagedByLabelKey: "seaweedfs-operator", label.NameLabelKey: "seaweedfs", label.ComponentLabelKey: "master", label.InstanceLabelKey: name, diff --git a/controllers/controller_volume.go b/controllers/controller_volume.go index 03b448b..93326fd 100644 --- a/controllers/controller_volume.go +++ b/controllers/controller_volume.go @@ -82,6 +82,7 @@ func (r *SeaweedReconciler) ensureVolumeServerService(seaweedCR *seaweedv1.Seawe func labelsForVolumeServer(name string) map[string]string { return map[string]string{ + label.ManagedByLabelKey: "seaweedfs-operator", label.NameLabelKey: "seaweedfs", label.ComponentLabelKey: "volume", label.InstanceLabelKey: name,