Skip to content

Surface missing optional configMap/secret volumes in Pod output#709

Merged
bergerx merged 1 commit into
masterfrom
pod-volume-optional-missing-note
Jul 17, 2026
Merged

Surface missing optional configMap/secret volumes in Pod output#709
bergerx merged 1 commit into
masterfrom
pod-volume-optional-missing-note

Conversation

@bergerx

@bergerx bergerx commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • A configMap/secret volume with optional: true whose referenced object is missing was previously ignored entirely, even though it's useful diagnostic info.
  • It now renders a distinct optional, not found note (not styled as an error, since kubelet mounts it empty rather than blocking the pod) and, like other volume problems, shows up without needing --include-all-volumes.
  • Non-optional missing configMap/secret volumes are unaffected — still shown as a red doesn't exist error.

Test plan

  • go build ./...
  • go test ./... (457 tests, offline/golden suite)
  • Updated e2e fixture pod-volume-configmap-secret-optional-missing.regex and the corresponding TestE2EParallel subtest to drop --include-all-volumes and assert the new note (verified regex logic against synthetic samples matching the template's single-line/multi-line volume rendering)

A configMap/secret volume with optional:true whose object is missing
was silently ignored, even though it's useful diagnostic information
(kubelet mounts it empty rather than blocking the pod). Now it renders
a distinct "optional, not found" note and, like other volume problems,
shows up without needing --include-all-volumes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@bergerx
bergerx merged commit bda4dc8 into master Jul 17, 2026
2 checks passed
@bergerx
bergerx deleted the pod-volume-optional-missing-note branch July 17, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant