From 96e3b04b87265db946f8dc9051db561962ac84c7 Mon Sep 17 00:00:00 2001 From: biluohq Date: Sun, 15 Jun 2025 06:03:00 +0800 Subject: [PATCH] Add comments to generateGooseFSValueFile in pkg\ddc\goosefs\master_internal.go Signed-off-by: biluohq --- pkg/ddc/goosefs/master_internal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/ddc/goosefs/master_internal.go b/pkg/ddc/goosefs/master_internal.go index e34a49c9316..af54bba6e0e 100644 --- a/pkg/ddc/goosefs/master_internal.go +++ b/pkg/ddc/goosefs/master_internal.go @@ -58,6 +58,10 @@ func (e *GooseFSEngine) setupMasterInternal() (err error) { } // generate goosefs struct +// generateGooseFSValueFile generates the GooseFS values file for the Helm chart. +// It first deletes any existing ConfigMap for Helm values, then transforms the runtime +// configuration into a values structure, marshals it to YAML, and writes it to a +// temporary file. Finally, it saves the YAML data into a new ConfigMap. func (e *GooseFSEngine) generateGooseFSValueFile(runtime *datav1alpha1.GooseFSRuntime) (valueFileName string, err error) { //0. Check if the configmap exists