|
1 | 1 | all: build |
2 | 2 | .PHONY: all |
3 | 3 |
|
4 | | -update: update-codegen-crds |
| 4 | +update: update-non-codegen update-codegen |
5 | 5 |
|
6 | 6 | RUNTIME ?= podman |
7 | 7 | RUNTIME_IMAGE_NAME ?= registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20 |
@@ -57,23 +57,28 @@ verify-lint-fix: |
57 | 57 | make lint-fix 2>/dev/null || true |
58 | 58 | git diff --exit-code |
59 | 59 |
|
60 | | -.PHONY: verify-scripts |
61 | | -verify-scripts: |
62 | | - bash -x hack/verify-deepcopy.sh |
63 | | - bash -x hack/verify-openapi.sh |
| 60 | +# Verify codegen runs all verifiers in the order they are defined in the root.go file. |
| 61 | +# This includes all generators defined in update-codegen, but also the crd-schema-checker and crdify verifiers. |
| 62 | +.PHONY: verify-codegen |
| 63 | +verify-codegen: |
| 64 | + EXTRA_ARGS=--verify hack/update-codegen.sh |
| 65 | + |
| 66 | +.PHONY: verify-non-codegen |
| 67 | +verify-non-codegen: |
64 | 68 | bash -x hack/verify-protobuf.sh |
65 | | - bash -x hack/verify-swagger-docs.sh |
66 | 69 | hack/verify-crds.sh |
67 | 70 | bash -x hack/verify-types.sh |
68 | | - bash -x hack/verify-compatibility.sh |
69 | 71 | bash -x hack/verify-integration-tests.sh |
70 | 72 | bash -x hack/verify-group-versions.sh |
71 | 73 | bash -x hack/verify-prerelease-lifecycle-gen.sh |
72 | 74 | hack/verify-payload-crds.sh |
73 | 75 | hack/verify-payload-featuregates.sh |
74 | 76 |
|
| 77 | +.PHONY: verify-scripts |
| 78 | +verify-scripts: verify-non-codegen verify-codegen |
| 79 | + |
75 | 80 | .PHONY: verify |
76 | | -verify: verify-scripts lint verify-crd-schema verify-crdify verify-codegen-crds |
| 81 | +verify: verify-scripts lint |
77 | 82 |
|
78 | 83 | .PHONY: verify-codegen-crds |
79 | 84 | verify-codegen-crds: |
@@ -108,6 +113,19 @@ verify-%: |
108 | 113 | .PHONY: update-scripts |
109 | 114 | update-scripts: update-compatibility update-openapi update-deepcopy update-protobuf update-swagger-docs tests-vendor update-prerelease-lifecycle-gen update-payload-featuregates |
110 | 115 |
|
| 116 | +# Update codegen runs all generators in the order they are defined in the root.go file. |
| 117 | +# The per group generators are:[compatibility, deepcopy, swagger-docs, empty-partial-schema, schema-patch, crd-manifest-merge] |
| 118 | +# The multi group generators are:[openapi] |
| 119 | +.PHONY: update-codegen |
| 120 | +update-codegen: |
| 121 | + hack/update-codegen.sh |
| 122 | + |
| 123 | +# Update non-codegen runs all generators that are not part of the codegen utility, or |
| 124 | +# are part of it, but are not run by default when invoking codegen without a specific generator. |
| 125 | +# E.g. the payload feature gates which is not part of the generator style, but is still a subcommand. |
| 126 | +.PHONY: update-non-codegen |
| 127 | +update-non-codegen: update-protobuf tests-vendor update-prerelease-lifecycle-gen update-payload-crds update-payload-featuregates |
| 128 | + |
111 | 129 | .PHONY: update-compatibility |
112 | 130 | update-compatibility: |
113 | 131 | hack/update-compatibility.sh |
|
0 commit comments