Merge pull request #134639 from AkihiroSuda/rootless-beta

KEP-2033: promote KubeletInUserNamespace feature to beta (v1.37)

Kubernetes-commit: 2a5a1c06c4bb33424a8253d876a094cc01957b07
This commit is contained in:
Kubernetes Publisher
2026-07-24 13:13:51 +00:00
4 changed files with 16 additions and 3 deletions

View File

@@ -49,6 +49,8 @@ type NodeSystemInfoApplyConfiguration struct {
Architecture *string `json:"architecture,omitempty"`
// Swap Info reported by the node.
Swap *NodeSwapStatusApplyConfiguration `json:"swap,omitempty"`
// Whether the node is running in a user namespace.
RunningInUserNamespace *bool `json:"runningInUserNamespace,omitempty"`
}
// NodeSystemInfoApplyConfiguration constructs a declarative configuration of the NodeSystemInfo type for use with
@@ -144,3 +146,11 @@ func (b *NodeSystemInfoApplyConfiguration) WithSwap(value *NodeSwapStatusApplyCo
b.Swap = value
return b
}
// WithRunningInUserNamespace sets the RunningInUserNamespace field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the RunningInUserNamespace field is set to the value of the last call.
func (b *NodeSystemInfoApplyConfiguration) WithRunningInUserNamespace(value bool) *NodeSystemInfoApplyConfiguration {
b.RunningInUserNamespace = &value
return b
}

View File

@@ -6549,6 +6549,9 @@ var schemaYAML = typed.YAMLObject(`types:
type:
scalar: string
default: ""
- name: runningInUserNamespace
type:
scalar: boolean
- name: swap
type:
namedType: io.k8s.api.core.v1.NodeSwapStatus

2
go.mod
View File

@@ -23,7 +23,7 @@ require (
golang.org/x/time v0.15.0
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
gopkg.in/evanphx/json-patch.v4 v4.13.0
k8s.io/api v0.0.0-20260724122149-51815c0da5bf
k8s.io/api v0.0.0-20260724135943-6caf352f8c89
k8s.io/apimachinery v0.0.0-20260723070748-eed236ceee2c
k8s.io/klog/v2 v2.140.0
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad

4
go.sum
View File

@@ -118,8 +118,8 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.0.0-20260724122149-51815c0da5bf h1:M1Ux0L3tcxLI82msH0YK+Ockoa4AUma8WFAi/qBqhZA=
k8s.io/api v0.0.0-20260724122149-51815c0da5bf/go.mod h1:Iqm3a/mC3lz0g+pVYjXzMP1oEPkBmyR1SvmXwIs8Z88=
k8s.io/api v0.0.0-20260724135943-6caf352f8c89 h1:Cwfg97RxOCYqthHt1BRMYcD3esLBQPZyhCFYBe4fYNs=
k8s.io/api v0.0.0-20260724135943-6caf352f8c89/go.mod h1:Iqm3a/mC3lz0g+pVYjXzMP1oEPkBmyR1SvmXwIs8Z88=
k8s.io/apimachinery v0.0.0-20260723070748-eed236ceee2c h1:CQZ6GUANyGzQrW173ZUac2gb61exEKDV4Lmd2X9OyEw=
k8s.io/apimachinery v0.0.0-20260723070748-eed236ceee2c/go.mod h1:kYeEyQP0xSlaQFMYZd/nFh99hmFLeHOkuvjLhgxgIKw=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=