You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hack/verify-openapi-spec.sh
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@
15
15
# limitations under the License.
16
16
17
17
# This script checks whether updating of OpenAPI specification is needed or not.
18
+
# It verifies that the OpenAPI specification is up to date in strict mode, and
19
+
# will fallback to check in non-strict mode if that fails. Strict mode removes
20
+
# all APIs marked # as removed in a particular version, while non-strict mode
21
+
# allows them to persist until the release cutoff. We allow non-strict to
22
+
# prevent CI failures when we bump the version number in the git tag.
18
23
# We should run `hack/update-openapi-spec.sh` if OpenAPI specification is out of
19
24
# date.
20
25
# Usage: `hack/verify-openapi-spec.sh`.
@@ -26,5 +31,7 @@ set -o pipefail
26
31
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
27
32
28
33
source"${KUBE_ROOT}/hack/lib/verify-generated.sh"
29
-
30
-
kube::verify::generated "Generated files need to be updated""Please run 'hack/update-openapi-spec.sh'" hack/update-openapi-spec.sh "$@"
34
+
(
35
+
kube::verify::generated "Generated files failed strict alpha check and MAY need be updated""Running verification again without strict alpha check" hack/update-openapi-spec.sh "$@"
36
+
) || \
37
+
KUBE_APISERVER_STRICT_REMOVED_API_HANDLING_IN_ALPHA=false kube::verify::generated "Generated files need to be updated""Please run 'hack/update-openapi-spec.sh'" hack/update-openapi-spec.sh "$@"
0 commit comments