Skip to content

Conversation

@Bishibop
Copy link
Contributor

@Bishibop Bishibop commented Nov 5, 2025

Summary

Fixes incorrect field names in nodeResources filter examples that caused silent YAML parsing failures.

Changes

  • Changed allocatableMemorymemoryAllocatable (5 instances across 3 files)

Impact

The incorrect field names caused filters to be silently ignored during YAML parsing, leading to unexpected analyzer behavior and false failures in preflight checks. Users copying from these examples would experience issues where checks fail despite having sufficient resources.

The nodeResources filter examples incorrectly used `allocatableMemory`
instead of `memoryAllocatable`. This causes YAML parsing to silently
ignore the field, resulting in empty filter values and unexpected
analyzer behavior.

Changed in 3 files (5 instances total):
- examples/preflight/node-resources.yaml (3 instances)
- examples/preflight/e2e.yaml (1 instance)
- examples/support-bundle/e2e.yaml (1 instance)

The correct field names according to pkg/apis/troubleshoot/v1beta2/analyzer_shared.go
are:
- memoryAllocatable (not allocatableMemory)
- cpuAllocatable (not allocatableCPU)
- memoryCapacity (not capacityMemory)
- cpuCapacity (not capacityCPU)

This bug caused users copying from these examples to experience false
failures in preflight checks, as documented in the bug report where
a GKE cluster with 85Gi memory failed a check requiring only 8Gi.
@Bishibop Bishibop self-assigned this Nov 5, 2025
@Bishibop Bishibop added type::chore type::docs Improvements or additions to documentation labels Nov 5, 2025
@Bishibop Bishibop marked this pull request as ready for review November 5, 2025 23:41
@Bishibop Bishibop requested a review from marccampbell November 5, 2025 23:41
@Bishibop Bishibop merged commit 40bb2e3 into main Nov 6, 2025
26 of 36 checks passed
@Bishibop Bishibop deleted the fix-node-resources-example-field-names branch November 6, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type::chore type::docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants