Skip to content

Commit c5679c2

Browse files
authored
Add Notation to checkWorkersHealthy in pkg\ddc\goosefs\health_check.go (#5088)
Signed-off-by: cristianowu7 <whr1462003385@gmail.com>
1 parent 58639b3 commit c5679c2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/ddc/goosefs/health_check.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ func (e *GooseFSEngine) checkMasterHealthy() (err error) {
164164

165165
}
166166

167-
// checkWorkersHealthy check workers number changed
167+
// checkWorkersHealthy checks the health status of workers in a GooseFSEngine runtime.
168+
// It retrieves the worker statefulset and evaluates whether the workers are ready based on their status.
169+
// If the workers are not ready, it updates the runtime's status with appropriate conditions and logs relevant information.
170+
// 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.
168171
func (e *GooseFSEngine) checkWorkersHealthy() (err error) {
169172
// Check the status of workers
170173
workers, err := ctrl.GetWorkersAsStatefulset(e.Client,

0 commit comments

Comments
 (0)