diff --git a/pkg/resource/resource.go b/pkg/resource/resource.go index 1e0e3764b8..122fb6d6fa 100644 --- a/pkg/resource/resource.go +++ b/pkg/resource/resource.go @@ -54,7 +54,7 @@ func (r *Resource) Behavior() types.GenerationBehavior { return r.options.Behavior() } -// NeedAppendHash checks if the resource need a hash suffix +// NeedHashSuffix checks if the resource need a hash suffix func (r *Resource) NeedHashSuffix() bool { return r.options != nil && r.options.NeedsHashSuffix() } diff --git a/pkg/types/genargs.go b/pkg/types/genargs.go index bef093d350..fc25dcdc99 100644 --- a/pkg/types/genargs.go +++ b/pkg/types/genargs.go @@ -47,7 +47,7 @@ func (g *GenArgs) String() string { "}" } -// NeedHashSuffix returns true if the hash suffix is needed. +// NeedsHashSuffix returns true if the hash suffix is needed. // It is needed when the two conditions are both met // 1) GenArgs is not nil // 2) DisableNameSuffixHash in GeneratorOptions is not set to true