mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 15:39:39 +00:00
Restructure naming of resource resize restart policy - generated files
Kubernetes-commit: c5130fb0d6337436c405426468de47ae96717243
This commit is contained in:
parent
9ff2627505
commit
2932f6b3c1
@ -25,8 +25,8 @@ import (
|
||||
// ContainerResizePolicyApplyConfiguration represents an declarative configuration of the ContainerResizePolicy type for use
|
||||
// with apply.
|
||||
type ContainerResizePolicyApplyConfiguration struct {
|
||||
ResourceName *v1.ResourceName `json:"resourceName,omitempty"`
|
||||
Policy *v1.ResourceResizePolicy `json:"policy,omitempty"`
|
||||
ResourceName *v1.ResourceName `json:"resourceName,omitempty"`
|
||||
RestartPolicy *v1.ResourceResizeRestartPolicy `json:"restartPolicy,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerResizePolicyApplyConfiguration constructs an declarative configuration of the ContainerResizePolicy type for use with
|
||||
@ -43,10 +43,10 @@ func (b *ContainerResizePolicyApplyConfiguration) WithResourceName(value v1.Reso
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPolicy sets the Policy field in the declarative configuration to the given value
|
||||
// WithRestartPolicy sets the RestartPolicy 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 Policy field is set to the value of the last call.
|
||||
func (b *ContainerResizePolicyApplyConfiguration) WithPolicy(value v1.ResourceResizePolicy) *ContainerResizePolicyApplyConfiguration {
|
||||
b.Policy = &value
|
||||
// If called multiple times, the RestartPolicy field is set to the value of the last call.
|
||||
func (b *ContainerResizePolicyApplyConfiguration) WithRestartPolicy(value v1.ResourceResizeRestartPolicy) *ContainerResizePolicyApplyConfiguration {
|
||||
b.RestartPolicy = &value
|
||||
return b
|
||||
}
|
||||
|
@ -4281,11 +4281,11 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: io.k8s.api.core.v1.ContainerResizePolicy
|
||||
map:
|
||||
fields:
|
||||
- name: policy
|
||||
- name: resourceName
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: resourceName
|
||||
- name: restartPolicy
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
|
Loading…
Reference in New Issue
Block a user