From 1f4ac725e7cd6c22825fdcb5afa1736785f7171e Mon Sep 17 00:00:00 2001 From: cristianowu7 Date: Sun, 8 Jun 2025 23:55:45 +0800 Subject: [PATCH] Add Notation to checkWorkersHealthy in pkg\ddc\goosefs\health_check.go Signed-off-by: cristianowu7 --- pkg/ddc/goosefs/health_check.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/goosefs/health_check.go b/pkg/ddc/goosefs/health_check.go index 601a3706b87..6da848ec8e3 100644 --- a/pkg/ddc/goosefs/health_check.go +++ b/pkg/ddc/goosefs/health_check.go @@ -164,7 +164,10 @@ func (e *GooseFSEngine) checkMasterHealthy() (err error) { } -// checkWorkersHealthy check workers number changed +// checkWorkersHealthy checks the health status of workers in a GooseFSEngine runtime. +// It retrieves the worker statefulset and evaluates whether the workers are ready based on their status. +// If the workers are not ready, it updates the runtime's status with appropriate conditions and logs relevant information. +// If the runtime was created by a controller before v0.7.0, it logs a warning indicating that worker health checking is not supported for such runtimes. func (e *GooseFSEngine) checkWorkersHealthy() (err error) { // Check the status of workers workers, err := ctrl.GetWorkersAsStatefulset(e.Client,