From 2932f6b3c111eab27f512dc9052f6fc3bdff9162 Mon Sep 17 00:00:00 2001 From: vinay kulkarni Date: Tue, 28 Feb 2023 08:13:36 +0000 Subject: [PATCH] Restructure naming of resource resize restart policy - generated files Kubernetes-commit: c5130fb0d6337436c405426468de47ae96717243 --- applyconfigurations/core/v1/containerresizepolicy.go | 12 ++++++------ applyconfigurations/internal/internal.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/applyconfigurations/core/v1/containerresizepolicy.go b/applyconfigurations/core/v1/containerresizepolicy.go index d504a79d8a..bbbcbc9f13 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 e98d299582..170dad8a43 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: ""