Skip to content

Commit bebe245

Browse files
Add Notation to UpdateDatasetStatus in pkg/ddc/goosefs/deprecated_label.go (#5093)
Signed-off-by: hongwangliu-nju <1649209217@qq.com>
1 parent 579814c commit bebe245

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/ddc/goosefs/deprecated_label.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ import (
2121
apierrs "k8s.io/apimachinery/pkg/api/errors"
2222
)
2323

24+
// HasDeprecatedCommonLabelname checks whether the deprecated common label name exists.
25+
// This method retrieves the DaemonSet's NodeSelector and determines if it contains the deprecated label name.
26+
//
27+
// Returns:
28+
//
29+
// deprecated: true if the deprecated common label name exists, otherwise false.
30+
// err: error information if any error occurs during execution.
2431
func (e *GooseFSEngine) HasDeprecatedCommonLabelname() (deprecated bool, err error) {
2532

2633
// return deprecated.LabelAnnotationStorageCapacityPrefix + e.namespace + "-" + e.name

0 commit comments

Comments
 (0)