From 21b1828b057b7755b3371fa9c7b0579f145b0cc4 Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Fri, 31 May 2024 13:30:45 -0400 Subject: [PATCH] api: add user namespaces field to NodeRuntimeHandlerFeatures Signed-off-by: Sohan Kunkerkar Kubernetes-commit: 86240aaca17e0bfbdbaec78bf2604f8623c73615 --- .../core/v1/noderuntimehandlerfeatures.go | 9 +++++++++ applyconfigurations/internal/internal.go | 3 +++ 2 files changed, 12 insertions(+) diff --git a/applyconfigurations/core/v1/noderuntimehandlerfeatures.go b/applyconfigurations/core/v1/noderuntimehandlerfeatures.go index d6273ceb..a295b609 100644 --- a/applyconfigurations/core/v1/noderuntimehandlerfeatures.go +++ b/applyconfigurations/core/v1/noderuntimehandlerfeatures.go @@ -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 +} diff --git a/applyconfigurations/internal/internal.go b/applyconfigurations/internal/internal.go index 8c1bcf67..04563c1b 100644 --- a/applyconfigurations/internal/internal.go +++ b/applyconfigurations/internal/internal.go @@ -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: