Restructure naming of resource resize restart policy - generated files

Kubernetes-commit: c5130fb0d6337436c405426468de47ae96717243
This commit is contained in:
vinay kulkarni 2023-02-28 08:13:36 +00:00 committed by Kubernetes Publisher
parent 9ff2627505
commit 2932f6b3c1
2 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ import (
// with apply. // with apply.
type ContainerResizePolicyApplyConfiguration struct { type ContainerResizePolicyApplyConfiguration struct {
ResourceName *v1.ResourceName `json:"resourceName,omitempty"` ResourceName *v1.ResourceName `json:"resourceName,omitempty"`
Policy *v1.ResourceResizePolicy `json:"policy,omitempty"` RestartPolicy *v1.ResourceResizeRestartPolicy `json:"restartPolicy,omitempty"`
} }
// ContainerResizePolicyApplyConfiguration constructs an declarative configuration of the ContainerResizePolicy type for use with // 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 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. // 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. // If called multiple times, the RestartPolicy field is set to the value of the last call.
func (b *ContainerResizePolicyApplyConfiguration) WithPolicy(value v1.ResourceResizePolicy) *ContainerResizePolicyApplyConfiguration { func (b *ContainerResizePolicyApplyConfiguration) WithRestartPolicy(value v1.ResourceResizeRestartPolicy) *ContainerResizePolicyApplyConfiguration {
b.Policy = &value b.RestartPolicy = &value
return b return b
} }

View File

@ -4281,11 +4281,11 @@ var schemaYAML = typed.YAMLObject(`types:
- name: io.k8s.api.core.v1.ContainerResizePolicy - name: io.k8s.api.core.v1.ContainerResizePolicy
map: map:
fields: fields:
- name: policy - name: resourceName
type: type:
scalar: string scalar: string
default: "" default: ""
- name: resourceName - name: restartPolicy
type: type:
scalar: string scalar: string
default: "" default: ""