-
Notifications
You must be signed in to change notification settings - Fork 240
39 lines (39 loc) · 1.05 KB
/
crdgen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: crdgen
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
merge_group:
types:
- checks_requested
jobs:
crdgen:
strategy:
matrix:
go-version: ['1.22', '1.23']
os: [ubuntu-latest]
name: CRDs are Generated
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Regenerate NodeNetworkConfig CRD
run: make -C crd/nodenetworkconfig
- name: Regenerate MultitenantNetworkContainer CRD
run: make -C crd/multitenantnetworkcontainer
- name: Regenerate Multitenancy CRDs
run: make -C crd/multitenancy
- name: Regenerate ClusterSubnetState CRD
run: make -C crd/clustersubnetstate
- name: Regenerate OverlayExtensionConfig CRD
run: make -C crd/overlayextensionconfig
- name: Fail if the tree is dirty
run: test -z "$(git status --porcelain)"