mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
generated files
This commit is contained in:
parent
16e8911fdc
commit
2253b53b58
52
api/openapi-spec/swagger.json
generated
52
api/openapi-spec/swagger.json
generated
@ -6526,6 +6526,19 @@
|
|||||||
"description": "AllocatedResources 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.",
|
"description": "AllocatedResources 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"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"allocatedResourcesStatus": {
|
||||||
|
"description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceStatus"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
|
"x-kubernetes-patch-merge-key": "name",
|
||||||
|
"x-kubernetes-patch-strategy": "merge"
|
||||||
|
},
|
||||||
"containerID": {
|
"containerID": {
|
||||||
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -10502,6 +10515,23 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"x-kubernetes-map-type": "atomic"
|
"x-kubernetes-map-type": "atomic"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.ResourceHealth": {
|
||||||
|
"description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
|
||||||
|
"properties": {
|
||||||
|
"health": {
|
||||||
|
"description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resourceID": {
|
||||||
|
"description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"resourceID"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.ResourceQuota": {
|
"io.k8s.api.core.v1.ResourceQuota": {
|
||||||
"description": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
"description": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -10646,6 +10676,28 @@
|
|||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.ResourceStatus": {
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
"description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceHealth"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"resourceID"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.SELinuxOptions": {
|
"io.k8s.api.core.v1.SELinuxOptions": {
|
||||||
"description": "SELinuxOptions are the labels to be applied to the container",
|
"description": "SELinuxOptions are the labels to be applied to the container",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -1525,6 +1525,24 @@
|
|||||||
"description": "AllocatedResources 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.",
|
"description": "AllocatedResources 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"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"allocatedResourcesStatus": {
|
||||||
|
"description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
|
||||||
|
"items": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/io.k8s.api.core.v1.ResourceStatus"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": {}
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
|
"x-kubernetes-patch-merge-key": "name",
|
||||||
|
"x-kubernetes-patch-strategy": "merge"
|
||||||
|
},
|
||||||
"containerID": {
|
"containerID": {
|
||||||
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -6598,6 +6616,24 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"x-kubernetes-map-type": "atomic"
|
"x-kubernetes-map-type": "atomic"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.ResourceHealth": {
|
||||||
|
"description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
|
||||||
|
"properties": {
|
||||||
|
"health": {
|
||||||
|
"description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resourceID": {
|
||||||
|
"default": "",
|
||||||
|
"description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"resourceID"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.ResourceQuota": {
|
"io.k8s.api.core.v1.ResourceQuota": {
|
||||||
"description": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
"description": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -6777,6 +6813,34 @@
|
|||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.ResourceStatus": {
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"default": "",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
"description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
|
||||||
|
"items": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/io.k8s.api.core.v1.ResourceHealth"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": {}
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"resourceID"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.SELinuxOptions": {
|
"io.k8s.api.core.v1.SELinuxOptions": {
|
||||||
"description": "SELinuxOptions are the labels to be applied to the container",
|
"description": "SELinuxOptions are the labels to be applied to the container",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
66
pkg/apis/core/v1/zz_generated.conversion.go
generated
66
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -1722,6 +1722,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
|||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*v1.ResourceHealth)(nil), (*core.ResourceHealth)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_v1_ResourceHealth_To_core_ResourceHealth(a.(*v1.ResourceHealth), b.(*core.ResourceHealth), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*core.ResourceHealth)(nil), (*v1.ResourceHealth)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_core_ResourceHealth_To_v1_ResourceHealth(a.(*core.ResourceHealth), b.(*v1.ResourceHealth), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := s.AddGeneratedConversionFunc((*v1.ResourceQuota)(nil), (*core.ResourceQuota)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
if err := s.AddGeneratedConversionFunc((*v1.ResourceQuota)(nil), (*core.ResourceQuota)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
return Convert_v1_ResourceQuota_To_core_ResourceQuota(a.(*v1.ResourceQuota), b.(*core.ResourceQuota), scope)
|
return Convert_v1_ResourceQuota_To_core_ResourceQuota(a.(*v1.ResourceQuota), b.(*core.ResourceQuota), scope)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -1772,6 +1782,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
|||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*v1.ResourceStatus)(nil), (*core.ResourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_v1_ResourceStatus_To_core_ResourceStatus(a.(*v1.ResourceStatus), b.(*core.ResourceStatus), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*core.ResourceStatus)(nil), (*v1.ResourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_core_ResourceStatus_To_v1_ResourceStatus(a.(*core.ResourceStatus), b.(*v1.ResourceStatus), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := s.AddGeneratedConversionFunc((*v1.SELinuxOptions)(nil), (*core.SELinuxOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
if err := s.AddGeneratedConversionFunc((*v1.SELinuxOptions)(nil), (*core.SELinuxOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
return Convert_v1_SELinuxOptions_To_core_SELinuxOptions(a.(*v1.SELinuxOptions), b.(*core.SELinuxOptions), scope)
|
return Convert_v1_SELinuxOptions_To_core_SELinuxOptions(a.(*v1.SELinuxOptions), b.(*core.SELinuxOptions), scope)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -3379,6 +3399,7 @@ func autoConvert_v1_ContainerStatus_To_core_ContainerStatus(in *v1.ContainerStat
|
|||||||
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||||
out.VolumeMounts = *(*[]core.VolumeMountStatus)(unsafe.Pointer(&in.VolumeMounts))
|
out.VolumeMounts = *(*[]core.VolumeMountStatus)(unsafe.Pointer(&in.VolumeMounts))
|
||||||
out.User = (*core.ContainerUser)(unsafe.Pointer(in.User))
|
out.User = (*core.ContainerUser)(unsafe.Pointer(in.User))
|
||||||
|
out.AllocatedResourcesStatus = *(*[]core.ResourceStatus)(unsafe.Pointer(&in.AllocatedResourcesStatus))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3405,6 +3426,7 @@ func autoConvert_core_ContainerStatus_To_v1_ContainerStatus(in *core.ContainerSt
|
|||||||
out.Resources = (*v1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
out.Resources = (*v1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||||
out.VolumeMounts = *(*[]v1.VolumeMountStatus)(unsafe.Pointer(&in.VolumeMounts))
|
out.VolumeMounts = *(*[]v1.VolumeMountStatus)(unsafe.Pointer(&in.VolumeMounts))
|
||||||
out.User = (*v1.ContainerUser)(unsafe.Pointer(in.User))
|
out.User = (*v1.ContainerUser)(unsafe.Pointer(in.User))
|
||||||
|
out.AllocatedResourcesStatus = *(*[]v1.ResourceStatus)(unsafe.Pointer(&in.AllocatedResourcesStatus))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7483,6 +7505,28 @@ func Convert_core_ResourceFieldSelector_To_v1_ResourceFieldSelector(in *core.Res
|
|||||||
return autoConvert_core_ResourceFieldSelector_To_v1_ResourceFieldSelector(in, out, s)
|
return autoConvert_core_ResourceFieldSelector_To_v1_ResourceFieldSelector(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1_ResourceHealth_To_core_ResourceHealth(in *v1.ResourceHealth, out *core.ResourceHealth, s conversion.Scope) error {
|
||||||
|
out.ResourceID = core.ResourceID(in.ResourceID)
|
||||||
|
out.Health = core.ResourceHealthStatus(in.Health)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_v1_ResourceHealth_To_core_ResourceHealth is an autogenerated conversion function.
|
||||||
|
func Convert_v1_ResourceHealth_To_core_ResourceHealth(in *v1.ResourceHealth, out *core.ResourceHealth, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1_ResourceHealth_To_core_ResourceHealth(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_core_ResourceHealth_To_v1_ResourceHealth(in *core.ResourceHealth, out *v1.ResourceHealth, s conversion.Scope) error {
|
||||||
|
out.ResourceID = v1.ResourceID(in.ResourceID)
|
||||||
|
out.Health = v1.ResourceHealthStatus(in.Health)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_core_ResourceHealth_To_v1_ResourceHealth is an autogenerated conversion function.
|
||||||
|
func Convert_core_ResourceHealth_To_v1_ResourceHealth(in *core.ResourceHealth, out *v1.ResourceHealth, s conversion.Scope) error {
|
||||||
|
return autoConvert_core_ResourceHealth_To_v1_ResourceHealth(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
func autoConvert_v1_ResourceQuota_To_core_ResourceQuota(in *v1.ResourceQuota, out *core.ResourceQuota, s conversion.Scope) error {
|
func autoConvert_v1_ResourceQuota_To_core_ResourceQuota(in *v1.ResourceQuota, out *core.ResourceQuota, s conversion.Scope) error {
|
||||||
out.ObjectMeta = in.ObjectMeta
|
out.ObjectMeta = in.ObjectMeta
|
||||||
if err := Convert_v1_ResourceQuotaSpec_To_core_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
|
if err := Convert_v1_ResourceQuotaSpec_To_core_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
|
||||||
@ -7607,6 +7651,28 @@ func Convert_core_ResourceRequirements_To_v1_ResourceRequirements(in *core.Resou
|
|||||||
return autoConvert_core_ResourceRequirements_To_v1_ResourceRequirements(in, out, s)
|
return autoConvert_core_ResourceRequirements_To_v1_ResourceRequirements(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1_ResourceStatus_To_core_ResourceStatus(in *v1.ResourceStatus, out *core.ResourceStatus, s conversion.Scope) error {
|
||||||
|
out.Name = core.ResourceName(in.Name)
|
||||||
|
out.Resources = *(*[]core.ResourceHealth)(unsafe.Pointer(&in.Resources))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_v1_ResourceStatus_To_core_ResourceStatus is an autogenerated conversion function.
|
||||||
|
func Convert_v1_ResourceStatus_To_core_ResourceStatus(in *v1.ResourceStatus, out *core.ResourceStatus, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1_ResourceStatus_To_core_ResourceStatus(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_core_ResourceStatus_To_v1_ResourceStatus(in *core.ResourceStatus, out *v1.ResourceStatus, s conversion.Scope) error {
|
||||||
|
out.Name = v1.ResourceName(in.Name)
|
||||||
|
out.Resources = *(*[]v1.ResourceHealth)(unsafe.Pointer(&in.Resources))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_core_ResourceStatus_To_v1_ResourceStatus is an autogenerated conversion function.
|
||||||
|
func Convert_core_ResourceStatus_To_v1_ResourceStatus(in *core.ResourceStatus, out *v1.ResourceStatus, s conversion.Scope) error {
|
||||||
|
return autoConvert_core_ResourceStatus_To_v1_ResourceStatus(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
func autoConvert_v1_SELinuxOptions_To_core_SELinuxOptions(in *v1.SELinuxOptions, out *core.SELinuxOptions, s conversion.Scope) error {
|
func autoConvert_v1_SELinuxOptions_To_core_SELinuxOptions(in *v1.SELinuxOptions, out *core.SELinuxOptions, s conversion.Scope) error {
|
||||||
out.User = in.User
|
out.User = in.User
|
||||||
out.Role = in.Role
|
out.Role = in.Role
|
||||||
|
44
pkg/apis/core/zz_generated.deepcopy.go
generated
44
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -1048,6 +1048,13 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
|||||||
*out = new(ContainerUser)
|
*out = new(ContainerUser)
|
||||||
(*in).DeepCopyInto(*out)
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
|
if in.AllocatedResourcesStatus != nil {
|
||||||
|
in, out := &in.AllocatedResourcesStatus, &out.AllocatedResourcesStatus
|
||||||
|
*out = make([]ResourceStatus, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4979,6 +4986,22 @@ func (in *ResourceFieldSelector) DeepCopy() *ResourceFieldSelector {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *ResourceHealth) DeepCopyInto(out *ResourceHealth) {
|
||||||
|
*out = *in
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceHealth.
|
||||||
|
func (in *ResourceHealth) DeepCopy() *ResourceHealth {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(ResourceHealth)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in ResourceList) DeepCopyInto(out *ResourceList) {
|
func (in ResourceList) DeepCopyInto(out *ResourceList) {
|
||||||
{
|
{
|
||||||
@ -5160,6 +5183,27 @@ func (in *ResourceRequirements) DeepCopy() *ResourceRequirements {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus) {
|
||||||
|
*out = *in
|
||||||
|
if in.Resources != nil {
|
||||||
|
in, out := &in.Resources, &out.Resources
|
||||||
|
*out = make([]ResourceHealth, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
|
||||||
|
func (in *ResourceStatus) DeepCopy() *ResourceStatus {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(ResourceStatus)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *SELinuxOptions) DeepCopyInto(out *SELinuxOptions) {
|
func (in *SELinuxOptions) DeepCopyInto(out *SELinuxOptions) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
102
pkg/generated/openapi/zz_generated.openapi.go
generated
102
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -553,11 +553,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
|||||||
"k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref),
|
"k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref),
|
||||||
"k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref),
|
"k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref),
|
||||||
"k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref),
|
"k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref),
|
||||||
|
"k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref),
|
||||||
"k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref),
|
"k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref),
|
||||||
"k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref),
|
"k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref),
|
||||||
"k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref),
|
"k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref),
|
||||||
"k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref),
|
"k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref),
|
||||||
"k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref),
|
"k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref),
|
||||||
|
"k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref),
|
||||||
"k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref),
|
"k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref),
|
||||||
"k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref),
|
"k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref),
|
||||||
"k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref),
|
"k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref),
|
||||||
@ -21099,12 +21101,36 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm
|
|||||||
Ref: ref("k8s.io/api/core/v1.ContainerUser"),
|
Ref: ref("k8s.io/api/core/v1.ContainerUser"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"allocatedResourcesStatus": {
|
||||||
|
VendorExtensible: spec.VendorExtensible{
|
||||||
|
Extensions: spec.Extensions{
|
||||||
|
"x-kubernetes-list-map-keys": []interface{}{
|
||||||
|
"name",
|
||||||
|
},
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
|
"x-kubernetes-patch-merge-key": "name",
|
||||||
|
"x-kubernetes-patch-strategy": "merge",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
|
||||||
|
Type: []string{"array"},
|
||||||
|
Items: &spec.SchemaOrArray{
|
||||||
|
Schema: &spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Default: map[string]interface{}{},
|
||||||
|
Ref: ref("k8s.io/api/core/v1.ResourceStatus"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"name", "ready", "restartCount", "image", "imageID"},
|
Required: []string{"name", "ready", "restartCount", "image", "imageID"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ContainerUser", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.VolumeMountStatus", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
|
"k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ContainerUser", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.ResourceStatus", "k8s.io/api/core/v1.VolumeMountStatus", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29263,6 +29289,35 @@ func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func schema_k8sio_api_core_v1_ResourceHealth(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
|
return common.OpenAPIDefinition{
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
|
||||||
|
Type: []string{"object"},
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"resourceID": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
|
||||||
|
Default: "",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"health": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"resourceID"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
return common.OpenAPIDefinition{
|
return common.OpenAPIDefinition{
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
@ -29528,6 +29583,51 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
|
return common.OpenAPIDefinition{
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Type: []string{"object"},
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"name": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.",
|
||||||
|
Default: "",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
VendorExtensible: spec.VendorExtensible{
|
||||||
|
Extensions: spec.Extensions{
|
||||||
|
"x-kubernetes-list-map-keys": []interface{}{
|
||||||
|
"resourceID",
|
||||||
|
},
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
|
||||||
|
Type: []string{"array"},
|
||||||
|
Items: &spec.SchemaOrArray{
|
||||||
|
Schema: &spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Default: map[string]interface{}{},
|
||||||
|
Ref: ref("k8s.io/api/core/v1.ResourceHealth"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"name"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{
|
||||||
|
"k8s.io/api/core/v1.ResourceHealth"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
return common.OpenAPIDefinition{
|
return common.OpenAPIDefinition{
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
|
2588
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2588
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -1094,6 +1094,16 @@ message ContainerStatus {
|
|||||||
// +featureGate=SupplementalGroupsPolicy
|
// +featureGate=SupplementalGroupsPolicy
|
||||||
// +optional
|
// +optional
|
||||||
optional ContainerUser user = 13;
|
optional ContainerUser user = 13;
|
||||||
|
|
||||||
|
// AllocatedResourcesStatus represents the status of various resources
|
||||||
|
// allocated for this Pod.
|
||||||
|
// +featureGate=ResourceHealthStatus
|
||||||
|
// +optional
|
||||||
|
// +patchMergeKey=name
|
||||||
|
// +patchStrategy=merge
|
||||||
|
// +listType=map
|
||||||
|
// +listMapKey=name
|
||||||
|
repeated ResourceStatus allocatedResourcesStatus = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerUser represents user identity information
|
// ContainerUser represents user identity information
|
||||||
@ -5025,6 +5035,25 @@ message ResourceFieldSelector {
|
|||||||
optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3;
|
optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ResourceHealth represents the health of a resource. It has the latest device health information.
|
||||||
|
// This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.
|
||||||
|
message ResourceHealth {
|
||||||
|
// ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
|
||||||
|
optional string resourceID = 1;
|
||||||
|
|
||||||
|
// Health of the resource.
|
||||||
|
// can be one of:
|
||||||
|
// - Healthy: operates as normal
|
||||||
|
// - Unhealthy: reported unhealthy. We consider this a temporary health issue
|
||||||
|
// since we do not have a mechanism today to distinguish
|
||||||
|
// temporary and permanent issues.
|
||||||
|
// - Unknown: The status cannot be determined.
|
||||||
|
// For example, Device Plugin got unregistered and hasn't been re-registered since.
|
||||||
|
//
|
||||||
|
// In future we may want to introduce the PermanentlyUnhealthy Status.
|
||||||
|
optional string health = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// ResourceQuota sets aggregate quota restrictions enforced per namespace
|
// ResourceQuota sets aggregate quota restrictions enforced per namespace
|
||||||
message ResourceQuota {
|
message ResourceQuota {
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
@ -5116,6 +5145,20 @@ message ResourceRequirements {
|
|||||||
repeated ResourceClaim claims = 3;
|
repeated ResourceClaim claims = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ResourceStatus {
|
||||||
|
// Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.
|
||||||
|
// +required
|
||||||
|
optional string name = 1;
|
||||||
|
|
||||||
|
// List of unique Resources health. Each element in the list contains an unique resource ID and resource health.
|
||||||
|
// At a minimum, ResourceID must uniquely identify the Resource
|
||||||
|
// allocated to the Pod on the Node for the lifetime of a Pod.
|
||||||
|
// See ResourceID type for it's definition.
|
||||||
|
// +listType=map
|
||||||
|
// +listMapKey=resourceID
|
||||||
|
repeated ResourceHealth resources = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// SELinuxOptions are the labels to be applied to the container
|
// SELinuxOptions are the labels to be applied to the container
|
||||||
message SELinuxOptions {
|
message SELinuxOptions {
|
||||||
// User is a SELinux user label that applies to the container.
|
// User is a SELinux user label that applies to the container.
|
||||||
|
@ -473,6 +473,7 @@ var map_ContainerStatus = map[string]string{
|
|||||||
"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.",
|
"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.",
|
||||||
"volumeMounts": "Status of volume mounts.",
|
"volumeMounts": "Status of volume mounts.",
|
||||||
"user": "User represents user identity information initially attached to the first process of the container",
|
"user": "User represents user identity information initially attached to the first process of the container",
|
||||||
|
"allocatedResourcesStatus": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ContainerStatus) SwaggerDoc() map[string]string {
|
func (ContainerStatus) SwaggerDoc() map[string]string {
|
||||||
@ -2123,6 +2124,16 @@ func (ResourceFieldSelector) SwaggerDoc() map[string]string {
|
|||||||
return map_ResourceFieldSelector
|
return map_ResourceFieldSelector
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var map_ResourceHealth = map[string]string{
|
||||||
|
"": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
|
||||||
|
"resourceID": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
|
||||||
|
"health": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ResourceHealth) SwaggerDoc() map[string]string {
|
||||||
|
return map_ResourceHealth
|
||||||
|
}
|
||||||
|
|
||||||
var map_ResourceQuota = map[string]string{
|
var map_ResourceQuota = map[string]string{
|
||||||
"": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
"": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
@ -2176,6 +2187,15 @@ func (ResourceRequirements) SwaggerDoc() map[string]string {
|
|||||||
return map_ResourceRequirements
|
return map_ResourceRequirements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var map_ResourceStatus = map[string]string{
|
||||||
|
"name": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.",
|
||||||
|
"resources": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ResourceStatus) SwaggerDoc() map[string]string {
|
||||||
|
return map_ResourceStatus
|
||||||
|
}
|
||||||
|
|
||||||
var map_SELinuxOptions = map[string]string{
|
var map_SELinuxOptions = map[string]string{
|
||||||
"": "SELinuxOptions are the labels to be applied to the container",
|
"": "SELinuxOptions are the labels to be applied to the container",
|
||||||
"user": "User is a SELinux user label that applies to the container.",
|
"user": "User is a SELinux user label that applies to the container.",
|
||||||
|
@ -1048,6 +1048,13 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
|||||||
*out = new(ContainerUser)
|
*out = new(ContainerUser)
|
||||||
(*in).DeepCopyInto(*out)
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
|
if in.AllocatedResourcesStatus != nil {
|
||||||
|
in, out := &in.AllocatedResourcesStatus, &out.AllocatedResourcesStatus
|
||||||
|
*out = make([]ResourceStatus, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4982,6 +4989,22 @@ func (in *ResourceFieldSelector) DeepCopy() *ResourceFieldSelector {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *ResourceHealth) DeepCopyInto(out *ResourceHealth) {
|
||||||
|
*out = *in
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceHealth.
|
||||||
|
func (in *ResourceHealth) DeepCopy() *ResourceHealth {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(ResourceHealth)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in ResourceList) DeepCopyInto(out *ResourceList) {
|
func (in ResourceList) DeepCopyInto(out *ResourceList) {
|
||||||
{
|
{
|
||||||
@ -5163,6 +5186,27 @@ func (in *ResourceRequirements) DeepCopy() *ResourceRequirements {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus) {
|
||||||
|
*out = *in
|
||||||
|
if in.Resources != nil {
|
||||||
|
in, out := &in.Resources, &out.Resources
|
||||||
|
*out = make([]ResourceHealth, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
|
||||||
|
func (in *ResourceStatus) DeepCopy() *ResourceStatus {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(ResourceStatus)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *SELinuxOptions) DeepCopyInto(out *SELinuxOptions) {
|
func (in *SELinuxOptions) DeepCopyInto(out *SELinuxOptions) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
@ -1815,7 +1815,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"containerStatuses": [
|
"containerStatuses": [
|
||||||
@ -1896,7 +1907,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"qosClass": "qosClassValue",
|
"qosClass": "qosClassValue",
|
||||||
@ -1978,7 +2000,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resize": "resizeValue",
|
"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.
@ -1181,6 +1181,11 @@ status:
|
|||||||
containerStatuses:
|
containerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
@ -1238,6 +1243,11 @@ status:
|
|||||||
ephemeralContainerStatuses:
|
ephemeralContainerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
@ -1298,6 +1308,11 @@ status:
|
|||||||
initContainerStatuses:
|
initContainerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
|
@ -149,7 +149,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"containerStatuses": [
|
"containerStatuses": [
|
||||||
@ -230,7 +241,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"qosClass": "qosClassValue",
|
"qosClass": "qosClassValue",
|
||||||
@ -312,7 +334,18 @@
|
|||||||
3
|
3
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allocatedResourcesStatus": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"resourceID": "resourceIDValue",
|
||||||
|
"health": "healthValue"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resize": "resizeValue",
|
"resize": "resizeValue",
|
||||||
|
Binary file not shown.
@ -43,6 +43,11 @@ status:
|
|||||||
containerStatuses:
|
containerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
@ -100,6 +105,11 @@ status:
|
|||||||
ephemeralContainerStatuses:
|
ephemeralContainerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
@ -160,6 +170,11 @@ status:
|
|||||||
initContainerStatuses:
|
initContainerStatuses:
|
||||||
- allocatedResources:
|
- allocatedResources:
|
||||||
allocatedResourcesKey: "0"
|
allocatedResourcesKey: "0"
|
||||||
|
allocatedResourcesStatus:
|
||||||
|
- name: nameValue
|
||||||
|
resources:
|
||||||
|
- health: healthValue
|
||||||
|
resourceID: resourceIDValue
|
||||||
containerID: containerIDValue
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
|
@ -38,6 +38,7 @@ type ContainerStatusApplyConfiguration struct {
|
|||||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||||
VolumeMounts []VolumeMountStatusApplyConfiguration `json:"volumeMounts,omitempty"`
|
VolumeMounts []VolumeMountStatusApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||||
User *ContainerUserApplyConfiguration `json:"user,omitempty"`
|
User *ContainerUserApplyConfiguration `json:"user,omitempty"`
|
||||||
|
AllocatedResourcesStatus []ResourceStatusApplyConfiguration `json:"allocatedResourcesStatus,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerStatusApplyConfiguration constructs a declarative configuration of the ContainerStatus type for use with
|
// ContainerStatusApplyConfiguration constructs a declarative configuration of the ContainerStatus type for use with
|
||||||
@ -154,3 +155,16 @@ func (b *ContainerStatusApplyConfiguration) WithUser(value *ContainerUserApplyCo
|
|||||||
b.User = value
|
b.User = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithAllocatedResourcesStatus adds the given value to the AllocatedResourcesStatus 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 AllocatedResourcesStatus field.
|
||||||
|
func (b *ContainerStatusApplyConfiguration) WithAllocatedResourcesStatus(values ...*ResourceStatusApplyConfiguration) *ContainerStatusApplyConfiguration {
|
||||||
|
for i := range values {
|
||||||
|
if values[i] == nil {
|
||||||
|
panic("nil value passed to WithAllocatedResourcesStatus")
|
||||||
|
}
|
||||||
|
b.AllocatedResourcesStatus = append(b.AllocatedResourcesStatus, *values[i])
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -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"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ResourceHealthApplyConfiguration represents a declarative configuration of the ResourceHealth type for use
|
||||||
|
// with apply.
|
||||||
|
type ResourceHealthApplyConfiguration struct {
|
||||||
|
ResourceID *v1.ResourceID `json:"resourceID,omitempty"`
|
||||||
|
Health *v1.ResourceHealthStatus `json:"health,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// ResourceHealthApplyConfiguration constructs a declarative configuration of the ResourceHealth type for use with
|
||||||
|
// apply.
|
||||||
|
func ResourceHealth() *ResourceHealthApplyConfiguration {
|
||||||
|
return &ResourceHealthApplyConfiguration{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithResourceID sets the ResourceID 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 ResourceID field is set to the value of the last call.
|
||||||
|
func (b *ResourceHealthApplyConfiguration) WithResourceID(value v1.ResourceID) *ResourceHealthApplyConfiguration {
|
||||||
|
b.ResourceID = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithHealth sets the Health 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 Health field is set to the value of the last call.
|
||||||
|
func (b *ResourceHealthApplyConfiguration) WithHealth(value v1.ResourceHealthStatus) *ResourceHealthApplyConfiguration {
|
||||||
|
b.Health = &value
|
||||||
|
return b
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
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"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ResourceStatusApplyConfiguration represents a declarative configuration of the ResourceStatus type for use
|
||||||
|
// with apply.
|
||||||
|
type ResourceStatusApplyConfiguration struct {
|
||||||
|
Name *v1.ResourceName `json:"name,omitempty"`
|
||||||
|
Resources []ResourceHealthApplyConfiguration `json:"resources,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// ResourceStatusApplyConfiguration constructs a declarative configuration of the ResourceStatus type for use with
|
||||||
|
// apply.
|
||||||
|
func ResourceStatus() *ResourceStatusApplyConfiguration {
|
||||||
|
return &ResourceStatusApplyConfiguration{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithName sets the Name 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 Name field is set to the value of the last call.
|
||||||
|
func (b *ResourceStatusApplyConfiguration) WithName(value v1.ResourceName) *ResourceStatusApplyConfiguration {
|
||||||
|
b.Name = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithResources adds the given value to the Resources 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 Resources field.
|
||||||
|
func (b *ResourceStatusApplyConfiguration) WithResources(values ...*ResourceHealthApplyConfiguration) *ResourceStatusApplyConfiguration {
|
||||||
|
for i := range values {
|
||||||
|
if values[i] == nil {
|
||||||
|
panic("nil value passed to WithResources")
|
||||||
|
}
|
||||||
|
b.Resources = append(b.Resources, *values[i])
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
@ -5042,6 +5042,14 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
map:
|
map:
|
||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||||
|
- name: allocatedResourcesStatus
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
namedType: io.k8s.api.core.v1.ResourceStatus
|
||||||
|
elementRelationship: associative
|
||||||
|
keys:
|
||||||
|
- name
|
||||||
- name: containerID
|
- name: containerID
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -7449,6 +7457,16 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
scalar: string
|
scalar: string
|
||||||
default: ""
|
default: ""
|
||||||
elementRelationship: atomic
|
elementRelationship: atomic
|
||||||
|
- name: io.k8s.api.core.v1.ResourceHealth
|
||||||
|
map:
|
||||||
|
fields:
|
||||||
|
- name: health
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
- name: resourceID
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
default: ""
|
||||||
- name: io.k8s.api.core.v1.ResourceQuota
|
- name: io.k8s.api.core.v1.ResourceQuota
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -7521,6 +7539,21 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
map:
|
map:
|
||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||||
|
- name: io.k8s.api.core.v1.ResourceStatus
|
||||||
|
map:
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
default: ""
|
||||||
|
- name: resources
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
namedType: io.k8s.api.core.v1.ResourceHealth
|
||||||
|
elementRelationship: associative
|
||||||
|
keys:
|
||||||
|
- resourceID
|
||||||
- name: io.k8s.api.core.v1.SELinuxOptions
|
- name: io.k8s.api.core.v1.SELinuxOptions
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
@ -918,6 +918,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &applyconfigurationscorev1.ResourceClaimApplyConfiguration{}
|
return &applyconfigurationscorev1.ResourceClaimApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ResourceFieldSelector"):
|
case corev1.SchemeGroupVersion.WithKind("ResourceFieldSelector"):
|
||||||
return &applyconfigurationscorev1.ResourceFieldSelectorApplyConfiguration{}
|
return &applyconfigurationscorev1.ResourceFieldSelectorApplyConfiguration{}
|
||||||
|
case corev1.SchemeGroupVersion.WithKind("ResourceHealth"):
|
||||||
|
return &applyconfigurationscorev1.ResourceHealthApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ResourceQuota"):
|
case corev1.SchemeGroupVersion.WithKind("ResourceQuota"):
|
||||||
return &applyconfigurationscorev1.ResourceQuotaApplyConfiguration{}
|
return &applyconfigurationscorev1.ResourceQuotaApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ResourceQuotaSpec"):
|
case corev1.SchemeGroupVersion.WithKind("ResourceQuotaSpec"):
|
||||||
@ -926,6 +928,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &applyconfigurationscorev1.ResourceQuotaStatusApplyConfiguration{}
|
return &applyconfigurationscorev1.ResourceQuotaStatusApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ResourceRequirements"):
|
case corev1.SchemeGroupVersion.WithKind("ResourceRequirements"):
|
||||||
return &applyconfigurationscorev1.ResourceRequirementsApplyConfiguration{}
|
return &applyconfigurationscorev1.ResourceRequirementsApplyConfiguration{}
|
||||||
|
case corev1.SchemeGroupVersion.WithKind("ResourceStatus"):
|
||||||
|
return &applyconfigurationscorev1.ResourceStatusApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ScaleIOPersistentVolumeSource"):
|
case corev1.SchemeGroupVersion.WithKind("ScaleIOPersistentVolumeSource"):
|
||||||
return &applyconfigurationscorev1.ScaleIOPersistentVolumeSourceApplyConfiguration{}
|
return &applyconfigurationscorev1.ScaleIOPersistentVolumeSourceApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("ScaleIOVolumeSource"):
|
case corev1.SchemeGroupVersion.WithKind("ScaleIOVolumeSource"):
|
||||||
|
Loading…
Reference in New Issue
Block a user