Skip to content

Commit 2533388

Browse files
rdimitrovclaude
andauthored
Run operator E2E on one Kubernetes version per PR (#6540)
Every pull request update runs the operator E2E suite against three kind node versions, about 20 large-runner minutes per run, while cross-version compatibility almost never breaks within a single PR. Run only the newest version on pull_request events. Pushes to main and manual dispatches keep the full matrix, so a version-specific regression still surfaces on main within one CI cycle. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 5276636 commit 2533388

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/operator-ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,19 @@ jobs:
160160
strategy:
161161
fail-fast: false
162162
matrix:
163+
# Pull requests run against the newest Kubernetes version only; pushes
164+
# to main and manual dispatches run the full set. Cross-version
165+
# compatibility rarely breaks within a single PR, and the full matrix
166+
# still runs on every merge, so a regression surfaces on main within
167+
# one CI cycle instead of costing three E2E runs on every PR update.
168+
#
163169
# Before someone says it, yes we could just put the number here and not the full image name,
164170
# but we want to make sure renovate bumps the versions when new ones are released. Doing that with
165-
# just the number is a bit more difficult and i like simple things.
166-
version: [
167-
"kindest/node:v1.33.7",
168-
"kindest/node:v1.34.3",
169-
"kindest/node:v1.35.1"
170-
]
171+
# just the number is a bit more difficult and i like simple things. The newest version appears in
172+
# both lists so renovate keeps them in step.
173+
version: ${{ github.event_name == 'pull_request'
174+
&& fromJSON('["kindest/node:v1.35.1"]')
175+
|| fromJSON('["kindest/node:v1.33.7", "kindest/node:v1.34.3", "kindest/node:v1.35.1"]') }}
171176

172177
steps:
173178
- name: Checkout code

0 commit comments

Comments
 (0)