chore: fix some function names in comment

Signed-off-by: acceptacross <csqcqs@gmail.com>
pull/30957/head
acceptacross 4 months ago
parent 7031000b7d
commit 9623fb80f1

@ -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()

@ -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 {

Loading…
Cancel
Save