mirror of
https://github.com/kubernetes/client-go.git
synced 2026-07-28 10:04:46 +00:00
Run 'make update' to generate code for API changes
Kubernetes-commit: 5e6d452cf61b5da13706cbbc7b3e2f522db5b847
This commit is contained in:
committed by
Kubernetes Publisher
parent
a3f2349425
commit
fa011ae439
47
applyconfigurations/core/v1/nodepodpreemptionpolicy.go
Normal file
47
applyconfigurations/core/v1/nodepodpreemptionpolicy.go
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
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
|
||||
|
||||
// NodePodPreemptionPolicyApplyConfiguration represents a declarative configuration of the NodePodPreemptionPolicy type for use
|
||||
// with apply.
|
||||
//
|
||||
// NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.
|
||||
type NodePodPreemptionPolicyApplyConfiguration struct {
|
||||
// DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators)
|
||||
// that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node.
|
||||
// If this list is non-empty, resize-induced preemption is disabled on this node.
|
||||
// This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.
|
||||
DisableResizePreemption []string `json:"disableResizePreemption,omitempty"`
|
||||
}
|
||||
|
||||
// NodePodPreemptionPolicyApplyConfiguration constructs a declarative configuration of the NodePodPreemptionPolicy type for use with
|
||||
// apply.
|
||||
func NodePodPreemptionPolicy() *NodePodPreemptionPolicyApplyConfiguration {
|
||||
return &NodePodPreemptionPolicyApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithDisableResizePreemption adds the given value to the DisableResizePreemption field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the DisableResizePreemption field.
|
||||
func (b *NodePodPreemptionPolicyApplyConfiguration) WithDisableResizePreemption(values ...string) *NodePodPreemptionPolicyApplyConfiguration {
|
||||
for i := range values {
|
||||
b.DisableResizePreemption = append(b.DisableResizePreemption, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -41,6 +41,9 @@ type NodeSpecApplyConfiguration struct {
|
||||
// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
|
||||
// see: https://issues.k8s.io/61966
|
||||
DoNotUseExternalID *string `json:"externalID,omitempty"`
|
||||
// PodPreemptionPolicy controls the node-level preemption behaviors for pods on this node.
|
||||
// This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.
|
||||
PodPreemptionPolicy *NodePodPreemptionPolicyApplyConfiguration `json:"podPreemptionPolicy,omitempty"`
|
||||
}
|
||||
|
||||
// NodeSpecApplyConfiguration constructs a declarative configuration of the NodeSpec type for use with
|
||||
@@ -111,3 +114,11 @@ func (b *NodeSpecApplyConfiguration) WithDoNotUseExternalID(value string) *NodeS
|
||||
b.DoNotUseExternalID = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPodPreemptionPolicy sets the PodPreemptionPolicy 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 PodPreemptionPolicy field is set to the value of the last call.
|
||||
func (b *NodeSpecApplyConfiguration) WithPodPreemptionPolicy(value *NodePodPreemptionPolicyApplyConfiguration) *NodeSpecApplyConfiguration {
|
||||
b.PodPreemptionPolicy = value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -6145,6 +6145,15 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: supplementalGroupsPolicy
|
||||
type:
|
||||
scalar: boolean
|
||||
- name: io.k8s.api.core.v1.NodePodPreemptionPolicy
|
||||
map:
|
||||
fields:
|
||||
- name: disableResizePreemption
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: associative
|
||||
- name: io.k8s.api.core.v1.NodeRuntimeHandler
|
||||
map:
|
||||
fields:
|
||||
@@ -6225,6 +6234,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: associative
|
||||
- name: podPreemptionPolicy
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.NodePodPreemptionPolicy
|
||||
- name: providerID
|
||||
type:
|
||||
scalar: string
|
||||
|
||||
@@ -808,6 +808,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
return &applyconfigurationscorev1.NodeDaemonEndpointsApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeFeatures"):
|
||||
return &applyconfigurationscorev1.NodeFeaturesApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodePodPreemptionPolicy"):
|
||||
return &applyconfigurationscorev1.NodePodPreemptionPolicyApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeRuntimeHandler"):
|
||||
return &applyconfigurationscorev1.NodeRuntimeHandlerApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeRuntimeHandlerFeatures"):
|
||||
|
||||
Reference in New Issue
Block a user