api: add user namespaces field to NodeRuntimeHandlerFeatures

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>

Kubernetes-commit: 86240aaca17e0bfbdbaec78bf2604f8623c73615
This commit is contained in:
Peter Hunt 2024-05-31 13:30:45 -04:00 committed by Kubernetes Publisher
parent 0724a9928f
commit 21b1828b05
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,7 @@ package v1
// with apply. // with apply.
type NodeRuntimeHandlerFeaturesApplyConfiguration struct { type NodeRuntimeHandlerFeaturesApplyConfiguration struct {
RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty"` RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty"`
UserNamespaces *bool `json:"userNamespaces,omitempty"`
} }
// NodeRuntimeHandlerFeaturesApplyConfiguration constructs a declarative configuration of the NodeRuntimeHandlerFeatures type for use with // NodeRuntimeHandlerFeaturesApplyConfiguration constructs a declarative configuration of the NodeRuntimeHandlerFeatures type for use with
@ -37,3 +38,11 @@ func (b *NodeRuntimeHandlerFeaturesApplyConfiguration) WithRecursiveReadOnlyMoun
b.RecursiveReadOnlyMounts = &value b.RecursiveReadOnlyMounts = &value
return b return b
} }
// WithUserNamespaces sets the UserNamespaces 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 UserNamespaces field is set to the value of the last call.
func (b *NodeRuntimeHandlerFeaturesApplyConfiguration) WithUserNamespaces(value bool) *NodeRuntimeHandlerFeaturesApplyConfiguration {
b.UserNamespaces = &value
return b
}

View File

@ -6119,6 +6119,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: recursiveReadOnlyMounts - name: recursiveReadOnlyMounts
type: type:
scalar: boolean scalar: boolean
- name: userNamespaces
type:
scalar: boolean
- name: io.k8s.api.core.v1.NodeSelector - name: io.k8s.api.core.v1.NodeSelector
map: map:
fields: fields: