func (f *Makefile) SetTemplateDefaults() error {
	if f.Path == "" {
		f.Path = "Makefile"
	}
	f.TemplateBody = makefileTemplate
	f.IfExistsAction = machinery.Error
	if f.Image == "" {
		f.Image = "controller:latest"
	}
	if f.KustomizeVersion == "" {
		return errors.New("kustomize version is required in scaffold")
	}
	if f.HelmOperatorVersion == "" {
		return errors.New("helm-operator version is required in scaffold")
	}
	return nil
}
SetTemplateDefaults implements machinery.Template
package templates
import (
	"errors"
	"sigs.k8s.io/kubebuilder/v3/pkg/machinery"
)
var _ machinery.Template = &Makefile{}
type Makefile struct {
	machinery.TemplateMixin
	Image string
	KustomizeVersion string
	HelmOperatorVersion string
}