Commit graph

4139 commits

Author SHA1 Message Date
Kubernetes Publisher
efd8ecc992 Merge pull request #138346 from dashpole/update_otel_prop
Update go.opentelemetry.io/otel to v1.41.0

Kubernetes-commit: eb51fbf7c6de0e361504729feabdadd178cd2b7b
2026-04-14 21:01:34 +00:00
Kubernetes Publisher
50157eb9cd Merge pull request #138354 from dims/update-moby-spdystream-v0.5.1
Update github.com/moby/spdystream from v0.5.0 to v0.5.1

Kubernetes-commit: 02b979213695b4e3d707ceb5a79095ae7d81b7a0
2026-04-14 21:01:33 +00:00
Davanum Srinivas
072ab7a0e0 Update github.com/moby/spdystream from v0.5.0 to v0.5.1
Kubernetes-commit: 7e9c2c8eef26f99aa2f94d8e09d6d32de86c7769

Kubernetes-commit: f6209104d25a6c0ea7605a73b9ec4085aacbca03
2026-04-13 13:57:52 -04:00
David Ashpole
84680786c0 update go.opentelemetry.io/otel to v1.41.0
Kubernetes-commit: feda787db4c9ebb53621afb83d0e486b39a14e76
2026-04-13 14:23:49 +00:00
Kubernetes Publisher
8144b746a4 Merge pull request #138199 from neolit123/1.36-fix-pause-image-drift
pause: fix version drift and enforce full SemVer validation

Kubernetes-commit: 093c91d2264ad9c4b965ad6dd27b3089681b0d73
2026-04-06 19:23:50 +00:00
Lubomir I. Ivanov
1458cb7a54 pause: fix version drift in various files
The latest pause version is 3.10.2 but due to the introduction
of the PATCH level version to the pause image (previously was
only MAJOR.MINOR), various files have remained on an older
version. Either 3.10 or 3.10.1. Our validation with
build/dependencies.yaml ./hack/verify-external-dependencies.sh
did not account for that.

Kubernetes-commit: bc2179d8824f41bce3e25bf563e7164989d094ea
2026-04-03 16:01:49 +02:00
Kubernetes Publisher
82a3c05422 Merge pull request #137906 from aramase/aramase/c/grpc_v1.79.0
update google.golang.org/grpc to v1.79.3

Kubernetes-commit: e00eb8f394b92630827e95d22b9185d72d70d906
2026-03-20 00:11:53 +00:00
Anish Ramasekar
efc77af9a0 update google.golang.org/grpc to v1.79.3
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>

Kubernetes-commit: f5d48853c511a99d3e8a734bce5a7926f7bdfdfb
2026-03-19 11:26:57 -05:00
Yashasvi Misra
87e157cce8 top command documentation enhancement (#136825)
* top command documentation enhancement

* Added FAQ details

Kubernetes-commit: 1132a4e4efd80d50b9ef17e1ec479c2d73979f25
2026-03-19 20:03:52 +00:00
Kubernetes Publisher
3aa1fee938 Merge pull request #137849 from bryantbiggs/deps/update-kube-openapi
deps: Update `kube-openapi` to drop `ginkgo/gomega` indirect deps

Kubernetes-commit: ec68099e62c85901c8d225705d55adfac26cf69d
2026-03-18 21:37:20 +00:00
Kubernetes Publisher
f1a9fe21da Merge pull request #131744 from ArangoGutierrez/dra_describe
Add ResourceSlices field to kubectl describe node

Kubernetes-commit: e7a3b09a0366f348f0e090fad656ffef2f8b8260
2026-03-18 21:37:17 +00:00
Kubernetes Publisher
abf88630f4 Merge pull request #137843 from pacoxu/cobra-v1.10.2
bump spf13/cobra to v1.10.2

Kubernetes-commit: cf09296f9ab90e5a8855105c270fdc57546e94a0
2026-03-18 17:34:27 +00:00
Kubernetes Publisher
5444625a39 Merge pull request #136988 from pedjak/kubectl-explain-extradocs
kubectl explain: render externalDocs from OpenAPI v3 schemas

Kubernetes-commit: 1baff9532430ff2fc94dd888aeff3817923428ac
2026-03-18 17:34:24 +00:00
Bryant Biggs
ea4d065c85 dependencies: bump kube-openapi to drop ginkgo/gomega indirect deps
Bump k8s.io/kube-openapi to pick up kubernetes/kube-openapi#579 which
moved the last ginkgo/gomega tests to stdlib testing and ran go mod
tidy, removing ginkgo/gomega from kube-openapi's go.mod.

This drops ginkgo/gomega as indirect deps from apimachinery. It also
prunes Masterminds/semver, google/pprof, and golang.org/x/tools from
client-go and other staging modules where they were only needed
through kube-openapi's ginkgo/gomega chain.

Contributes to kubernetes/kubernetes#127888

Kubernetes-commit: 56cd74d879f1ba11aadcff95326f17a1cc2c82ef
2026-03-18 09:09:11 -05:00
Paco Xu
559d096a96 bump spf13/cobra to v1.10.2
Kubernetes-commit: a304826799f652da7944937758a177e9f8970ba6
2026-03-18 16:46:23 +08:00
Kubernetes Publisher
e12c2a86e0 Merge pull request #137742 from dims/dsrinivas/issue-137739-drain-timeout
kubectl/drain: widen namespace termination retry timeout

Kubernetes-commit: 23e0d392cebf6eb434de81e5b7a4b2494d5fac53
2026-03-17 14:29:39 +00:00
Davanum Srinivas
e67d906fc9 kubectl/drain: widen namespace termination retry timeout
TestEvictDuringNamespaceTerminating intentionally exercises the retry path
but only allows 10ms of total time. The production loop sleeps, refreshes
state, and retries under that same deadline, so a single retry plus
scheduler jitter is enough to exhaust the budget under -race or on busy
CI workers.

Keep the retry interval small so the test still covers the retry behavior,
but widen the overall timeout so the assertion measures semantics instead
of machine speed.

Tested:
go test -race ./staging/src/k8s.io/kubectl/pkg/drain -run TestEvictDuringNamespaceTerminating -count=100

Kubernetes-commit: 77f8d7c2a9571dd9a76ee1be8b234a4dddd2ad35
2026-03-14 10:11:26 -04:00
Kubernetes Publisher
3b3daf56ef Merge pull request #137683 from ndixita/ippr-kubectl
Bug fix - consider status resources when computing total resources

Kubernetes-commit: cf291323c2d614dd1a66837bed853c3967449b16
2026-03-17 14:29:36 +00:00
Kubernetes Publisher
be18aaf83e Merge pull request #137706 from scaliby/extract-resource-under-describe
Extract resource under describe to a separate variable

Kubernetes-commit: 2fd6c4765634e7cc6ca7a24b61381bd779b5f9d3
2026-03-17 14:29:34 +00:00
Kubernetes Publisher
d449ccb37a Merge pull request #137298 from dims/dsri/cri-streaming-option-a-hardcut
cri streaming option a hardcut - add new staging repositories `streaming` and `cri-streaming`

Kubernetes-commit: 2bd6c7fe3cb8663804dc6e7672ff01aeebc97274
2026-03-17 14:29:23 +00:00
Konrad Kaim
0baa87b5bf feat: extract resource under describe to a separate variable
Kubernetes-commit: 93755d411b324db8f1f2b35e8132dc7f6330d35a
2026-03-13 09:03:33 +00:00
Kubernetes Publisher
0f1984aa09 Merge pull request #137470 from brianpursley/fix-wait-panic
Check condition cast to avoid potential panic in kubectl wait

Kubernetes-commit: 4221620945b1f1f73f651c7936456baffcf0327f
2026-03-13 05:41:55 +00:00
ndixita
4765ab4034 Setting UseStatusResources when fetching total pod requests and limits
Kubernetes-commit: 97f00d18eebca2ee3f69531db3142177b981f240
2026-03-12 22:32:43 +00:00
Peter Engelbert
cce0d1aef0 Add credential pluginkubectl kuberc set options (#137300)
* Add <...> kuberc set --section=credentialplugin

The requirement that the `--command` option be provided is no longer
valid; a solution will need to be found.

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Remove required mark on `--command` flag

Move the validation logic to the Validate() function

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Remove requirement for `--command`

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Add cmd test cases for kuberc

- Verify all error messages added/changed by this PR
- Verify changes are effected by at least one valid `kubectl kuberc
  set` invocation with --section=credentialplugin

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Add unit tests for --section=credentialplugin

Additionally:
- Update allowlist-entry validation logic to check for empty string in
  value of k/v pairs
- Update kuberc cmd test with this case as well

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Address linter complaints

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Update staging/src/k8s.io/kubectl/pkg/cmd/kuberc/set.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Add two new test cases

Additionally:
- update error message when policy is invalid
- use utilerrors.NewAggregate instead of custom code
- add --section=credentialplugin example to cli help
- fix copypasted doc comments
- use more descriptive variable names in for loops
- avoid confusion due to variable shadowing
- fix capitalization typo
- check both validate and run errors in credentialplugin tests

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

* Improve cli help for policy flag

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

---------

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Co-authored-by: Maciej Szulik <soltysh@gmail.com>

Kubernetes-commit: b4220f8b08949c115258abed0398512bf54ffc48
2026-03-12 13:19:41 -04:00
Kubernetes Publisher
9830f40c5e Merge pull request #136792 from rata/userns-goes-ga
feature: Migrate UserNamespacesSupport to GA

Kubernetes-commit: f7f694e5e066149a41a7f94394f84977fc6d0ea6
2026-03-12 21:56:25 +00:00
Kubernetes Publisher
6651a5703f Merge pull request #137145 from mark-liu/kubectl/describe-events-cardinality
Skip events for multi-object kubectl describe

Kubernetes-commit: a7cbc9054b4526d84a079261e648a9c004d5710c
2026-03-12 21:56:23 +00:00
Kubernetes Publisher
24fc121a00 Merge pull request #137591 from pacoxu/kubeadm-etcd-version
kubectl: only print default cotnainer if there are multi containers

Kubernetes-commit: 9cfdbc0d6ecfaaab403c8ce34d2967751519af12
2026-03-12 19:41:53 +00:00
Kubernetes Publisher
508904fd59 Merge pull request #137495 from pohly/klog-update
dependencies: klog v2.140.0

Kubernetes-commit: 9d0495ec93f7942b9fd6482df79820376a447eee
2026-03-10 17:45:15 +00:00
Antoni Zawodny
21c691a386 Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>

Kubernetes-commit: 3f094dc228318b89f1fef313543b960e35ca6e3e
2026-03-10 05:43:54 +00:00
Paco Xu
7ee58d717a kubectl: only print default cotnainer if there are multi containers
Kubernetes-commit: ec58d1865dfb4bf4cd7fc66225a84085469aeeed
2026-03-10 13:08:31 +08:00
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
Kubernetes Publisher
8ff045b4dc Merge pull request #136945 from ardaguclu/fix-kubectl-scale
Reflect expected replica count to the output of kubectl scale

Kubernetes-commit: 63d25f42db76f5b198ad289da9c24eb8ce9e2492
2026-03-09 17:32:21 +00:00
Kubernetes Publisher
4a625c4daf Merge pull request #137537 from Mujib-Ahasan/add-suggestfor
kubectl: improve command suggestions for describe and get

Kubernetes-commit: 889a2bb795f8a191d52d49baa4453e62033c57a1
2026-03-09 17:32:20 +00:00
Kubernetes Publisher
99e8158723 Merge pull request #137497 from atombrella/feature/modernize_activate_forvar
Lint: Activate modernize/forvar rule in golangci-lint.

Kubernetes-commit: 090693bd79c405df9122179f5e399adf77b8c023
2026-03-09 13:41:13 +00:00
Mujib Ahasan
c2d82b2690 kubectl: add additional command suggestFor for describe and get
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>

Kubernetes-commit: 3cd3f378610f0e56d75fdeae23a8141cc8934059
2026-03-08 02:49:37 +05:30
Kubernetes Publisher
4a921512ae Merge pull request #137476 from brianpursley/wait-context
Use context in kubectl wait and kubectl logs

Kubernetes-commit: 644e26dc559b6cc90f09ef6474a0050b4808cea7
2026-03-06 21:34:21 +00:00
Kubernetes Publisher
6a4c601745 Merge pull request #137399 from soltysh/find_container_cleanup
De-ducplicate and clean logic in FindOrDefaultContainerByName

Kubernetes-commit: 997908a59109536ad56c5cf997aa87507de48309
2026-03-06 21:34:19 +00:00
Patrick Ohly
35d4436f39 dependencies: klog v2.140.0
klog hasn't been updated in Kubernetes for a few releases. Several
enhancements have accumulated that are worth having.

Kubernetes-commit: 56e0565c113107bdea398b075aba5bdef43489ed
2026-03-06 17:43:11 +01:00
Kubernetes Publisher
13f3f11a3c Merge pull request #137456 from liggitt/go126
Update go.mod to go 1.26, fix 1.26 vet errors

Kubernetes-commit: 800a58b7c515b3d5e2677f6af37f9ece186b67c0
2026-03-06 09:28:33 +00:00
Brian Pursley
6360299e8c Use provided context in RunLogsContext
Kubernetes-commit: 7a3c7ebcfd47b8f96fb591c37a4f633581290de6
2026-03-05 20:12:01 -05:00
Brian Pursley
23bb2d4ace Use context when waiting for conditions
Kubernetes-commit: ede65f357b5974b9ea402e611952f4a15816fdec
2026-03-05 20:39:24 -05:00
Brian Pursley
b7be88fba8 Check wait condition type cast to avoid potential panic
Kubernetes-commit: 37257404a56bfe609b43d9969933a2d9d478a5d7
2026-03-05 18:41:52 -05:00
Mads Jensen
3a2bf51acc Lint: Activate modernize/forvar rule in golangci-lint.
Kubernetes-commit: dd32d7c324b97d259b99c1464802d9e3ca706a94
2026-03-05 00:11:40 +01:00
Maciej Szulik
23ac98253b De-ducplicate and clean logic in FindOrDefaultContainerByName
Signed-off-by: Maciej Szulik <soltysh@gmail.com>

Kubernetes-commit: bb744ec97bd03a2115d45578468e796a557536b9
2026-03-04 11:44:25 +01:00
Davanum Srinivas
30e6509a72 staging: extract CRI streaming modules with client-go compatibility
Extract streaming code into dedicated staging modules while keeping stable
compatibility APIs for external client-go consumers.

This commit:
- adds `k8s.io/cri-streaming` for CRI exec/attach/portforward server code
- adds `k8s.io/streaming` as the canonical home for shared transport
  primitives (`httpstream`, `spdy`, `wsstream`, runtime helpers)
- switches in-tree transport consumers to `k8s.io/streaming`
- removes in-tree kubelet CRI streaming package
- preserves NO_PROXY/no_proxy CIDR handling in extracted SPDY proxier logic
- adds deprecated `k8s.io/apimachinery/pkg/util/httpstream` compatibility
  wrappers (`httpstream`, `spdy`, `wsstream`) backed by `k8s.io/streaming`
- restores exported client-go SPDY/portforward API signatures to
  apimachinery `httpstream` types for downstream compatibility
- adds streaming-native client-go adapters/constructors so in-tree callers
  can use `k8s.io/streaming` without changing external compatibility APIs
- deduplicates SPDY-over-websocket dial negotiation shared by compat and
  streaming tunneling dialers
- logs dropped unknown stream types in `RemoveStreams` adapter fallbacks to
  improve compatibility-path debuggability
- adds integration coverage for the streaming-upgrader-to-client-go-compat
  adapter path against a real cri-streaming exec endpoint
- clarifies kubectl streaming import aliasing to avoid `httpstream` package
  ambiguity
- updates tests, import restrictions, publishing metadata, and vendor/module
  metadata for the new staging modules

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 1ee1ff97fb7f9755a44d29bee0c80d2ccbed68dc
2026-02-28 19:40:07 -05:00
Mark Liu
b902e43892 Skip events for multi-object kubectl describe
Default ShowEvents=false when describing multiple objects and
the user has not explicitly set --show-events. Single-object
describe unchanged. Applied in both Run() and
DescribeMatchingResources() using a value copy of
DescriberSettings.

Signed-off-by: Mark Liu <mark@prove.com.au>

Kubernetes-commit: 20696e1f896b4fb013248fdb919a55e6eea75eef
2026-02-20 08:45:54 +11:00
Jordan Liggitt
2c7989e5e7 Fix vet error
Kubernetes-commit: 45900a1debee388738f299c0a001ed01e8b25208
2026-02-17 16:42:55 -05:00
Jordan Liggitt
3a992deb3c Bump to go 1.26
Kubernetes-commit: f291ae40b03afaaf49cca43b650bfbd05f4babee
2026-02-17 16:05:07 -05:00
Kubernetes Publisher
543813cc32 Merge pull request #137451 from dims/update-google-protobuf-deadcode-fix
Update google.golang.org/protobuf to v1.36.12-0.20260120151049-f2248ac996af to prevent file size explosion in go 1.26

Kubernetes-commit: 77c013637cb40e1b5d2b26664dc7b297f1ff2693
2026-03-05 21:29:12 +00:00
Davanum Srinivas
37a7831953 Update google.golang.org/protobuf to v1.36.12-0.20260120151049-f2248ac996af
Pins google.golang.org/protobuf to HEAD commit f2248ac996afc39b3df0777cdcc269f6ade50b07
(v1.36.12-0.20260120151049-f2248ac996af) which includes fixes for dead code
elimination issues surfaced by Go 1.26's reflect changes.

Xref: https://github.com/golang/protobuf/issues/1704
Xref: https://github.com/kubernetes/kubernetes/issues/137445
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: c8826e0d235fde75d02643bd700179ed79897ad6
2026-03-05 09:36:13 -05:00