Skip to content

chore: remove k8s.io replace pins and update script - #316

Merged
STRRL merged 1 commit into
masterfrom
chore/remove-k8s-replace-pins
Jul 19, 2026
Merged

chore: remove k8s.io replace pins and update script#316
STRRL merged 1 commit into
masterfrom
chore/remove-k8s-replace-pins

Conversation

@STRRL

@STRRL STRRL commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Problem

The 31 k8s.io replace directives in go.mod and hack/update-kubernetes-library.sh were adapted from chaos-mesh in #207. That pattern is only required for projects that depend on the k8s.io/kubernetes monorepo, whose staging modules are declared as v0.0.0. This project never depended on it: it only uses published staging modules (k8s.io/api, k8s.io/client-go, etc.) plus controller-runtime, so Go's minimal version selection keeps versions aligned on its own.

The pins also permanently block dependabot from bumping controller-runtime (#306 keeps failing to compile), because dependabot updates require directives but never replace directives.

Solution

Remove the replace block and the script. Kubernetes dependency bumps are handled by the dependabot kubernetes group going forward.

Major Changes

  • go.mod
    • remove all 31 k8s.io replace directives; go.sum is unchanged, which confirms dependency resolution is identical before and after
  • hack/update-kubernetes-library.sh
    • removed; note its final go get k8s.io/kubernetes would actually add the whole monorepo as a dependency if ever run

Verified locally: go build ./... and go test ./pkg/... pass, both on the current master baseline and with controller-runtime 0.24.1 + k8s.io v0.36.0.

The replace block and hack/update-kubernetes-library.sh were adapted
from chaos-mesh in #207. That pattern is only required for projects
that depend on the k8s.io/kubernetes monorepo, whose staging modules
are declared as v0.0.0. This project only uses published staging
modules plus controller-runtime, so MVS keeps versions aligned on its
own. The pins also block dependabot from bumping controller-runtime,
because it updates require directives but never replace directives.
@claude

claude Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.27%. Comparing base (c46205a) to head (ff21c63).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #316      +/-   ##
==========================================
- Coverage   52.98%   47.27%   -5.71%     
==========================================
  Files          12       13       +1     
  Lines         787      882      +95     
==========================================
  Hits          417      417              
- Misses        349      444      +95     
  Partials       21       21              
Flag Coverage Δ
e2e 0.00% <ø> (?)
integration 29.77% <ø> (ø)
unit 33.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@STRRL
STRRL marked this pull request as ready for review July 19, 2026 01:05
@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@STRRL
STRRL merged commit dd16934 into master Jul 19, 2026
5 of 7 checks passed
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