CNF-26741: Deprecate deployer #5987
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.66) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 382 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #5987"
general
weight: 0.35
shajmakh
Summary
The operator still pulled a handful of packages from the external
github.com/k8stopologyawareschedwg/deployermodule, even though PR #6010 had alreadyinternalized most of the deployer under
pkg/numaresourcesoperator/. This PR finishes thejob: it relocates the already in-tree packages to their final homes, internalizes the
remaining external packages, drops the external module entirely, and trims the result down
to the surface the operator actually uses. Everything deployer-derived now lives under
internal/(or beside its only consumer).There is no functional change - this is a move/cleanup. Each commit compiles on its
own, so the history is bisectable.
Commits
1.
AA: Relocate internalized deployer packages to internal/Moves the packages PR #6010 placed under
pkg/numaresourcesoperator/to where theybelong, next to their consumers:
images-> existingpkg/imagesobjectupdate/find.go-> existingpkg/objectupdateassets,flagcodec,manifests,options,platform,objectupdate/{ocp,rbac,rte}->
internal/(no existing counterpart, operator-private)All importers are repointed. The external
deployermodule is still vendored and consumedat this stage.
2.
AA: Remove external deployer module dependencyCopies the remaining external
deployerpackages in tree and folds them into theirnatural homes:
kubeletconfig, nodes, environment helpers ->internal/clientutilinternal/validatorinternal/waitRepoints every importer and drops the module from
go.mod,go.sum, andvendor/. Thecopied files are brought in verbatim - packages that are copied here only to be trimmed
in the next commit are not pre-emptively edited.
Docs are updated in this commit, where the dependency removal makes them true:
ARCHITECTURE.mdno longer describes the deployer as an external dependency and notesthe code is now internalized under
internal/..snykexclude is repointed from the droppedvendor/.../deployer/.../kubeletconfigpath to
internal/clientutil/kubeletconfig/*, preserving the existing scan-exclusionbehaviour.
3.
AA: Integrate deployer librariesThe copied packages carried the deployer's full standalone API. Trims each
deployer-derived package down to the surface the operator actually calls, and drops the
types, functions, and files left entirely unused (
clientutil/kubeletconfig,validator/clusterversion.go).4.
AA: Simplify deployer-derived APIsThe validator code is consumed only by
nrovalidate, so keeping a standaloneinternal/validatorpackage is needless indirection. Moves its remaining pieces besidethat tool under
nrovalidate/validatorand drops the now-redundant wrapper import from thecallers.
Testing
make lint- 0 issuesmake test-unit- passmake binary-all- all binaries buildmake verify-generated- cleango vet ./...- clean (per commit)go mod verify- all modules verified