Skip to content

Commit 525e623

Browse files
committed
(feat) applyconfiguration codegen
1 parent 6ce9be5 commit 525e623

File tree

1 file changed

+3
-3
lines changed
  • pkg/plugins/golang/v4/scaffolds/internal/templates

1 file changed

+3
-3
lines changed

pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
121121
"$(CONTROLLER_GEN)" rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
122122
123123
.PHONY: generate
124-
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
124+
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, DeepCopyObject methods and applyconfiguration builders.
125125
{{ if .BoilerplatePath -}}
126-
"$(CONTROLLER_GEN)" object:headerFile={{printf "%q" .BoilerplatePath}} paths="./..."
126+
"$(CONTROLLER_GEN)" applyconfiguration:headerFile="hack/boilerplate.go.txt" object:headerFile={{printf "%q" .BoilerplatePath}} paths="./..."
127127
{{- else -}}
128-
"$(CONTROLLER_GEN)" object paths="./..."
128+
"$(CONTROLLER_GEN)" applyconfiguration object paths="./..."
129129
{{- end }}
130130
131131
.PHONY: fmt

0 commit comments

Comments
 (0)