Add managed-by

Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
Howard Lau 2020-11-01 06:46:34 +00:00
parent eb051a3202
commit 753e8e8c00
No known key found for this signature in database
GPG Key ID: 5CCC55849E3CF8E2
3 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,7 @@ func (r *SeaweedReconciler) ensureFilerConfigMap(seaweedCR *seaweedv1.Seaweed) (
func labelsForFiler(name string) map[string]string { func labelsForFiler(name string) map[string]string {
return map[string]string{ return map[string]string{
label.ManagedByLabelKey: "seaweedfs-operator",
label.NameLabelKey: "seaweedfs", label.NameLabelKey: "seaweedfs",
label.ComponentLabelKey: "filer", label.ComponentLabelKey: "filer",
label.InstanceLabelKey: name, label.InstanceLabelKey: name,

View File

@ -119,6 +119,7 @@ func (r *SeaweedReconciler) ensureMasterPeerService(seaweedCR *seaweedv1.Seaweed
func labelsForMaster(name string) map[string]string { func labelsForMaster(name string) map[string]string {
return map[string]string{ return map[string]string{
label.ManagedByLabelKey: "seaweedfs-operator",
label.NameLabelKey: "seaweedfs", label.NameLabelKey: "seaweedfs",
label.ComponentLabelKey: "master", label.ComponentLabelKey: "master",
label.InstanceLabelKey: name, label.InstanceLabelKey: name,

View File

@ -82,6 +82,7 @@ func (r *SeaweedReconciler) ensureVolumeServerService(seaweedCR *seaweedv1.Seawe
func labelsForVolumeServer(name string) map[string]string { func labelsForVolumeServer(name string) map[string]string {
return map[string]string{ return map[string]string{
label.ManagedByLabelKey: "seaweedfs-operator",
label.NameLabelKey: "seaweedfs", label.NameLabelKey: "seaweedfs",
label.ComponentLabelKey: "volume", label.ComponentLabelKey: "volume",
label.InstanceLabelKey: name, label.InstanceLabelKey: name,