Merge pull request #137162 from aojea/component_helpers

update component-helpers policies for dependencies
This commit is contained in:
Kubernetes Prow Robot
2026-02-25 21:16:25 +05:30
committed by GitHub
3 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ approvers:
- dims
- justaugustus
reviewers:
- aojea
- sttts
- cpanato
- dims

View File

@@ -278,6 +278,8 @@
- k8s.io/klog
- k8s.io/csi-translation-lib
# To prevent dependency leaking into downstream components and to maintain a
# minimal footprint, do NOT add any new dependencies to this module
- baseImportPath: "./staging/src/k8s.io/component-helpers"
allowedImports:
- k8s.io/api

View File

@@ -10,7 +10,7 @@ Yet, still with a high level of abstraction.
`k8s.io/component-base` staging repository was considered as a candidate for hosting the helpers. Although, since the helpers are not required by the core components, the repository was deemed unsuitable.
The only allowed kubernetes dependencies are `k8s.io/apimachinery`, `k8s.io/api` and `k8s.io/client-go`.
To maintain a minimal footprint and prevent dependency bloat, no external direct dependencies are allowed.
## Purpose