Skip to content

Commit cfe3392

Browse files
committed
ci: skip OpenAPI validation in kubectl --dry-run (no cluster in CI)
1 parent 65b73f0 commit cfe3392

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
echo "skip CRD-bound: $f"; continue;;
6868
esac
6969
echo "::group::kubectl dry-run $f"
70-
if ! kubectl apply --dry-run=client -f "$f"; then fail=1; fi
70+
# --validate=false: there's no cluster, so skip OpenAPI download
71+
if ! kubectl apply --dry-run=client --validate=false -f "$f"; then fail=1; fi
7172
echo "::endgroup::"
7273
done < <(find . -type f -path '*/manifests/*.yaml')
7374
exit "$fail"

0 commit comments

Comments
 (0)