File tree Expand file tree Collapse file tree 3 files changed +191
-58
lines changed
helm/aws-load-balancer-controller/crds Expand file tree Collapse file tree 3 files changed +191
-58
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,17 @@ lint:
162
162
echo " TODO"
163
163
164
164
.PHONY : quick-ci
165
- quick-ci : verify-versions verify-generate
165
+ quick-ci : verify-versions verify-generate verify-crds
166
166
echo " Done!"
167
167
168
168
.PHONY : verify-generate
169
169
verify-generate :
170
170
hack/verify-generate.sh
171
171
172
+ .PHONY : verify-crds
173
+ verify-crds :
174
+ hack/verify-crds.sh
175
+
172
176
.PHONY : verify-versions
173
177
verify-versions :
174
178
hack/verify-versions.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Copyright 2023 The Kubernetes Authors.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ set -o errexit
18
+ set -o nounset
19
+ set -o pipefail
20
+
21
+ make crds
22
+
23
+ changed_files=$( git status --porcelain --untracked-files=no || true)
24
+ if [ -n " ${changed_files} " ]; then
25
+ echo " Detected that CRD generation is needed; run 'make crds'"
26
+ echo " changed files:"
27
+ printf " %s\n" " ${changed_files} "
28
+ echo " git diff:"
29
+ git --no-pager diff
30
+ echo " To fix: run 'make crds'"
31
+ exit 1
32
+ fi
You can’t perform that action at this time.
0 commit comments