Commit 73def82
committed
fix: Round 10 - Use official setup-envtest tool for Kubernetes test environment
The manual kubebuilder tools download was failing because the file
doesn't exist at the assumed URL. The official approach is to use
the setup-envtest tool from controller-runtime/tools.
Changes:
- Install setup-envtest using `go install`
- Use setup-envtest to download and configure test binaries
- Automatically sets KUBEBUILDER_ASSETS to the correct path
- Removes manual tar extraction and URL guessing
This is the recommended approach per kubebuilder documentation:
https://book.kubebuilder.io/reference/envtest.html
Files modified:
- .github/workflows/test.yml (lines 175-188)
- .github/workflows/reusable/build-test.yml (lines 85-98)
Related: #CI-fixes1 parent e51ac80 commit 73def82
2 files changed
Lines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 90 | + | |
| 91 | + | |
95 | 92 | | |
96 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
189 | 185 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
| |||
0 commit comments