Restructure naming of resource resize restart policy - generated files

This commit is contained in:
vinay kulkarni 2023-02-28 08:13:36 +00:00
parent 8b23497ae7
commit c5130fb0d6
68 changed files with 1149 additions and 1149 deletions

View File

@ -4941,20 +4941,20 @@
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"description": "ContainerResizePolicy represents resource resize policy for the container.",
"properties": {
"policy": {
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"resourceName": {
"description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
},
"resourceName": {
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"restartPolicy": {
"description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
"restartPolicy"
],
"type": "object"
},

View File

@ -1306,22 +1306,22 @@
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"description": "ContainerResizePolicy represents resource resize policy for the container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
},
"restartPolicy": {
"default": "",
"description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
"restartPolicy"
],
"type": "object"
},

View File

@ -1910,22 +1910,22 @@
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"description": "ContainerResizePolicy represents resource resize policy for the container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
},
"restartPolicy": {
"default": "",
"description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
"restartPolicy"
],
"type": "object"
},

View File

@ -1201,22 +1201,22 @@
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"description": "ContainerResizePolicy represents resource resize policy for the container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
},
"restartPolicy": {
"default": "",
"description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
"restartPolicy"
],
"type": "object"
},

View File

@ -3093,7 +3093,7 @@ func Convert_core_ContainerPort_To_v1_ContainerPort(in *core.ContainerPort, out
func autoConvert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy(in *v1.ContainerResizePolicy, out *core.ContainerResizePolicy, s conversion.Scope) error {
out.ResourceName = core.ResourceName(in.ResourceName)
out.Policy = core.ResourceResizePolicy(in.Policy)
out.RestartPolicy = core.ResourceResizeRestartPolicy(in.RestartPolicy)
return nil
}
@ -3104,7 +3104,7 @@ func Convert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy(in *v1.Conta
func autoConvert_core_ContainerResizePolicy_To_v1_ContainerResizePolicy(in *core.ContainerResizePolicy, out *v1.ContainerResizePolicy, s conversion.Scope) error {
out.ResourceName = v1.ResourceName(in.ResourceName)
out.Policy = v1.ResourceResizePolicy(in.Policy)
out.RestartPolicy = v1.ResourceResizeRestartPolicy(in.RestartPolicy)
return nil
}

View File

@ -17400,27 +17400,27 @@ func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ContainerResizePolicy represents resource resize policy for a single container.",
Description: "ContainerResizePolicy represents resource resize policy for the container.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"resourceName": {
SchemaProps: spec.SchemaProps{
Description: "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
Description: "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"policy": {
"restartPolicy": {
SchemaProps: spec.SchemaProps{
Description: "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
Description: "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"resourceName", "policy"},
Required: []string{"resourceName", "restartPolicy"},
},
},
}

File diff suppressed because it is too large Load Diff

View File

@ -868,15 +868,15 @@ message ContainerPort {
optional string hostIP = 5;
}
// ContainerResizePolicy represents resource resize policy for a single container.
// ContainerResizePolicy represents resource resize policy for the container.
message ContainerResizePolicy {
// Name of the resource type to which this resource resize policy applies.
// Name of the resource to which this resource resize policy applies.
// Supported values: cpu, memory.
optional string resourceName = 1;
// Resource resize policy applicable to the specified resource name.
// Restart policy to apply when specified resource is resized.
// If not specified, it defaults to RestartNotRequired.
optional string policy = 2;
optional string restartPolicy = 2;
}
// ContainerState holds a possible state of container.

View File

@ -390,9 +390,9 @@ func (ContainerPort) SwaggerDoc() map[string]string {
}
var map_ContainerResizePolicy = map[string]string{
"": "ContainerResizePolicy represents resource resize policy for a single container.",
"resourceName": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"policy": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"": "ContainerResizePolicy represents resource resize policy for the container.",
"resourceName": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.",
"restartPolicy": "Restart policy to apply when specified resource is resized. If not specified, it defaults to RestartNotRequired.",
}
func (ContainerResizePolicy) SwaggerDoc() map[string]string {

View File

@ -554,7 +554,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -837,7 +837,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1120,7 +1120,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -321,8 +321,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -527,8 +527,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -735,8 +735,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -556,7 +556,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -839,7 +839,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1122,7 +1122,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -321,8 +321,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -527,8 +527,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -735,8 +735,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -323,8 +323,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -529,8 +529,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -737,8 +737,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -321,8 +321,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -527,8 +527,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -735,8 +735,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -554,7 +554,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -837,7 +837,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1120,7 +1120,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -321,8 +321,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -527,8 +527,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -735,8 +735,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -556,7 +556,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -839,7 +839,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1122,7 +1122,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -321,8 +321,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -527,8 +527,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -735,8 +735,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -628,7 +628,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -911,7 +911,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1194,7 +1194,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -365,8 +365,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -571,8 +571,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -779,8 +779,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -579,7 +579,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -862,7 +862,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1145,7 +1145,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -329,8 +329,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -535,8 +535,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -743,8 +743,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -628,7 +628,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -911,7 +911,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1194,7 +1194,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -365,8 +365,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -571,8 +571,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -779,8 +779,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -496,7 +496,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -779,7 +779,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1062,7 +1062,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -269,8 +269,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -475,8 +475,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -683,8 +683,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -539,7 +539,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -822,7 +822,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1105,7 +1105,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -302,8 +302,8 @@ template:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -508,8 +508,8 @@ template:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -716,8 +716,8 @@ template:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -545,7 +545,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -828,7 +828,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1111,7 +1111,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -307,8 +307,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -513,8 +513,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -721,8 +721,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -554,7 +554,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -837,7 +837,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1120,7 +1120,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -555,7 +555,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -838,7 +838,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1121,7 +1121,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -323,8 +323,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -529,8 +529,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -737,8 +737,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -556,7 +556,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -839,7 +839,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [
@ -1122,7 +1122,7 @@
"resizePolicy": [
{
"resourceName": "resourceNameValue",
"policy": "policyValue"
"restartPolicy": "restartPolicyValue"
}
],
"volumeMounts": [

View File

@ -313,8 +313,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -519,8 +519,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue
@ -727,8 +727,8 @@ spec:
terminationGracePeriodSeconds: 7
timeoutSeconds: 3
resizePolicy:
- policy: policyValue
resourceName: resourceNameValue
- resourceName: resourceNameValue
restartPolicy: restartPolicyValue
resources:
claims:
- name: nameValue

View File

@ -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
}

View File

@ -4237,11 +4237,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: ""