Repository navigation
CNTRLPLANE-3646: port core karpenter autonode e2e tests to v2 framework #9292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 1 commit into
openshift:main
from
ironcladlou:karpenter-e2e-v2
Aug 24, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
test/e2e/v2/tests/assets/karpenter-kubelet-checker-pod.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: kubelet-config-checker | ||
| namespace: kube-system | ||
| spec: | ||
| restartPolicy: Never | ||
| containers: | ||
| - name: checker | ||
| image: alpine | ||
| command: | ||
| - /bin/sh | ||
| - -c | ||
| - | | ||
| set -u | ||
| FILE=/host/etc/kubernetes/kubelet.conf | ||
| ENV_FILE=/host/etc/node-sizing-enabled.env | ||
| FAIL=0 | ||
|
|
||
| check() { | ||
| local label="$1"; shift | ||
| if grep -q "$@" "$FILE"; then | ||
| echo "PASS: $label" | ||
| else | ||
| echo "FAIL: $label (pattern: $*)" | ||
| FAIL=1 | ||
| fi | ||
| } | ||
|
|
||
| check_env() { | ||
| local label="$1"; shift | ||
| if grep -q "$@" "$ENV_FILE"; then | ||
| echo "PASS: $label" | ||
| else | ||
| echo "FAIL: $label (pattern: $*)" | ||
| FAIL=1 | ||
| fi | ||
| } | ||
|
|
||
| echo "=== kubelet.conf ===" | ||
| cat "$FILE" | ||
| echo "=== node-sizing-enabled.env ===" | ||
| cat "$ENV_FILE" | ||
| echo "=== grep checks ===" | ||
|
|
||
| check "maxPods: 203" 'maxPods: 203' | ||
| check "podsPerCore: 11" 'podsPerCore: 11' | ||
| check "cpuCFSQuota: false" 'cpuCFSQuota: false' | ||
| check "evictionMaxPodGracePeriod: 31" 'evictionMaxPodGracePeriod: 31' | ||
| check "imageGCHighThresholdPercent: 81" 'imageGCHighThresholdPercent: 81' | ||
| check "imageGCLowThresholdPercent: 71" 'imageGCLowThresholdPercent: 71' | ||
| check "kubeReserved cpu: 520m" 'cpu: 520m' | ||
| check "kubeReserved memory: 531Mi" 'memory: 531Mi' | ||
| check "evictionHard memory.available 201Mi" 'memory.available: 201Mi' | ||
| check "evictionHard nodefs.available 11%" 'nodefs.available: 11%' | ||
| check "evictionSoft memory.available 401Mi" 'memory.available: 401Mi' | ||
| check "evictionSoft nodefs.available 16%" 'nodefs.available: 16%' | ||
| check "evictionSoftGracePeriod 1m31s" '1m31s' | ||
| check "evictionSoftGracePeriod 2m5s" '2m5s' | ||
| check "podPidsLimit: 4096" 'podPidsLimit: 4096' | ||
| check "containerLogMaxSize: 50Mi" 'containerLogMaxSize: 50Mi' | ||
|
|
||
| check_env "SYSTEM_RESERVED_CPU=510m" 'SYSTEM_RESERVED_CPU=510m' | ||
| check_env "SYSTEM_RESERVED_MEMORY=521Mi" 'SYSTEM_RESERVED_MEMORY=521Mi' | ||
|
|
||
| exit $FAIL | ||
| securityContext: | ||
| privileged: true | ||
| volumeMounts: | ||
| - name: host | ||
| mountPath: /host | ||
| readOnly: true | ||
| volumes: | ||
| - name: host | ||
| hostPath: | ||
| path: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description fix helps, but the name
RUN_KARPENTER_TESTSstill reads like it gates whether the Karpenter tests run at all, when its only effect is lowering the min version from 4.23 to 4.22. Someone wiring CI from the var name alone would likely get it wrong. Could we rename it (e.g.KARPENTER_ALLOW_422) to reflect what it does?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not without changing all the existing CI machinery, this is meant to be a drop in parallel port for now. Agree it should be changed in a followup