Repository navigation
chore(kubernetes): use kubectl-neat v1.0.5 pkg/neat - #196
Conversation
kubectl-neat/cmd linked cobra through its init(), and v1.0.4's defaults step used client-go's scheme, which registers every Kubernetes API group. v1.0.5 adds pkg/neat without the CLI and decodes with its own core/v1 scheme. A binary importing gomplate/v4/kubernetes drops from 65.4 MB to 50.2 MB, k8s.io/api from 53 to 5 linked packages, and client-go, cobra, pflag and mousetrap leave go.mod.
BenchstatBase: No significant performance changes detectedFull benchstat output |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
No actionable comments were generated in the recent review. WalkthroughThe PR updates ChangesNeat package update
Possibly related issues
Possibly related PRs
Suggested reviewers: Change: Other Merge Risk:
|
Switches
k8s.neatto kubectl-neat v1.0.5's newpkg/neat, which drops client-go and cobra. A binary importinggomplate/v4/kubernetesgoes from 65.4 MB to 50.2 MB. Replaces #194, which vendored the same code into gomplate.Opus 5.5 Medium
kubectl-neat #10 moved
NeatYAMLOrJSONout of the cobracmdpackage intopkg/neat, and madepkg/defaultsdecode with its own core/v1 scheme instead of client-go'sscheme.Codecs. Output is byte-identical to v1.0.4 on kubectl-neat's fixtures plus extra manifests (45/45).kubernetes/format.goimportspkg/neatinstead ofcmd.k8s.io/client-go, cobra, pflag and mousetrap are gone.k8s.io/apilinked packages: 53 → 5 (the rest come from is-healthy).Verification: all test packages pass except
web/andcmd/ceval, which need the playgrounddistbuild, same as onmain. golangci-lint on./kubernetes/...is clean.Summary by CodeRabbit