We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42530bf + 3e0e848 commit b0421f3Copy full SHA for b0421f3
1 file changed
Makefile
@@ -30,6 +30,17 @@ verify-codegen-script:
30
31
# Ensure codegen is run before generating the CRD, so updates to Godoc are included.
32
update-crd: update-codegen-script update-codegen-crds
33
+.PHONY: update-crd
34
+
35
+# Create CRD from scratch using the 'crd' generator instead of 'schemapatch'
36
+# This target can regenerate the CRD even if it doesn't exist, unlike update-crd
37
+# which uses 'schemapatch' and only patches existing CRDs.
38
+create-crd: update-codegen-script ensure-controller-gen
39
+ '$(CONTROLLER_GEN)' \
40
+ crd \
41
+ paths="./pkg/apis/release/v1alpha1" \
42
+ 'output:crd:dir=./artifacts'
43
+.PHONY: create-crd
44
45
sonar-reports:
46
go test ./... -coverprofile=coverage.out -covermode=count -json > report.json
0 commit comments