mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-30 22:35:10 +00:00
KEP-3619: API: add NodeFeatures.SupplementalGroupsPolicy in NodeStatus
KEP-3619: don't capitalize comment in K8S API KEP-3619: fix typos and grammatical ones in K8s API KEP-3619: rephrase NodeFeatures, NodeHandlerFeatures in K8s API Kubernetes-commit: 5d75660dc11ff443ebab2551aed8e56a54cc218d
This commit is contained in:
parent
59ef8e11c6
commit
1ea671aac4
39
applyconfigurations/core/v1/nodefeatures.go
Normal file
39
applyconfigurations/core/v1/nodefeatures.go
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
// NodeFeaturesApplyConfiguration represents a declarative configuration of the NodeFeatures type for use
|
||||
// with apply.
|
||||
type NodeFeaturesApplyConfiguration struct {
|
||||
SupplementalGroupsPolicy *bool `json:"supplementalGroupsPolicy,omitempty"`
|
||||
}
|
||||
|
||||
// NodeFeaturesApplyConfiguration constructs a declarative configuration of the NodeFeatures type for use with
|
||||
// apply.
|
||||
func NodeFeatures() *NodeFeaturesApplyConfiguration {
|
||||
return &NodeFeaturesApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithSupplementalGroupsPolicy sets the SupplementalGroupsPolicy 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 SupplementalGroupsPolicy field is set to the value of the last call.
|
||||
func (b *NodeFeaturesApplyConfiguration) WithSupplementalGroupsPolicy(value bool) *NodeFeaturesApplyConfiguration {
|
||||
b.SupplementalGroupsPolicy = &value
|
||||
return b
|
||||
}
|
@ -37,6 +37,7 @@ type NodeStatusApplyConfiguration struct {
|
||||
VolumesAttached []AttachedVolumeApplyConfiguration `json:"volumesAttached,omitempty"`
|
||||
Config *NodeConfigStatusApplyConfiguration `json:"config,omitempty"`
|
||||
RuntimeHandlers []NodeRuntimeHandlerApplyConfiguration `json:"runtimeHandlers,omitempty"`
|
||||
Features *NodeFeaturesApplyConfiguration `json:"features,omitempty"`
|
||||
}
|
||||
|
||||
// NodeStatusApplyConfiguration constructs a declarative configuration of the NodeStatus type for use with
|
||||
@ -167,3 +168,11 @@ func (b *NodeStatusApplyConfiguration) WithRuntimeHandlers(values ...*NodeRuntim
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithFeatures sets the Features 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 Features field is set to the value of the last call.
|
||||
func (b *NodeStatusApplyConfiguration) WithFeatures(value *NodeFeaturesApplyConfiguration) *NodeStatusApplyConfiguration {
|
||||
b.Features = value
|
||||
return b
|
||||
}
|
||||
|
@ -6103,6 +6103,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.DaemonEndpoint
|
||||
default: {}
|
||||
- name: io.k8s.api.core.v1.NodeFeatures
|
||||
map:
|
||||
fields:
|
||||
- name: supplementalGroupsPolicy
|
||||
type:
|
||||
scalar: boolean
|
||||
- name: io.k8s.api.core.v1.NodeRuntimeHandler
|
||||
map:
|
||||
fields:
|
||||
@ -6231,6 +6237,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.NodeDaemonEndpoints
|
||||
default: {}
|
||||
- name: features
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.NodeFeatures
|
||||
- name: images
|
||||
type:
|
||||
list:
|
||||
|
@ -806,6 +806,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
return &applyconfigurationscorev1.NodeConfigStatusApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeDaemonEndpoints"):
|
||||
return &applyconfigurationscorev1.NodeDaemonEndpointsApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeFeatures"):
|
||||
return &applyconfigurationscorev1.NodeFeaturesApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeRuntimeHandler"):
|
||||
return &applyconfigurationscorev1.NodeRuntimeHandlerApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeRuntimeHandlerFeatures"):
|
||||
|
Loading…
Reference in New Issue
Block a user