File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ vet: ## Run go vet against code.
132
132
go vet ./...
133
133
134
134
.PHONY : test
135
- test : manifests generate fmt vet envtest image-build # # Run tests.
135
+ test : manifests generate fmt vet envtest image-build verify-crds # # Run tests.
136
136
CGO_ENABLED=1 KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( ENVTEST_K8S_VERSION) --bin-dir $( LOCALBIN) -p path) " go test $$(go list ./... | grep -v /e2e | grep -v /conformance ) -race -coverprofile cover.out
137
137
138
138
.PHONY : test-unit
@@ -163,6 +163,10 @@ ci-lint: golangci-lint
163
163
verify : vet fmt-verify manifests generate ci-lint verify-all
164
164
git --no-pager diff --exit-code config api client-go
165
165
166
+ .PHONY : verify-crds
167
+ verify-crds : kubectl-validate
168
+ hack/verify-manifests.sh
169
+
166
170
# Run static analysis.
167
171
.PHONY : verify-all
168
172
verify-all :
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ main() {
44
44
fetch_crds " https://raw.githubusercontent.com/GoogleCloudPlatform/gke-gateway-api/refs/tags/${GKE_GATEWAY_API_VERSION} /config/crd/networking.gke.io_healthcheckpolicies.yaml"
45
45
fetch_crds " https://raw.githubusercontent.com/istio/istio/refs/tags/${ISTIO_VERSION} /manifests/charts/base/files/crd-all.gen.yaml"
46
46
47
- make kubectl-validate
48
-
49
47
${SCRIPT_ROOT} /bin/kubectl-validate " ${TEMP_DIR} "
50
48
${SCRIPT_ROOT} /bin/kubectl-validate " ${SCRIPT_ROOT} /config/manifests" --local-crds " ${TEMP_DIR} "
51
49
}
You can’t perform that action at this time.
0 commit comments