mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-23 01:16:15 +00:00
api: add user namespaces field to NodeRuntimeHandlerFeatures
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com> Kubernetes-commit: 86240aaca17e0bfbdbaec78bf2604f8623c73615
This commit is contained in:
parent
0724a9928f
commit
21b1828b05
@ -22,6 +22,7 @@ package v1
|
||||
// with apply.
|
||||
type NodeRuntimeHandlerFeaturesApplyConfiguration struct {
|
||||
RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty"`
|
||||
UserNamespaces *bool `json:"userNamespaces,omitempty"`
|
||||
}
|
||||
|
||||
// NodeRuntimeHandlerFeaturesApplyConfiguration constructs a declarative configuration of the NodeRuntimeHandlerFeatures type for use with
|
||||
@ -37,3 +38,11 @@ func (b *NodeRuntimeHandlerFeaturesApplyConfiguration) WithRecursiveReadOnlyMoun
|
||||
b.RecursiveReadOnlyMounts = &value
|
||||
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
|
||||
}
|
||||
|
@ -6119,6 +6119,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: recursiveReadOnlyMounts
|
||||
type:
|
||||
scalar: boolean
|
||||
- name: userNamespaces
|
||||
type:
|
||||
scalar: boolean
|
||||
- name: io.k8s.api.core.v1.NodeSelector
|
||||
map:
|
||||
fields:
|
||||
|
Loading…
Reference in New Issue
Block a user