From 9623fb80f1fe8ec782cd873902913d32b7daab36 Mon Sep 17 00:00:00 2001 From: acceptacross Date: Wed, 4 Jun 2025 23:54:30 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: acceptacross --- pkg/action/hooks.go | 2 +- pkg/chart/v2/util/chartfile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/action/hooks.go b/pkg/action/hooks.go index 7f265797b..1213e87e2 100644 --- a/pkg/action/hooks.go +++ b/pkg/action/hooks.go @@ -188,7 +188,7 @@ func (cfg *Configuration) hookHasDeletePolicy(h *release.Hook, policy release.Ho return slices.Contains(h.DeletePolicies, policy) } -// hookClearDeletePolicy determines whether the defined hook deletion policy matches the hook deletion polices +// hookSetDeletePolicy determines whether the defined hook deletion policy matches the hook deletion polices // supported by helm. If so, mark the hook as one should be deleted. func (cfg *Configuration) hookSetDeletePolicy(h *release.Hook) { cfg.mutex.Lock() diff --git a/pkg/chart/v2/util/chartfile.go b/pkg/chart/v2/util/chartfile.go index 6748c6a91..1f9c712b2 100644 --- a/pkg/chart/v2/util/chartfile.go +++ b/pkg/chart/v2/util/chartfile.go @@ -39,7 +39,7 @@ func LoadChartfile(filename string) (*chart.Metadata, error) { return y, err } -// StrictLoadChartFile loads a Chart.yaml into a *chart.Metadata using a strict unmarshaling +// StrictLoadChartfile loads a Chart.yaml into a *chart.Metadata using a strict unmarshaling func StrictLoadChartfile(filename string) (*chart.Metadata, error) { b, err := os.ReadFile(filename) if err != nil {