7777 make bundle
7878 git diff --exit-code -I'^ createdAt: ' bundle
7979
80- kubernetes-integration-tests :
81- name : Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64 - ${{ matrix.oci_bin }})
82- runs-on : ubuntu-latest
83- strategy :
84- matrix :
85- go : ['1.22']
86- oci_bin : ['docker', 'podman']
87- env :
88- BPFMAN_AGENT_IMG : quay.io/bpfman/bpfman-agent:int-test
89- BPFMAN_OPERATOR_IMG : quay.io/bpfman/bpfman-operator:int-test
90- XDP_PASS_PRIVATE_IMAGE_CREDS : ${{ secrets.XDP_PASS_PRIVATE_IMAGE_CREDS }}
91- steps :
92- - name : Check disk space
93- run : df -h
94-
95- - name : Free up space
96- run : |
97- sudo rm -rf /usr/share/dotnet
98- sudo rm -rf /opt/ghc
99- sudo rm -rf "/usr/local/share/boost"
100- sudo rm -rf "$AGENT_TOOLSDIRECTORY"
101- sudo rm -rf /usr/local/lib/android
102-
103- - name : Check disk space again
104- run : df -h
105-
106- - name : Install go
107- uses : actions/setup-go@v5
108- with :
109- go-version : ${{ matrix.go }}
110-
111- - name : cache go modules
112- uses : actions/cache@v4
113- with :
114- path : ~/go/pkg/mod
115- key : ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
116- restore-keys : |
117- ${{ runner.os }}-build-codegen-
118-
119- - name : Checkout bpfman-operator
120- uses : actions/checkout@v4
121- with :
122- fetch-depth : 0
123-
124- - name : Install OCI runtime (Docker or Podman)
125- run : |
126- if [ "${{ matrix.oci_bin }}" = "podman" ]; then
127- sudo apt-get update && sudo apt-get install -y podman
128- fi
129-
130- - name : Build Operator and Agent images with ${{ matrix.oci_bin }}
131- run : |
132- make OCI_BIN=${{ matrix.oci_bin }} build-images
133-
134- # Run integration tests only if OCI_BIN is Docker.
135- - name : Run integration tests
136- if : ${{ matrix.oci_bin == 'docker' }}
137- run : |
138- make test-integration
139-
140- - name : Check disk space
141- run : df -h
142-
143- # # Upload diagnostics if integration test step failed.
144- - name : Upload diagnostics
145- if : ${{ failure() }}
146- uses : actions/upload-artifact@v4
147- with :
148- name : kubernetes-integration-test-diag
149- path : /tmp/ktf-diag*
150- if-no-files-found : ignore
151-
15280 coverage :
15381 needs : [build-lint-test]
15482 runs-on : ubuntu-latest
@@ -174,7 +102,6 @@ jobs:
174102 check-license,
175103 build-lint-test,
176104 coverage,
177- kubernetes-integration-tests,
178105 ]
179106 runs-on : ubuntu-latest
180107 steps :
0 commit comments