diff --git a/applyconfigurations/core/v1/containerresizepolicy.go b/applyconfigurations/core/v1/containerresizepolicy.go index d504a79d..bbbcbc9f 100644 --- a/applyconfigurations/core/v1/containerresizepolicy.go +++ b/applyconfigurations/core/v1/containerresizepolicy.go @@ -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 } diff --git a/applyconfigurations/internal/internal.go b/applyconfigurations/internal/internal.go index e98d2995..170dad8a 100644 --- a/applyconfigurations/internal/internal.go +++ b/applyconfigurations/internal/internal.go @@ -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: ""