mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
dra: generated files
This commit is contained in:
parent
444d23bd2f
commit
0fc62d5ded
32
api/openapi-spec/swagger.json
generated
32
api/openapi-spec/swagger.json
generated
@ -4718,7 +4718,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"resourceClaimTemplateName": {
|
"resourceClaimTemplateName": {
|
||||||
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -7998,6 +7998,23 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.PodResourceClaimStatus": {
|
||||||
|
"description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resourceClaimName": {
|
||||||
|
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.PodSchedulingGate": {
|
"io.k8s.api.core.v1.PodSchedulingGate": {
|
||||||
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -8380,6 +8397,19 @@
|
|||||||
"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\"",
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"resourceClaimStatuses": {
|
||||||
|
"description": "Status of resource claims.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/io.k8s.api.core.v1.PodResourceClaimStatus"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
|
"x-kubernetes-patch-merge-key": "name",
|
||||||
|
"x-kubernetes-patch-strategy": "merge,retainKeys"
|
||||||
|
},
|
||||||
"startTime": {
|
"startTime": {
|
||||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
|
"$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."
|
"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."
|
||||||
|
@ -699,7 +699,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"resourceClaimTemplateName": {
|
"resourceClaimTemplateName": {
|
||||||
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4980,6 +4980,24 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"io.k8s.api.core.v1.PodResourceClaimStatus": {
|
||||||
|
"description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"default": "",
|
||||||
|
"description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resourceClaimName": {
|
||||||
|
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"io.k8s.api.core.v1.PodSchedulingGate": {
|
"io.k8s.api.core.v1.PodSchedulingGate": {
|
||||||
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -5483,6 +5501,24 @@
|
|||||||
"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\"",
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"resourceClaimStatuses": {
|
||||||
|
"description": "Status of resource claims.",
|
||||||
|
"items": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/io.k8s.api.core.v1.PodResourceClaimStatus"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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,retainKeys"
|
||||||
|
},
|
||||||
"startTime": {
|
"startTime": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
|
@ -1579,7 +1579,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"resourceClaimTemplateName": {
|
"resourceClaimTemplateName": {
|
||||||
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -870,7 +870,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"resourceClaimTemplateName": {
|
"resourceClaimTemplateName": {
|
||||||
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
34
pkg/apis/core/v1/zz_generated.conversion.go
generated
34
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -1382,6 +1382,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
|||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*v1.PodResourceClaimStatus)(nil), (*core.PodResourceClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_v1_PodResourceClaimStatus_To_core_PodResourceClaimStatus(a.(*v1.PodResourceClaimStatus), b.(*core.PodResourceClaimStatus), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := s.AddGeneratedConversionFunc((*core.PodResourceClaimStatus)(nil), (*v1.PodResourceClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
|
return Convert_core_PodResourceClaimStatus_To_v1_PodResourceClaimStatus(a.(*core.PodResourceClaimStatus), b.(*v1.PodResourceClaimStatus), scope)
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := s.AddGeneratedConversionFunc((*v1.PodSchedulingGate)(nil), (*core.PodSchedulingGate)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
if err := s.AddGeneratedConversionFunc((*v1.PodSchedulingGate)(nil), (*core.PodSchedulingGate)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||||
return Convert_v1_PodSchedulingGate_To_core_PodSchedulingGate(a.(*v1.PodSchedulingGate), b.(*core.PodSchedulingGate), scope)
|
return Convert_v1_PodSchedulingGate_To_core_PodSchedulingGate(a.(*v1.PodSchedulingGate), b.(*core.PodSchedulingGate), scope)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -6211,6 +6221,28 @@ func Convert_core_PodResourceClaim_To_v1_PodResourceClaim(in *core.PodResourceCl
|
|||||||
return autoConvert_core_PodResourceClaim_To_v1_PodResourceClaim(in, out, s)
|
return autoConvert_core_PodResourceClaim_To_v1_PodResourceClaim(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1_PodResourceClaimStatus_To_core_PodResourceClaimStatus(in *v1.PodResourceClaimStatus, out *core.PodResourceClaimStatus, s conversion.Scope) error {
|
||||||
|
out.Name = in.Name
|
||||||
|
out.ResourceClaimName = (*string)(unsafe.Pointer(in.ResourceClaimName))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_v1_PodResourceClaimStatus_To_core_PodResourceClaimStatus is an autogenerated conversion function.
|
||||||
|
func Convert_v1_PodResourceClaimStatus_To_core_PodResourceClaimStatus(in *v1.PodResourceClaimStatus, out *core.PodResourceClaimStatus, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1_PodResourceClaimStatus_To_core_PodResourceClaimStatus(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_core_PodResourceClaimStatus_To_v1_PodResourceClaimStatus(in *core.PodResourceClaimStatus, out *v1.PodResourceClaimStatus, s conversion.Scope) error {
|
||||||
|
out.Name = in.Name
|
||||||
|
out.ResourceClaimName = (*string)(unsafe.Pointer(in.ResourceClaimName))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert_core_PodResourceClaimStatus_To_v1_PodResourceClaimStatus is an autogenerated conversion function.
|
||||||
|
func Convert_core_PodResourceClaimStatus_To_v1_PodResourceClaimStatus(in *core.PodResourceClaimStatus, out *v1.PodResourceClaimStatus, s conversion.Scope) error {
|
||||||
|
return autoConvert_core_PodResourceClaimStatus_To_v1_PodResourceClaimStatus(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
func autoConvert_v1_PodSchedulingGate_To_core_PodSchedulingGate(in *v1.PodSchedulingGate, out *core.PodSchedulingGate, s conversion.Scope) error {
|
func autoConvert_v1_PodSchedulingGate_To_core_PodSchedulingGate(in *v1.PodSchedulingGate, out *core.PodSchedulingGate, s conversion.Scope) error {
|
||||||
out.Name = in.Name
|
out.Name = in.Name
|
||||||
return nil
|
return nil
|
||||||
@ -6425,6 +6457,7 @@ func autoConvert_v1_PodStatus_To_core_PodStatus(in *v1.PodStatus, out *core.PodS
|
|||||||
out.QOSClass = core.PodQOSClass(in.QOSClass)
|
out.QOSClass = core.PodQOSClass(in.QOSClass)
|
||||||
out.EphemeralContainerStatuses = *(*[]core.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
out.EphemeralContainerStatuses = *(*[]core.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
||||||
out.Resize = core.PodResizeStatus(in.Resize)
|
out.Resize = core.PodResizeStatus(in.Resize)
|
||||||
|
out.ResourceClaimStatuses = *(*[]core.PodResourceClaimStatus)(unsafe.Pointer(&in.ResourceClaimStatuses))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6442,6 +6475,7 @@ func autoConvert_core_PodStatus_To_v1_PodStatus(in *core.PodStatus, out *v1.PodS
|
|||||||
out.ContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses))
|
out.ContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses))
|
||||||
out.EphemeralContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
out.EphemeralContainerStatuses = *(*[]v1.ContainerStatus)(unsafe.Pointer(&in.EphemeralContainerStatuses))
|
||||||
out.Resize = v1.PodResizeStatus(in.Resize)
|
out.Resize = v1.PodResizeStatus(in.Resize)
|
||||||
|
out.ResourceClaimStatuses = *(*[]v1.PodResourceClaimStatus)(unsafe.Pointer(&in.ResourceClaimStatuses))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
pkg/apis/core/zz_generated.deepcopy.go
generated
28
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -3819,6 +3819,27 @@ func (in *PodResourceClaim) DeepCopy() *PodResourceClaim {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *PodResourceClaimStatus) DeepCopyInto(out *PodResourceClaimStatus) {
|
||||||
|
*out = *in
|
||||||
|
if in.ResourceClaimName != nil {
|
||||||
|
in, out := &in.ResourceClaimName, &out.ResourceClaimName
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceClaimStatus.
|
||||||
|
func (in *PodResourceClaimStatus) DeepCopy() *PodResourceClaimStatus {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(PodResourceClaimStatus)
|
||||||
|
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 *PodSchedulingGate) DeepCopyInto(out *PodSchedulingGate) {
|
func (in *PodSchedulingGate) DeepCopyInto(out *PodSchedulingGate) {
|
||||||
*out = *in
|
*out = *in
|
||||||
@ -4133,6 +4154,13 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
|
|||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.ResourceClaimStatuses != nil {
|
||||||
|
in, out := &in.ResourceClaimStatuses, &out.ResourceClaimStatuses
|
||||||
|
*out = make([]PodResourceClaimStatus, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
58
pkg/generated/openapi/zz_generated.openapi.go
generated
58
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -476,6 +476,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
|||||||
"k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref),
|
"k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref),
|
||||||
"k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref),
|
"k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref),
|
||||||
"k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref),
|
"k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref),
|
||||||
|
"k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref),
|
||||||
"k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref),
|
"k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref),
|
||||||
"k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref),
|
"k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref),
|
||||||
"k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref),
|
"k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref),
|
||||||
@ -17064,7 +17065,7 @@ func schema_k8sio_api_core_v1_ClaimSource(ref common.ReferenceCallback) common.O
|
|||||||
},
|
},
|
||||||
"resourceClaimTemplateName": {
|
"resourceClaimTemplateName": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
Description: "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
Type: []string{"string"},
|
Type: []string{"string"},
|
||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
@ -23776,6 +23777,35 @@ func schema_k8sio_api_core_v1_PodResourceClaim(ref common.ReferenceCallback) com
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func schema_k8sio_api_core_v1_PodResourceClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
|
return common.OpenAPIDefinition{
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.",
|
||||||
|
Type: []string{"object"},
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"name": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.",
|
||||||
|
Default: "",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resourceClaimName": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"name"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func schema_k8sio_api_core_v1_PodSchedulingGate(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
func schema_k8sio_api_core_v1_PodSchedulingGate(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
return common.OpenAPIDefinition{
|
return common.OpenAPIDefinition{
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
@ -24524,11 +24554,35 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope
|
|||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"resourceClaimStatuses": {
|
||||||
|
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,retainKeys",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Status of resource claims.",
|
||||||
|
Type: []string{"array"},
|
||||||
|
Items: &spec.SchemaOrArray{
|
||||||
|
Schema: &spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Default: map[string]interface{}{},
|
||||||
|
Ref: ref("k8s.io/api/core/v1.PodResourceClaimStatus"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodIP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
|
"k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodIP", "k8s.io/api/core/v1.PodResourceClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2264
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2264
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -414,15 +414,9 @@ message ClaimSource {
|
|||||||
//
|
//
|
||||||
// The template will be used to create a new ResourceClaim, which will
|
// The template will be used to create a new ResourceClaim, which will
|
||||||
// be bound to this pod. When this pod is deleted, the ResourceClaim
|
// be bound to this pod. When this pod is deleted, the ResourceClaim
|
||||||
// will also be deleted. The name of the ResourceClaim will be <pod
|
// will also be deleted. The pod name and resource name, along with a
|
||||||
// name>-<resource name>, where <resource name> is the
|
// generated component, will be used to form a unique name for the
|
||||||
// PodResourceClaim.Name. Pod validation will reject the pod if the
|
// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
|
||||||
// concatenated name is not valid for a ResourceClaim (e.g. too long).
|
|
||||||
//
|
|
||||||
// An existing ResourceClaim with that name that is not owned by the
|
|
||||||
// pod will not be used for the pod to avoid using an unrelated
|
|
||||||
// resource by mistake. Scheduling and pod startup are then blocked
|
|
||||||
// until the unrelated ResourceClaim is removed.
|
|
||||||
//
|
//
|
||||||
// This field is immutable and no changes will be made to the
|
// This field is immutable and no changes will be made to the
|
||||||
// corresponding ResourceClaim by the control plane after creating the
|
// corresponding ResourceClaim by the control plane after creating the
|
||||||
@ -3496,6 +3490,24 @@ message PodResourceClaim {
|
|||||||
optional ClaimSource source = 2;
|
optional ClaimSource source = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim
|
||||||
|
// which references a ResourceClaimTemplate. It stores the generated name for
|
||||||
|
// the corresponding ResourceClaim.
|
||||||
|
message PodResourceClaimStatus {
|
||||||
|
// Name uniquely identifies this resource claim inside the pod.
|
||||||
|
// This must match the name of an entry in pod.spec.resourceClaims,
|
||||||
|
// which implies that the string must be a DNS_LABEL.
|
||||||
|
optional string name = 1;
|
||||||
|
|
||||||
|
// ResourceClaimName is the name of the ResourceClaim that was
|
||||||
|
// generated for the Pod in the namespace of the Pod. It this is
|
||||||
|
// unset, then generating a ResourceClaim was not necessary. The
|
||||||
|
// pod.spec.resourceClaims entry can be ignored in this case.
|
||||||
|
//
|
||||||
|
// +optional
|
||||||
|
optional string resourceClaimName = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// PodSchedulingGate is associated to a Pod to guard its scheduling.
|
// PodSchedulingGate is associated to a Pod to guard its scheduling.
|
||||||
message PodSchedulingGate {
|
message PodSchedulingGate {
|
||||||
// Name of the scheduling gate.
|
// Name of the scheduling gate.
|
||||||
@ -4036,6 +4048,15 @@ message PodStatus {
|
|||||||
// +featureGate=InPlacePodVerticalScaling
|
// +featureGate=InPlacePodVerticalScaling
|
||||||
// +optional
|
// +optional
|
||||||
optional string resize = 14;
|
optional string resize = 14;
|
||||||
|
|
||||||
|
// Status of resource claims.
|
||||||
|
// +patchMergeKey=name
|
||||||
|
// +patchStrategy=merge,retainKeys
|
||||||
|
// +listType=map
|
||||||
|
// +listMapKey=name
|
||||||
|
// +featureGate=DynamicResourceAllocation
|
||||||
|
// +optional
|
||||||
|
repeated PodResourceClaimStatus resourceClaimStatuses = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
|
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
|
||||||
|
@ -212,7 +212,7 @@ func (CinderVolumeSource) SwaggerDoc() map[string]string {
|
|||||||
var map_ClaimSource = map[string]string{
|
var map_ClaimSource = map[string]string{
|
||||||
"": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.",
|
"": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.",
|
||||||
"resourceClaimName": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.",
|
"resourceClaimName": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.",
|
||||||
"resourceClaimTemplateName": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
"resourceClaimTemplateName": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ClaimSource) SwaggerDoc() map[string]string {
|
func (ClaimSource) SwaggerDoc() map[string]string {
|
||||||
@ -1642,6 +1642,16 @@ func (PodResourceClaim) SwaggerDoc() map[string]string {
|
|||||||
return map_PodResourceClaim
|
return map_PodResourceClaim
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var map_PodResourceClaimStatus = map[string]string{
|
||||||
|
"": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.",
|
||||||
|
"name": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.",
|
||||||
|
"resourceClaimName": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PodResourceClaimStatus) SwaggerDoc() map[string]string {
|
||||||
|
return map_PodResourceClaimStatus
|
||||||
|
}
|
||||||
|
|
||||||
var map_PodSchedulingGate = map[string]string{
|
var map_PodSchedulingGate = map[string]string{
|
||||||
"": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
"": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
|
||||||
"name": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
|
"name": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
|
||||||
@ -1741,6 +1751,7 @@ var map_PodStatus = map[string]string{
|
|||||||
"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",
|
"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.",
|
"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\"",
|
"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\"",
|
||||||
|
"resourceClaimStatuses": "Status of resource claims.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (PodStatus) SwaggerDoc() map[string]string {
|
func (PodStatus) SwaggerDoc() map[string]string {
|
||||||
|
@ -3817,6 +3817,27 @@ func (in *PodResourceClaim) DeepCopy() *PodResourceClaim {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *PodResourceClaimStatus) DeepCopyInto(out *PodResourceClaimStatus) {
|
||||||
|
*out = *in
|
||||||
|
if in.ResourceClaimName != nil {
|
||||||
|
in, out := &in.ResourceClaimName, &out.ResourceClaimName
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceClaimStatus.
|
||||||
|
func (in *PodResourceClaimStatus) DeepCopy() *PodResourceClaimStatus {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(PodResourceClaimStatus)
|
||||||
|
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 *PodSchedulingGate) DeepCopyInto(out *PodSchedulingGate) {
|
func (in *PodSchedulingGate) DeepCopyInto(out *PodSchedulingGate) {
|
||||||
*out = *in
|
*out = *in
|
||||||
@ -4131,6 +4152,13 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
|
|||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.ResourceClaimStatuses != nil {
|
||||||
|
in, out := &in.ResourceClaimStatuses, &out.ResourceClaimStatuses
|
||||||
|
*out = make([]PodResourceClaimStatus, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1839,6 +1839,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resize": "resizeValue"
|
"resize": "resizeValue",
|
||||||
|
"resourceClaimStatuses": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resourceClaimName": "resourceClaimNameValue"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
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.
@ -1262,4 +1262,7 @@ status:
|
|||||||
qosClass: qosClassValue
|
qosClass: qosClassValue
|
||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
resize: resizeValue
|
resize: resizeValue
|
||||||
|
resourceClaimStatuses:
|
||||||
|
- name: nameValue
|
||||||
|
resourceClaimName: resourceClaimNameValue
|
||||||
startTime: "2007-01-01T01:01:01Z"
|
startTime: "2007-01-01T01:01:01Z"
|
||||||
|
@ -256,6 +256,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resize": "resizeValue"
|
"resize": "resizeValue",
|
||||||
|
"resourceClaimStatuses": [
|
||||||
|
{
|
||||||
|
"name": "nameValue",
|
||||||
|
"resourceClaimName": "resourceClaimNameValue"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
@ -185,4 +185,7 @@ status:
|
|||||||
qosClass: qosClassValue
|
qosClass: qosClassValue
|
||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
resize: resizeValue
|
resize: resizeValue
|
||||||
|
resourceClaimStatuses:
|
||||||
|
- name: nameValue
|
||||||
|
resourceClaimName: resourceClaimNameValue
|
||||||
startTime: "2007-01-01T01:01:01Z"
|
startTime: "2007-01-01T01:01:01Z"
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
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
|
||||||
|
|
||||||
|
// PodResourceClaimStatusApplyConfiguration represents an declarative configuration of the PodResourceClaimStatus type for use
|
||||||
|
// with apply.
|
||||||
|
type PodResourceClaimStatusApplyConfiguration struct {
|
||||||
|
Name *string `json:"name,omitempty"`
|
||||||
|
ResourceClaimName *string `json:"resourceClaimName,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodResourceClaimStatusApplyConfiguration constructs an declarative configuration of the PodResourceClaimStatus type for use with
|
||||||
|
// apply.
|
||||||
|
func PodResourceClaimStatus() *PodResourceClaimStatusApplyConfiguration {
|
||||||
|
return &PodResourceClaimStatusApplyConfiguration{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 *PodResourceClaimStatusApplyConfiguration) WithName(value string) *PodResourceClaimStatusApplyConfiguration {
|
||||||
|
b.Name = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithResourceClaimName sets the ResourceClaimName 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 ResourceClaimName field is set to the value of the last call.
|
||||||
|
func (b *PodResourceClaimStatusApplyConfiguration) WithResourceClaimName(value string) *PodResourceClaimStatusApplyConfiguration {
|
||||||
|
b.ResourceClaimName = &value
|
||||||
|
return b
|
||||||
|
}
|
@ -26,20 +26,21 @@ import (
|
|||||||
// PodStatusApplyConfiguration represents an declarative configuration of the PodStatus type for use
|
// PodStatusApplyConfiguration represents an declarative configuration of the PodStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodStatusApplyConfiguration struct {
|
type PodStatusApplyConfiguration struct {
|
||||||
Phase *v1.PodPhase `json:"phase,omitempty"`
|
Phase *v1.PodPhase `json:"phase,omitempty"`
|
||||||
Conditions []PodConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []PodConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
|
NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
|
||||||
HostIP *string `json:"hostIP,omitempty"`
|
HostIP *string `json:"hostIP,omitempty"`
|
||||||
PodIP *string `json:"podIP,omitempty"`
|
PodIP *string `json:"podIP,omitempty"`
|
||||||
PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
|
PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
|
||||||
StartTime *metav1.Time `json:"startTime,omitempty"`
|
StartTime *metav1.Time `json:"startTime,omitempty"`
|
||||||
InitContainerStatuses []ContainerStatusApplyConfiguration `json:"initContainerStatuses,omitempty"`
|
InitContainerStatuses []ContainerStatusApplyConfiguration `json:"initContainerStatuses,omitempty"`
|
||||||
ContainerStatuses []ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"`
|
ContainerStatuses []ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"`
|
||||||
QOSClass *v1.PodQOSClass `json:"qosClass,omitempty"`
|
QOSClass *v1.PodQOSClass `json:"qosClass,omitempty"`
|
||||||
EphemeralContainerStatuses []ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"`
|
EphemeralContainerStatuses []ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"`
|
||||||
Resize *v1.PodResizeStatus `json:"resize,omitempty"`
|
Resize *v1.PodResizeStatus `json:"resize,omitempty"`
|
||||||
|
ResourceClaimStatuses []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with
|
// PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with
|
||||||
@ -184,3 +185,16 @@ func (b *PodStatusApplyConfiguration) WithResize(value v1.PodResizeStatus) *PodS
|
|||||||
b.Resize = &value
|
b.Resize = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithResourceClaimStatuses adds the given value to the ResourceClaimStatuses 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 ResourceClaimStatuses field.
|
||||||
|
func (b *PodStatusApplyConfiguration) WithResourceClaimStatuses(values ...*PodResourceClaimStatusApplyConfiguration) *PodStatusApplyConfiguration {
|
||||||
|
for i := range values {
|
||||||
|
if values[i] == nil {
|
||||||
|
panic("nil value passed to WithResourceClaimStatuses")
|
||||||
|
}
|
||||||
|
b.ResourceClaimStatuses = append(b.ResourceClaimStatuses, *values[i])
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -6114,6 +6114,16 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.core.v1.ClaimSource
|
namedType: io.k8s.api.core.v1.ClaimSource
|
||||||
default: {}
|
default: {}
|
||||||
|
- name: io.k8s.api.core.v1.PodResourceClaimStatus
|
||||||
|
map:
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
default: ""
|
||||||
|
- name: resourceClaimName
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
- name: io.k8s.api.core.v1.PodSchedulingGate
|
- name: io.k8s.api.core.v1.PodSchedulingGate
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -6398,6 +6408,14 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: resize
|
- name: resize
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
- name: resourceClaimStatuses
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
namedType: io.k8s.api.core.v1.PodResourceClaimStatus
|
||||||
|
elementRelationship: associative
|
||||||
|
keys:
|
||||||
|
- name
|
||||||
- name: startTime
|
- name: startTime
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
|
@ -789,6 +789,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &applyconfigurationscorev1.PodReadinessGateApplyConfiguration{}
|
return &applyconfigurationscorev1.PodReadinessGateApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodResourceClaim"):
|
case corev1.SchemeGroupVersion.WithKind("PodResourceClaim"):
|
||||||
return &applyconfigurationscorev1.PodResourceClaimApplyConfiguration{}
|
return &applyconfigurationscorev1.PodResourceClaimApplyConfiguration{}
|
||||||
|
case corev1.SchemeGroupVersion.WithKind("PodResourceClaimStatus"):
|
||||||
|
return &applyconfigurationscorev1.PodResourceClaimStatusApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodSchedulingGate"):
|
case corev1.SchemeGroupVersion.WithKind("PodSchedulingGate"):
|
||||||
return &applyconfigurationscorev1.PodSchedulingGateApplyConfiguration{}
|
return &applyconfigurationscorev1.PodSchedulingGateApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodSecurityContext"):
|
case corev1.SchemeGroupVersion.WithKind("PodSecurityContext"):
|
||||||
|
Loading…
Reference in New Issue
Block a user