kubectl/pkg/util
Nikhil ad4e7654ea Remove deprecated PodRequestsAndLimits from kubectl/pkg/util/resource (#137442)
* Remove deprecated PodRequestsAndLimits from kubectl/pkg/util/resource

The PodRequestsAndLimits function was deprecated in favor of
k8s.io/component-helpers/resource.PodRequests and PodLimits,
which also support pod-level resources. There are no remaining
consumers in kubectl.

This removal includes the unexported helpers: podRequests,
podLimits, determineContainerReqs, max, addResourceList, and
maxResourceList.

* Remove test for deleted max helper function

Kubernetes-commit: e026a9482a167bec567f16f87efe9df4c09dbb06
2026-03-09 19:53:31 +05:30
..
certificate Add v1 CSR support to kubectl describe 2020-06-04 12:05:51 -04:00
completion Fix linter 2025-08-28 23:04:35 -07:00
deployment cli: replace intstr.FromInt with intstr.FromInt32 2023-03-14 16:17:48 +01:00
event Move pkg/kubectl/util/event into staging 2019-06-19 15:31:51 -07:00
fieldpath Use generic sets rather than deprecated sets.String 2024-11-21 13:22:39 +03:00
hash Immutable field and validation 2019-11-26 13:29:26 +01:00
i18n e2e: suppress or ignore init log output 2025-12-10 16:00:33 +01:00
interrupt Moved pkg/kubectl/util/term, pkg/kubectl/util/templates, pkg/kubectl/util/interrupt, and pkg/kubectl/util/interrupt to staging 2019-06-19 16:31:38 +02:00
openapi remove import doc comments 2024-12-02 14:43:58 +01:00
podutils consider sidecar containers in maxContainerRestarts 2024-05-19 23:50:25 +08:00
prune fix: enable expected-actual rule from testifylint in module k8s.io/kubectl 2024-09-27 07:47:42 +02:00
qos Use quantity.Sign() instead of quantity.Cmp(zeroQuantity) 2026-02-04 10:38:23 -08:00
rbac Use generic sets rather than deprecated sets.String 2024-11-21 13:22:39 +03:00
resource Remove deprecated PodRequestsAndLimits from kubectl/pkg/util/resource (#137442) 2026-03-09 19:53:31 +05:30
slice Fixes under staging. 2026-02-06 22:44:34 +01:00
storage add unit test for /staging/src/k8s.io/kubectl/pkg/util/storage 2022-07-29 17:34:00 +08:00
templates Fix Go vet errors for master golang 2024-09-12 18:15:22 +05:30
term Add --detach-keys for kubectl attach command 2025-10-31 14:57:46 +08:00
apply.go Move pkg/kubectl/apply.go to staging 2019-07-24 20:40:25 -07:00
pod_port.go Added logic to check portname in sidecar container (init) 2024-06-11 20:05:39 +05:30
pod_port_test.go Added logic to check portname in sidecar container (init) 2024-06-11 20:05:39 +05:30
service_port.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00
service_port_test.go cli: replace intstr.FromInt with intstr.FromInt32 2023-03-14 16:17:48 +01:00
umask.go build: remove deprecated '// +build' tag 2025-12-01 15:54:18 +01:00
umask_windows.go build: remove deprecated '// +build' tag 2025-12-01 15:54:18 +01:00
util.go remove deadcode HashObject from k8s.io/kubectl/pkg/util 2025-08-26 15:07:10 -07:00
util_test.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00