Skip to content

chore: add validator to ensure unused cached kube binaries are cleaned up#8538

Open
lilypan26 wants to merge 1 commit into
mainfrom
lily/validate-no-cached-kube-binaries
Open

chore: add validator to ensure unused cached kube binaries are cleaned up#8538
lilypan26 wants to merge 1 commit into
mainfrom
lily/validate-no-cached-kube-binaries

Conversation

@lilypan26
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an E2E validator to ensure versioned (cached) Kubernetes binaries in /opt/bin are cleaned up after installing the correct versions, and wires it into the common Linux validation flow.

Changes:

  • Introduce ValidateStaleCachedKubeBinariesRemoved to detect leftover kubelet-* / kubectl-* files in /opt/bin.
  • Run the new validator as part of ValidateCommonLinux.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
e2e/validators.go Adds a new validator that scans /opt/bin for leftover versioned kube binaries and fails if any remain.
e2e/validation.go Hooks the new validator into the shared Linux validation path so it runs in all Linux E2Es.

Comment thread e2e/validators.go
Comment on lines +2584 to +2585
// List any remaining versioned kubelet/kubectl binaries in /opt/bin/
cmd := `find /opt/bin -maxdepth 1 \( -name "kubelet-*" -o -name "kubectl-*" \) -type f 2>/dev/null`
Comment thread e2e/validators.go
Comment on lines +2584 to +2585
// List any remaining versioned kubelet/kubectl binaries in /opt/bin/
cmd := `find /opt/bin -maxdepth 1 \( -name "kubelet-*" -o -name "kubectl-*" \) -type f 2>/dev/null`
Comment thread e2e/validators.go
Comment on lines +2584 to +2585
// List any remaining versioned kubelet/kubectl binaries in /opt/bin/
cmd := `find /opt/bin -maxdepth 1 \( -name "kubelet-*" -o -name "kubectl-*" \) -type f 2>/dev/null`
Comment thread e2e/validators.go
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.

4 participants