Generated files and compat data from API changes
This commit is contained in:
parent
76962b0fa7
commit
3c70be1a12
49
api/openapi-spec/swagger.json
generated
49
api/openapi-spec/swagger.json
generated
@ -4753,6 +4753,14 @@
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.Probe",
|
||||
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
|
||||
@ -4862,6 +4870,24 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerResizePolicy": {
|
||||
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
|
||||
"type": "string"
|
||||
},
|
||||
"resourceName": {
|
||||
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"resourceName",
|
||||
"policy"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerState": {
|
||||
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
|
||||
"properties": {
|
||||
@ -4970,6 +4996,17 @@
|
||||
"description": "Specifies whether the container has passed its readiness probe.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"resources": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
||||
},
|
||||
"resourcesAllocated": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||
},
|
||||
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||
"type": "object"
|
||||
},
|
||||
"restartCount": {
|
||||
"description": "The number of times the container has been restarted.",
|
||||
"format": "int32",
|
||||
@ -5357,6 +5394,14 @@
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.Probe",
|
||||
"description": "Probes are not allowed for ephemeral containers."
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod."
|
||||
@ -7982,6 +8027,10 @@
|
||||
"description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'",
|
||||
"type": "string"
|
||||
},
|
||||
"resize": {
|
||||
"description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
|
||||
"description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod."
|
||||
|
@ -1157,6 +1157,19 @@
|
||||
],
|
||||
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -1292,6 +1305,26 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerResizePolicy": {
|
||||
"description": "ContainerResizePolicy represents resource resize policy for a single 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.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"resourceName",
|
||||
"policy"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerState": {
|
||||
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
|
||||
"properties": {
|
||||
@ -1437,6 +1470,26 @@
|
||||
"description": "Specifies whether the container has passed its readiness probe.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ResourceRequirements"
|
||||
}
|
||||
],
|
||||
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
||||
},
|
||||
"resourcesAllocated": {
|
||||
"additionalProperties": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||
"type": "object"
|
||||
},
|
||||
"restartCount": {
|
||||
"default": 0,
|
||||
"description": "The number of times the container has been restarted.",
|
||||
@ -1954,6 +2007,19 @@
|
||||
],
|
||||
"description": "Probes are not allowed for ephemeral containers."
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -5405,6 +5471,10 @@
|
||||
"description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'",
|
||||
"type": "string"
|
||||
},
|
||||
"resize": {
|
||||
"description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"allOf": [
|
||||
{
|
||||
|
@ -1780,6 +1780,19 @@
|
||||
],
|
||||
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -1896,6 +1909,26 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerResizePolicy": {
|
||||
"description": "ContainerResizePolicy represents resource resize policy for a single 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.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"resourceName",
|
||||
"policy"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.DownwardAPIProjection": {
|
||||
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
|
||||
"properties": {
|
||||
@ -2181,6 +2214,19 @@
|
||||
],
|
||||
"description": "Probes are not allowed for ephemeral containers."
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
|
@ -1071,6 +1071,19 @@
|
||||
],
|
||||
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -1187,6 +1200,26 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ContainerResizePolicy": {
|
||||
"description": "ContainerResizePolicy represents resource resize policy for a single 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.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"resourceName",
|
||||
"policy"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.DownwardAPIProjection": {
|
||||
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
|
||||
"properties": {
|
||||
@ -1472,6 +1505,19 @@
|
||||
],
|
||||
"description": "Probes are not allowed for ephemeral containers."
|
||||
},
|
||||
"resizePolicy": {
|
||||
"description": "Resources resize policy for the container.",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
|
||||
}
|
||||
],
|
||||
"default": {}
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
|
42
pkg/apis/core/v1/zz_generated.conversion.go
generated
42
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -342,6 +342,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.ContainerResizePolicy)(nil), (*core.ContainerResizePolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy(a.(*v1.ContainerResizePolicy), b.(*core.ContainerResizePolicy), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*core.ContainerResizePolicy)(nil), (*v1.ContainerResizePolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_core_ContainerResizePolicy_To_v1_ContainerResizePolicy(a.(*core.ContainerResizePolicy), b.(*v1.ContainerResizePolicy), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.ContainerState)(nil), (*core.ContainerState)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_ContainerState_To_core_ContainerState(a.(*v1.ContainerState), b.(*core.ContainerState), scope)
|
||||
}); err != nil {
|
||||
@ -2975,6 +2985,7 @@ func autoConvert_v1_Container_To_core_Container(in *v1.Container, out *core.Cont
|
||||
if err := Convert_v1_ResourceRequirements_To_core_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||
return err
|
||||
}
|
||||
out.ResizePolicy = *(*[]core.ContainerResizePolicy)(unsafe.Pointer(&in.ResizePolicy))
|
||||
out.VolumeMounts = *(*[]core.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||
out.VolumeDevices = *(*[]core.VolumeDevice)(unsafe.Pointer(&in.VolumeDevices))
|
||||
out.LivenessProbe = (*core.Probe)(unsafe.Pointer(in.LivenessProbe))
|
||||
@ -3008,6 +3019,7 @@ func autoConvert_core_Container_To_v1_Container(in *core.Container, out *v1.Cont
|
||||
if err := Convert_core_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||
return err
|
||||
}
|
||||
out.ResizePolicy = *(*[]v1.ContainerResizePolicy)(unsafe.Pointer(&in.ResizePolicy))
|
||||
out.VolumeMounts = *(*[]v1.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||
out.VolumeDevices = *(*[]v1.VolumeDevice)(unsafe.Pointer(&in.VolumeDevices))
|
||||
out.LivenessProbe = (*v1.Probe)(unsafe.Pointer(in.LivenessProbe))
|
||||
@ -3079,6 +3091,28 @@ func Convert_core_ContainerPort_To_v1_ContainerPort(in *core.ContainerPort, out
|
||||
return autoConvert_core_ContainerPort_To_v1_ContainerPort(in, out, s)
|
||||
}
|
||||
|
||||
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)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy is an autogenerated conversion function.
|
||||
func Convert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy(in *v1.ContainerResizePolicy, out *core.ContainerResizePolicy, s conversion.Scope) error {
|
||||
return autoConvert_v1_ContainerResizePolicy_To_core_ContainerResizePolicy(in, out, s)
|
||||
}
|
||||
|
||||
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)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_core_ContainerResizePolicy_To_v1_ContainerResizePolicy is an autogenerated conversion function.
|
||||
func Convert_core_ContainerResizePolicy_To_v1_ContainerResizePolicy(in *core.ContainerResizePolicy, out *v1.ContainerResizePolicy, s conversion.Scope) error {
|
||||
return autoConvert_core_ContainerResizePolicy_To_v1_ContainerResizePolicy(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_ContainerState_To_core_ContainerState(in *v1.ContainerState, out *core.ContainerState, s conversion.Scope) error {
|
||||
out.Waiting = (*core.ContainerStateWaiting)(unsafe.Pointer(in.Waiting))
|
||||
out.Running = (*core.ContainerStateRunning)(unsafe.Pointer(in.Running))
|
||||
@ -3191,6 +3225,8 @@ func autoConvert_v1_ContainerStatus_To_core_ContainerStatus(in *v1.ContainerStat
|
||||
out.ImageID = in.ImageID
|
||||
out.ContainerID = in.ContainerID
|
||||
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
||||
out.ResourcesAllocated = *(*core.ResourceList)(unsafe.Pointer(&in.ResourcesAllocated))
|
||||
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -3213,6 +3249,8 @@ func autoConvert_core_ContainerStatus_To_v1_ContainerStatus(in *core.ContainerSt
|
||||
out.ImageID = in.ImageID
|
||||
out.ContainerID = in.ContainerID
|
||||
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
||||
out.ResourcesAllocated = *(*v1.ResourceList)(unsafe.Pointer(&in.ResourcesAllocated))
|
||||
out.Resources = (*v1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -3563,6 +3601,7 @@ func autoConvert_v1_EphemeralContainerCommon_To_core_EphemeralContainerCommon(in
|
||||
if err := Convert_v1_ResourceRequirements_To_core_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||
return err
|
||||
}
|
||||
out.ResizePolicy = *(*[]core.ContainerResizePolicy)(unsafe.Pointer(&in.ResizePolicy))
|
||||
out.VolumeMounts = *(*[]core.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||
out.VolumeDevices = *(*[]core.VolumeDevice)(unsafe.Pointer(&in.VolumeDevices))
|
||||
out.LivenessProbe = (*core.Probe)(unsafe.Pointer(in.LivenessProbe))
|
||||
@ -3596,6 +3635,7 @@ func autoConvert_core_EphemeralContainerCommon_To_v1_EphemeralContainerCommon(in
|
||||
if err := Convert_core_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||
return err
|
||||
}
|
||||
out.ResizePolicy = *(*[]v1.ContainerResizePolicy)(unsafe.Pointer(&in.ResizePolicy))
|
||||
out.VolumeMounts = *(*[]v1.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||
out.VolumeDevices = *(*[]v1.VolumeDevice)(unsafe.Pointer(&in.VolumeDevices))
|
||||
out.LivenessProbe = (*v1.Probe)(unsafe.Pointer(in.LivenessProbe))
|
||||
@ -6380,6 +6420,7 @@ func autoConvert_v1_PodStatus_To_core_PodStatus(in *v1.PodStatus, out *core.PodS
|
||||
out.ContainerStatuses = *(*[]core.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses))
|
||||
out.QOSClass = core.PodQOSClass(in.QOSClass)
|
||||
out.EphemeralContainerStatuses = *(*[]core.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
||||
out.Resize = core.PodResizeStatus(in.Resize)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -6396,6 +6437,7 @@ func autoConvert_core_PodStatus_To_v1_PodStatus(in *core.PodStatus, out *v1.PodS
|
||||
out.InitContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses))
|
||||
out.ContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses))
|
||||
out.EphemeralContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
||||
out.Resize = v1.PodResizeStatus(in.Resize)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
52
pkg/apis/core/v1/zz_generated.defaults.go
generated
52
pkg/apis/core/v1/zz_generated.defaults.go
generated
@ -48,6 +48,7 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
|
||||
scheme.AddTypeDefaultingFunc(&v1.PersistentVolumeList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeList(obj.(*v1.PersistentVolumeList)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.Pod{}, func(obj interface{}) { SetObjectDefaults_Pod(obj.(*v1.Pod)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.PodList{}, func(obj interface{}) { SetObjectDefaults_PodList(obj.(*v1.PodList)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.PodStatusResult{}, func(obj interface{}) { SetObjectDefaults_PodStatusResult(obj.(*v1.PodStatusResult)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.PodTemplate{}, func(obj interface{}) { SetObjectDefaults_PodTemplate(obj.(*v1.PodTemplate)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.PodTemplateList{}, func(obj interface{}) { SetObjectDefaults_PodTemplateList(obj.(*v1.PodTemplateList)) })
|
||||
scheme.AddTypeDefaultingFunc(&v1.ReplicationController{}, func(obj interface{}) { SetObjectDefaults_ReplicationController(obj.(*v1.ReplicationController)) })
|
||||
@ -438,6 +439,30 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
|
||||
}
|
||||
}
|
||||
SetDefaults_ResourceList(&in.Spec.Overhead)
|
||||
for i := range in.Status.InitContainerStatuses {
|
||||
a := &in.Status.InitContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
for i := range in.Status.ContainerStatuses {
|
||||
a := &in.Status.ContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
for i := range in.Status.EphemeralContainerStatuses {
|
||||
a := &in.Status.EphemeralContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func SetObjectDefaults_PodList(in *v1.PodList) {
|
||||
@ -447,6 +472,33 @@ func SetObjectDefaults_PodList(in *v1.PodList) {
|
||||
}
|
||||
}
|
||||
|
||||
func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult) {
|
||||
for i := range in.Status.InitContainerStatuses {
|
||||
a := &in.Status.InitContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
for i := range in.Status.ContainerStatuses {
|
||||
a := &in.Status.ContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
for i := range in.Status.EphemeralContainerStatuses {
|
||||
a := &in.Status.EphemeralContainerStatuses[i]
|
||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
||||
if a.Resources != nil {
|
||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func SetObjectDefaults_PodTemplate(in *v1.PodTemplate) {
|
||||
SetDefaults_PodSpec(&in.Template.Spec)
|
||||
for i := range in.Template.Spec.Volumes {
|
||||
|
38
pkg/apis/core/zz_generated.deepcopy.go
generated
38
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -788,6 +788,11 @@ func (in *Container) DeepCopyInto(out *Container) {
|
||||
}
|
||||
}
|
||||
in.Resources.DeepCopyInto(&out.Resources)
|
||||
if in.ResizePolicy != nil {
|
||||
in, out := &in.ResizePolicy, &out.ResizePolicy
|
||||
*out = make([]ContainerResizePolicy, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.VolumeMounts != nil {
|
||||
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||
*out = make([]VolumeMount, len(*in))
|
||||
@ -875,6 +880,22 @@ func (in *ContainerPort) DeepCopy() *ContainerPort {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ContainerResizePolicy) DeepCopyInto(out *ContainerResizePolicy) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResizePolicy.
|
||||
func (in *ContainerResizePolicy) DeepCopy() *ContainerResizePolicy {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ContainerResizePolicy)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ContainerState) DeepCopyInto(out *ContainerState) {
|
||||
*out = *in
|
||||
@ -967,6 +988,18 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.ResourcesAllocated != nil {
|
||||
in, out := &in.ResourcesAllocated, &out.ResourcesAllocated
|
||||
*out = make(ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -1382,6 +1415,11 @@ func (in *EphemeralContainerCommon) DeepCopyInto(out *EphemeralContainerCommon)
|
||||
}
|
||||
}
|
||||
in.Resources.DeepCopyInto(&out.Resources)
|
||||
if in.ResizePolicy != nil {
|
||||
in, out := &in.ResizePolicy, &out.ResizePolicy
|
||||
*out = make([]ContainerResizePolicy, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.VolumeMounts != nil {
|
||||
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||
*out = make([]VolumeMount, len(*in))
|
||||
|
124
pkg/generated/openapi/zz_generated.openapi.go
generated
124
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -355,6 +355,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
||||
"k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref),
|
||||
"k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref),
|
||||
"k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref),
|
||||
"k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref),
|
||||
"k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref),
|
||||
"k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref),
|
||||
"k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref),
|
||||
@ -17074,6 +17075,25 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope
|
||||
Ref: ref("k8s.io/api/core/v1.ResourceRequirements"),
|
||||
},
|
||||
},
|
||||
"resizePolicy": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-list-type": "atomic",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resources resize policy for the container.",
|
||||
Type: []string{"array"},
|
||||
Items: &spec.SchemaOrArray{
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: map[string]interface{}{},
|
||||
Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"volumeMounts": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
@ -17193,7 +17213,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
}
|
||||
}
|
||||
|
||||
@ -17284,6 +17304,36 @@ func schema_k8sio_api_core_v1_ContainerPort(ref common.ReferenceCallback) common
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "ContainerResizePolicy represents resource resize policy for a single 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.",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"policy": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"resourceName", "policy"},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
@ -17507,12 +17557,33 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"resourcesAllocated": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||
Type: []string{"object"},
|
||||
AdditionalProperties: &spec.SchemaOrBool{
|
||||
Allows: true,
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: map[string]interface{}{},
|
||||
Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"resources": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.",
|
||||
Ref: ref("k8s.io/api/core/v1.ResourceRequirements"),
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "ready", "restartCount", "image", "imageID"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.ContainerState"},
|
||||
"k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
|
||||
}
|
||||
}
|
||||
|
||||
@ -18165,6 +18236,25 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c
|
||||
Ref: ref("k8s.io/api/core/v1.ResourceRequirements"),
|
||||
},
|
||||
},
|
||||
"resizePolicy": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-list-type": "atomic",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resources resize policy for the container.",
|
||||
Type: []string{"array"},
|
||||
Items: &spec.SchemaOrArray{
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: map[string]interface{}{},
|
||||
Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"volumeMounts": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
@ -18291,7 +18381,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
}
|
||||
}
|
||||
|
||||
@ -18420,6 +18510,25 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb
|
||||
Ref: ref("k8s.io/api/core/v1.ResourceRequirements"),
|
||||
},
|
||||
},
|
||||
"resizePolicy": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-list-type": "atomic",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resources resize policy for the container.",
|
||||
Type: []string{"array"},
|
||||
Items: &spec.SchemaOrArray{
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: map[string]interface{}{},
|
||||
Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"volumeMounts": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
@ -18539,7 +18648,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
"k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"},
|
||||
}
|
||||
}
|
||||
|
||||
@ -23753,6 +23862,13 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope
|
||||
},
|
||||
},
|
||||
},
|
||||
"resize": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
2797
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2797
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -722,6 +722,12 @@ message Container {
|
||||
// +optional
|
||||
optional ResourceRequirements resources = 8;
|
||||
|
||||
// Resources resize policy for the container.
|
||||
// +featureGate=InPlacePodVerticalScaling
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated ContainerResizePolicy resizePolicy = 23;
|
||||
|
||||
// Pod volumes to mount into the container's filesystem.
|
||||
// Cannot be updated.
|
||||
// +optional
|
||||
@ -862,6 +868,17 @@ message ContainerPort {
|
||||
optional string hostIP = 5;
|
||||
}
|
||||
|
||||
// ContainerResizePolicy represents resource resize policy for a single container.
|
||||
message ContainerResizePolicy {
|
||||
// Name of the resource type to which this resource resize policy applies.
|
||||
// Supported values: cpu, memory.
|
||||
optional string resourceName = 1;
|
||||
|
||||
// Resource resize policy applicable to the specified resource name.
|
||||
// If not specified, it defaults to RestartNotRequired.
|
||||
optional string policy = 2;
|
||||
}
|
||||
|
||||
// ContainerState holds a possible state of container.
|
||||
// Only one of its members may be specified.
|
||||
// If none of them is specified, the default one is ContainerStateWaiting.
|
||||
@ -964,6 +981,19 @@ message ContainerStatus {
|
||||
// Is always true when no startupProbe is defined.
|
||||
// +optional
|
||||
optional bool started = 9;
|
||||
|
||||
// ResourcesAllocated represents the compute resources allocated for this container by the
|
||||
// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
|
||||
// and after successfully admitting desired pod resize.
|
||||
// +featureGate=InPlacePodVerticalScaling
|
||||
// +optional
|
||||
map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> resourcesAllocated = 10;
|
||||
|
||||
// Resources represents the compute resource requests and limits that have been successfully
|
||||
// enacted on the running container after it has been started or has been successfully resized.
|
||||
// +featureGate=InPlacePodVerticalScaling
|
||||
// +optional
|
||||
optional ResourceRequirements resources = 11;
|
||||
}
|
||||
|
||||
// DaemonEndpoint contains information about a single Daemon endpoint.
|
||||
@ -1320,6 +1350,12 @@ message EphemeralContainerCommon {
|
||||
// +optional
|
||||
optional ResourceRequirements resources = 8;
|
||||
|
||||
// Resources resize policy for the container.
|
||||
// +featureGate=InPlacePodVerticalScaling
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated ContainerResizePolicy resizePolicy = 23;
|
||||
|
||||
// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
|
||||
// Cannot be updated.
|
||||
// +optional
|
||||
@ -3935,6 +3971,13 @@ message PodStatus {
|
||||
// Status for any ephemeral containers that have run in this pod.
|
||||
// +optional
|
||||
repeated ContainerStatus ephemeralContainerStatuses = 13;
|
||||
|
||||
// Status of resources resize desired for pod's containers.
|
||||
// It is empty if no resources resize is pending.
|
||||
// Any changes to container resources will automatically set this to "Proposed"
|
||||
// +featureGate=InPlacePodVerticalScaling
|
||||
// +optional
|
||||
optional string resize = 14;
|
||||
}
|
||||
|
||||
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
|
||||
|
@ -346,6 +346,7 @@ var map_Container = map[string]string{
|
||||
"envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.",
|
||||
"env": "List of environment variables to set in the container. Cannot be updated.",
|
||||
"resources": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
|
||||
"resizePolicy": "Resources resize policy for the container.",
|
||||
"volumeMounts": "Pod volumes to mount into the container's filesystem. Cannot be updated.",
|
||||
"volumeDevices": "volumeDevices is the list of block devices to be used by the container.",
|
||||
"livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||
@ -388,6 +389,16 @@ func (ContainerPort) SwaggerDoc() map[string]string {
|
||||
return map_ContainerPort
|
||||
}
|
||||
|
||||
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.",
|
||||
}
|
||||
|
||||
func (ContainerResizePolicy) SwaggerDoc() map[string]string {
|
||||
return map_ContainerResizePolicy
|
||||
}
|
||||
|
||||
var map_ContainerState = map[string]string{
|
||||
"": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
|
||||
"waiting": "Details about a waiting container",
|
||||
@ -434,16 +445,18 @@ func (ContainerStateWaiting) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_ContainerStatus = map[string]string{
|
||||
"": "ContainerStatus contains details for the current status of this container.",
|
||||
"name": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.",
|
||||
"state": "Details about the container's current condition.",
|
||||
"lastState": "Details about the container's last termination condition.",
|
||||
"ready": "Specifies whether the container has passed its readiness probe.",
|
||||
"restartCount": "The number of times the container has been restarted.",
|
||||
"image": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.",
|
||||
"imageID": "ImageID of the container's image.",
|
||||
"containerID": "Container's ID in the format '<type>://<container_id>'.",
|
||||
"started": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.",
|
||||
"": "ContainerStatus contains details for the current status of this container.",
|
||||
"name": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.",
|
||||
"state": "Details about the container's current condition.",
|
||||
"lastState": "Details about the container's last termination condition.",
|
||||
"ready": "Specifies whether the container has passed its readiness probe.",
|
||||
"restartCount": "The number of times the container has been restarted.",
|
||||
"image": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.",
|
||||
"imageID": "ImageID of the container's image.",
|
||||
"containerID": "Container's ID in the format '<type>://<container_id>'.",
|
||||
"started": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.",
|
||||
"resourcesAllocated": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||
"resources": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.",
|
||||
}
|
||||
|
||||
func (ContainerStatus) SwaggerDoc() map[string]string {
|
||||
@ -609,6 +622,7 @@ var map_EphemeralContainerCommon = map[string]string{
|
||||
"envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.",
|
||||
"env": "List of environment variables to set in the container. Cannot be updated.",
|
||||
"resources": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.",
|
||||
"resizePolicy": "Resources resize policy for the container.",
|
||||
"volumeMounts": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.",
|
||||
"volumeDevices": "volumeDevices is the list of block devices to be used by the container.",
|
||||
"livenessProbe": "Probes are not allowed for ephemeral containers.",
|
||||
@ -1724,6 +1738,7 @@ var map_PodStatus = map[string]string{
|
||||
"containerStatuses": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status",
|
||||
"qosClass": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes",
|
||||
"ephemeralContainerStatuses": "Status for any ephemeral containers that have run in this pod.",
|
||||
"resize": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"",
|
||||
}
|
||||
|
||||
func (PodStatus) SwaggerDoc() map[string]string {
|
||||
|
@ -788,6 +788,11 @@ func (in *Container) DeepCopyInto(out *Container) {
|
||||
}
|
||||
}
|
||||
in.Resources.DeepCopyInto(&out.Resources)
|
||||
if in.ResizePolicy != nil {
|
||||
in, out := &in.ResizePolicy, &out.ResizePolicy
|
||||
*out = make([]ContainerResizePolicy, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.VolumeMounts != nil {
|
||||
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||
*out = make([]VolumeMount, len(*in))
|
||||
@ -875,6 +880,22 @@ func (in *ContainerPort) DeepCopy() *ContainerPort {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ContainerResizePolicy) DeepCopyInto(out *ContainerResizePolicy) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResizePolicy.
|
||||
func (in *ContainerResizePolicy) DeepCopy() *ContainerResizePolicy {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ContainerResizePolicy)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ContainerState) DeepCopyInto(out *ContainerState) {
|
||||
*out = *in
|
||||
@ -967,6 +988,18 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.ResourcesAllocated != nil {
|
||||
in, out := &in.ResourcesAllocated, &out.ResourcesAllocated
|
||||
*out = make(ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -1382,6 +1415,11 @@ func (in *EphemeralContainerCommon) DeepCopyInto(out *EphemeralContainerCommon)
|
||||
}
|
||||
}
|
||||
in.Resources.DeepCopyInto(&out.Resources)
|
||||
if in.ResizePolicy != nil {
|
||||
in, out := &in.ResizePolicy, &out.ResizePolicy
|
||||
*out = make([]ContainerResizePolicy, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.VolumeMounts != nil {
|
||||
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||
*out = make([]VolumeMount, len(*in))
|
||||
|
@ -551,6 +551,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -828,6 +834,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1105,6 +1117,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -320,6 +320,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -523,6 +526,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -728,6 +734,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -553,6 +553,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -830,6 +836,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1107,6 +1119,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -320,6 +320,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -523,6 +526,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -728,6 +734,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -322,6 +322,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -525,6 +528,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -730,6 +736,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -320,6 +320,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -523,6 +526,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -728,6 +734,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -551,6 +551,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -828,6 +834,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1105,6 +1117,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -320,6 +320,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -523,6 +526,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -728,6 +734,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -553,6 +553,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -830,6 +836,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1107,6 +1119,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -320,6 +320,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -523,6 +526,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -728,6 +734,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -625,6 +625,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -902,6 +908,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1179,6 +1191,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -364,6 +364,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -567,6 +570,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -772,6 +778,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -576,6 +576,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -853,6 +859,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1130,6 +1142,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
Binary file not shown.
@ -328,6 +328,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -531,6 +534,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -736,6 +742,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -625,6 +625,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -902,6 +908,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1179,6 +1191,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -364,6 +364,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -567,6 +570,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -772,6 +778,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -619,6 +619,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -896,6 +902,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1173,6 +1185,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -361,6 +361,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -564,6 +567,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -769,6 +775,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -493,6 +493,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -770,6 +776,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1047,6 +1059,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1672,7 +1690,23 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"containerStatuses": [
|
||||
@ -1719,7 +1753,23 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"qosClass": "qosClassValue",
|
||||
@ -1767,8 +1817,25 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"resize": "resizeValue"
|
||||
}
|
||||
}
|
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
Binary file not shown.
@ -268,6 +268,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -471,6 +474,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -676,6 +682,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -1125,6 +1134,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -1161,6 +1179,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -1198,6 +1225,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -1222,4 +1258,5 @@ status:
|
||||
- ip: ipValue
|
||||
qosClass: qosClassValue
|
||||
reason: reasonValue
|
||||
resize: resizeValue
|
||||
startTime: "2007-01-01T01:01:01Z"
|
||||
|
@ -110,7 +110,23 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"containerStatuses": [
|
||||
@ -157,7 +173,23 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"qosClass": "qosClassValue",
|
||||
@ -205,8 +237,25 @@
|
||||
"image": "imageValue",
|
||||
"imageID": "imageIDValue",
|
||||
"containerID": "containerIDValue",
|
||||
"started": true
|
||||
"started": true,
|
||||
"resourcesAllocated": {
|
||||
"resourcesAllocatedKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"resize": "resizeValue"
|
||||
}
|
||||
}
|
Binary file not shown.
@ -60,6 +60,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -96,6 +105,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -133,6 +151,15 @@ status:
|
||||
reason: reasonValue
|
||||
name: nameValue
|
||||
ready: true
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
resourcesAllocated:
|
||||
resourcesAllocatedKey: "0"
|
||||
restartCount: 5
|
||||
started: true
|
||||
state:
|
||||
@ -157,4 +184,5 @@ status:
|
||||
- ip: ipValue
|
||||
qosClass: qosClassValue
|
||||
reason: reasonValue
|
||||
resize: resizeValue
|
||||
startTime: "2007-01-01T01:01:01Z"
|
||||
|
@ -536,6 +536,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -813,6 +819,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1090,6 +1102,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -301,6 +301,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -504,6 +507,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -709,6 +715,9 @@ template:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -542,6 +542,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -819,6 +825,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1096,6 +1108,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -306,6 +306,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -509,6 +512,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -714,6 +720,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -551,6 +551,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -828,6 +834,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1105,6 +1117,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -552,6 +552,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -829,6 +835,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1106,6 +1118,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -322,6 +322,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -525,6 +528,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -730,6 +736,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
@ -553,6 +553,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -830,6 +836,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
@ -1107,6 +1119,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"resizePolicy": [
|
||||
{
|
||||
"resourceName": "resourceNameValue",
|
||||
"policy": "policyValue"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
|
Binary file not shown.
@ -312,6 +312,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -515,6 +518,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
@ -720,6 +726,9 @@ spec:
|
||||
port: portValue
|
||||
terminationGracePeriodSeconds: 7
|
||||
timeoutSeconds: 3
|
||||
resizePolicy:
|
||||
- policy: policyValue
|
||||
resourceName: resourceNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
|
BIN
staging/src/k8s.io/api/testdata/v1.25.0/core.v1.Pod.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.25.0/core.v1.Pod.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
BIN
staging/src/k8s.io/api/testdata/v1.25.0/core.v1.PodStatusResult.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.25.0/core.v1.PodStatusResult.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
BIN
staging/src/k8s.io/api/testdata/v1.26.0/core.v1.Pod.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.26.0/core.v1.Pod.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
BIN
staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PodStatusResult.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PodStatusResult.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
@ -25,28 +25,29 @@ import (
|
||||
// ContainerApplyConfiguration represents an declarative configuration of the Container type for use
|
||||
// with apply.
|
||||
type ContainerApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command []string `json:"command,omitempty"`
|
||||
Args []string `json:"args,omitempty"`
|
||||
WorkingDir *string `json:"workingDir,omitempty"`
|
||||
Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
|
||||
EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
|
||||
StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
|
||||
Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
|
||||
TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
|
||||
TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
|
||||
ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
|
||||
SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
|
||||
Stdin *bool `json:"stdin,omitempty"`
|
||||
StdinOnce *bool `json:"stdinOnce,omitempty"`
|
||||
TTY *bool `json:"tty,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command []string `json:"command,omitempty"`
|
||||
Args []string `json:"args,omitempty"`
|
||||
WorkingDir *string `json:"workingDir,omitempty"`
|
||||
Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
|
||||
EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
|
||||
StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
|
||||
Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
|
||||
TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
|
||||
TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
|
||||
ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
|
||||
SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
|
||||
Stdin *bool `json:"stdin,omitempty"`
|
||||
StdinOnce *bool `json:"stdinOnce,omitempty"`
|
||||
TTY *bool `json:"tty,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerApplyConfiguration constructs an declarative configuration of the Container type for use with
|
||||
@ -146,6 +147,19 @@ func (b *ContainerApplyConfiguration) WithResources(value *ResourceRequirementsA
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResizePolicy adds the given value to the ResizePolicy field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the ResizePolicy field.
|
||||
func (b *ContainerApplyConfiguration) WithResizePolicy(values ...*ContainerResizePolicyApplyConfiguration) *ContainerApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithResizePolicy")
|
||||
}
|
||||
b.ResizePolicy = append(b.ResizePolicy, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -0,0 +1,52 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// ContainerResizePolicyApplyConfiguration constructs an declarative configuration of the ContainerResizePolicy type for use with
|
||||
// apply.
|
||||
func ContainerResizePolicy() *ContainerResizePolicyApplyConfiguration {
|
||||
return &ContainerResizePolicyApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithResourceName sets the ResourceName 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 ResourceName field is set to the value of the last call.
|
||||
func (b *ContainerResizePolicyApplyConfiguration) WithResourceName(value v1.ResourceName) *ContainerResizePolicyApplyConfiguration {
|
||||
b.ResourceName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPolicy sets the Policy 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
|
||||
return b
|
||||
}
|
@ -18,18 +18,24 @@ limitations under the License.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// ContainerStatusApplyConfiguration represents an declarative configuration of the ContainerStatus type for use
|
||||
// with apply.
|
||||
type ContainerStatusApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
State *ContainerStateApplyConfiguration `json:"state,omitempty"`
|
||||
LastTerminationState *ContainerStateApplyConfiguration `json:"lastState,omitempty"`
|
||||
Ready *bool `json:"ready,omitempty"`
|
||||
RestartCount *int32 `json:"restartCount,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
ImageID *string `json:"imageID,omitempty"`
|
||||
ContainerID *string `json:"containerID,omitempty"`
|
||||
Started *bool `json:"started,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
State *ContainerStateApplyConfiguration `json:"state,omitempty"`
|
||||
LastTerminationState *ContainerStateApplyConfiguration `json:"lastState,omitempty"`
|
||||
Ready *bool `json:"ready,omitempty"`
|
||||
RestartCount *int32 `json:"restartCount,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
ImageID *string `json:"imageID,omitempty"`
|
||||
ContainerID *string `json:"containerID,omitempty"`
|
||||
Started *bool `json:"started,omitempty"`
|
||||
ResourcesAllocated *corev1.ResourceList `json:"resourcesAllocated,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerStatusApplyConfiguration constructs an declarative configuration of the ContainerStatus type for use with
|
||||
@ -109,3 +115,19 @@ func (b *ContainerStatusApplyConfiguration) WithStarted(value bool) *ContainerSt
|
||||
b.Started = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResourcesAllocated sets the ResourcesAllocated 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 ResourcesAllocated field is set to the value of the last call.
|
||||
func (b *ContainerStatusApplyConfiguration) WithResourcesAllocated(value corev1.ResourceList) *ContainerStatusApplyConfiguration {
|
||||
b.ResourcesAllocated = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResources sets the Resources 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 Resources field is set to the value of the last call.
|
||||
func (b *ContainerStatusApplyConfiguration) WithResources(value *ResourceRequirementsApplyConfiguration) *ContainerStatusApplyConfiguration {
|
||||
b.Resources = value
|
||||
return b
|
||||
}
|
||||
|
@ -126,6 +126,19 @@ func (b *EphemeralContainerApplyConfiguration) WithResources(value *ResourceRequ
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResizePolicy adds the given value to the ResizePolicy field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the ResizePolicy field.
|
||||
func (b *EphemeralContainerApplyConfiguration) WithResizePolicy(values ...*ContainerResizePolicyApplyConfiguration) *EphemeralContainerApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithResizePolicy")
|
||||
}
|
||||
b.ResizePolicy = append(b.ResizePolicy, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -25,28 +25,29 @@ import (
|
||||
// EphemeralContainerCommonApplyConfiguration represents an declarative configuration of the EphemeralContainerCommon type for use
|
||||
// with apply.
|
||||
type EphemeralContainerCommonApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command []string `json:"command,omitempty"`
|
||||
Args []string `json:"args,omitempty"`
|
||||
WorkingDir *string `json:"workingDir,omitempty"`
|
||||
Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
|
||||
EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
|
||||
StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
|
||||
Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
|
||||
TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
|
||||
TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
|
||||
ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
|
||||
SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
|
||||
Stdin *bool `json:"stdin,omitempty"`
|
||||
StdinOnce *bool `json:"stdinOnce,omitempty"`
|
||||
TTY *bool `json:"tty,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Image *string `json:"image,omitempty"`
|
||||
Command []string `json:"command,omitempty"`
|
||||
Args []string `json:"args,omitempty"`
|
||||
WorkingDir *string `json:"workingDir,omitempty"`
|
||||
Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
|
||||
EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
|
||||
StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
|
||||
Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
|
||||
TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
|
||||
TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
|
||||
ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
|
||||
SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
|
||||
Stdin *bool `json:"stdin,omitempty"`
|
||||
StdinOnce *bool `json:"stdinOnce,omitempty"`
|
||||
TTY *bool `json:"tty,omitempty"`
|
||||
}
|
||||
|
||||
// EphemeralContainerCommonApplyConfiguration constructs an declarative configuration of the EphemeralContainerCommon type for use with
|
||||
@ -146,6 +147,19 @@ func (b *EphemeralContainerCommonApplyConfiguration) WithResources(value *Resour
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResizePolicy adds the given value to the ResizePolicy field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the ResizePolicy field.
|
||||
func (b *EphemeralContainerCommonApplyConfiguration) WithResizePolicy(values ...*ContainerResizePolicyApplyConfiguration) *EphemeralContainerCommonApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithResizePolicy")
|
||||
}
|
||||
b.ResizePolicy = append(b.ResizePolicy, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -39,6 +39,7 @@ type PodStatusApplyConfiguration struct {
|
||||
ContainerStatuses []ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"`
|
||||
QOSClass *v1.PodQOSClass `json:"qosClass,omitempty"`
|
||||
EphemeralContainerStatuses []ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"`
|
||||
Resize *v1.PodResizeStatus `json:"resize,omitempty"`
|
||||
}
|
||||
|
||||
// PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with
|
||||
@ -175,3 +176,11 @@ func (b *PodStatusApplyConfiguration) WithEphemeralContainerStatuses(values ...*
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResize sets the Resize 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 Resize field is set to the value of the last call.
|
||||
func (b *PodStatusApplyConfiguration) WithResize(value v1.PodResizeStatus) *PodStatusApplyConfiguration {
|
||||
b.Resize = &value
|
||||
return b
|
||||
}
|
||||
|
@ -4129,6 +4129,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: readinessProbe
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.Probe
|
||||
- name: resizePolicy
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
namedType: io.k8s.api.core.v1.ContainerResizePolicy
|
||||
elementRelationship: atomic
|
||||
- name: resources
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
@ -4205,6 +4211,17 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
scalar: string
|
||||
default: TCP
|
||||
- name: io.k8s.api.core.v1.ContainerResizePolicy
|
||||
map:
|
||||
fields:
|
||||
- name: policy
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: resourceName
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: io.k8s.api.core.v1.ContainerState
|
||||
map:
|
||||
fields:
|
||||
@ -4286,6 +4303,14 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
scalar: boolean
|
||||
default: false
|
||||
- name: resources
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
- name: resourcesAllocated
|
||||
type:
|
||||
map:
|
||||
elementType:
|
||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||
- name: restartCount
|
||||
type:
|
||||
scalar: numeric
|
||||
@ -4521,6 +4546,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: readinessProbe
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.Probe
|
||||
- name: resizePolicy
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
namedType: io.k8s.api.core.v1.ContainerResizePolicy
|
||||
elementRelationship: atomic
|
||||
- name: resources
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
@ -6185,6 +6216,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: reason
|
||||
type:
|
||||
scalar: string
|
||||
- name: resize
|
||||
type:
|
||||
scalar: string
|
||||
- name: startTime
|
||||
type:
|
||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||
|
@ -579,6 +579,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
return &applyconfigurationscorev1.ContainerImageApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("ContainerPort"):
|
||||
return &applyconfigurationscorev1.ContainerPortApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("ContainerResizePolicy"):
|
||||
return &applyconfigurationscorev1.ContainerResizePolicyApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("ContainerState"):
|
||||
return &applyconfigurationscorev1.ContainerStateApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("ContainerStateRunning"):
|
||||
|
Loading…
Reference in New Issue
Block a user