From 7aa8498d0ddec46e381ee5108ec2613a01bda9d0 Mon Sep 17 00:00:00 2001 From: hongwangliu-nju <1649209217@qq.com> Date: Thu, 12 Jun 2025 15:40:46 +0800 Subject: [PATCH] Add Notation to UpdateDatasetStatus in pkg/ddc/goosefs/deprecated_label.go Signed-off-by: hongwangliu-nju <1649209217@qq.com> --- pkg/ddc/goosefs/deprecated_label.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/ddc/goosefs/deprecated_label.go b/pkg/ddc/goosefs/deprecated_label.go index 29db93e4f4b..8d844c63893 100644 --- a/pkg/ddc/goosefs/deprecated_label.go +++ b/pkg/ddc/goosefs/deprecated_label.go @@ -21,6 +21,13 @@ import ( apierrs "k8s.io/apimachinery/pkg/api/errors" ) +// HasDeprecatedCommonLabelname checks whether the deprecated common label name exists. +// This method retrieves the DaemonSet's NodeSelector and determines if it contains the deprecated label name. +// +// Returns: +// +// deprecated: true if the deprecated common label name exists, otherwise false. +// err: error information if any error occurs during execution. func (e *GooseFSEngine) HasDeprecatedCommonLabelname() (deprecated bool, err error) { // return deprecated.LabelAnnotationStorageCapacityPrefix + e.namespace + "-" + e.name