mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #119962 from pohly/dra-api-list-type
api: change list type for node lists in PodSchedulingContext
This commit is contained in:
commit
3f705b6ab8
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -14069,7 +14069,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-type": "atomic"
|
||||||
},
|
},
|
||||||
"selectedNode": {
|
"selectedNode": {
|
||||||
"description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
|
"description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
|
||||||
@ -14228,7 +14228,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-type": "atomic"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
@ -219,7 +219,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-type": "atomic"
|
||||||
},
|
},
|
||||||
"selectedNode": {
|
"selectedNode": {
|
||||||
"description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
|
"description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
|
||||||
@ -414,7 +414,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-type": "atomic"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
4
pkg/generated/openapi/zz_generated.openapi.go
generated
4
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -42375,7 +42375,7 @@ func schema_k8sio_api_resource_v1alpha2_PodSchedulingContextSpec(ref common.Refe
|
|||||||
"potentialNodes": {
|
"potentialNodes": {
|
||||||
VendorExtensible: spec.VendorExtensible{
|
VendorExtensible: spec.VendorExtensible{
|
||||||
Extensions: spec.Extensions{
|
Extensions: spec.Extensions{
|
||||||
"x-kubernetes-list-type": "set",
|
"x-kubernetes-list-type": "atomic",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -42636,7 +42636,7 @@ func schema_k8sio_api_resource_v1alpha2_ResourceClaimSchedulingStatus(ref common
|
|||||||
"unsuitableNodes": {
|
"unsuitableNodes": {
|
||||||
VendorExtensible: spec.VendorExtensible{
|
VendorExtensible: spec.VendorExtensible{
|
||||||
Extensions: spec.Extensions{
|
Extensions: spec.Extensions{
|
||||||
"x-kubernetes-list-type": "set",
|
"x-kubernetes-list-type": "atomic",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
|
@ -107,7 +107,7 @@ message PodSchedulingContextSpec {
|
|||||||
// that suits all pending resources. This may get increased in the
|
// that suits all pending resources. This may get increased in the
|
||||||
// future, but not reduced.
|
// future, but not reduced.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=atomic
|
||||||
// +optional
|
// +optional
|
||||||
repeated string potentialNodes = 2;
|
repeated string potentialNodes = 2;
|
||||||
}
|
}
|
||||||
@ -208,7 +208,7 @@ message ResourceClaimSchedulingStatus {
|
|||||||
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
||||||
// future, but not reduced.
|
// future, but not reduced.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=atomic
|
||||||
// +optional
|
// +optional
|
||||||
repeated string unsuitableNodes = 2;
|
repeated string unsuitableNodes = 2;
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@ type PodSchedulingContextSpec struct {
|
|||||||
// that suits all pending resources. This may get increased in the
|
// that suits all pending resources. This may get increased in the
|
||||||
// future, but not reduced.
|
// future, but not reduced.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=atomic
|
||||||
// +optional
|
// +optional
|
||||||
PotentialNodes []string `json:"potentialNodes,omitempty" protobuf:"bytes,2,opt,name=potentialNodes"`
|
PotentialNodes []string `json:"potentialNodes,omitempty" protobuf:"bytes,2,opt,name=potentialNodes"`
|
||||||
}
|
}
|
||||||
@ -283,7 +283,7 @@ type ResourceClaimSchedulingStatus struct {
|
|||||||
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
||||||
// future, but not reduced.
|
// future, but not reduced.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=atomic
|
||||||
// +optional
|
// +optional
|
||||||
UnsuitableNodes []string `json:"unsuitableNodes,omitempty" protobuf:"bytes,2,opt,name=unsuitableNodes"`
|
UnsuitableNodes []string `json:"unsuitableNodes,omitempty" protobuf:"bytes,2,opt,name=unsuitableNodes"`
|
||||||
}
|
}
|
||||||
|
@ -11693,7 +11693,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
list:
|
list:
|
||||||
elementType:
|
elementType:
|
||||||
scalar: string
|
scalar: string
|
||||||
elementRelationship: associative
|
elementRelationship: atomic
|
||||||
- name: selectedNode
|
- name: selectedNode
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -11772,7 +11772,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
list:
|
list:
|
||||||
elementType:
|
elementType:
|
||||||
scalar: string
|
scalar: string
|
||||||
elementRelationship: associative
|
elementRelationship: atomic
|
||||||
- name: io.k8s.api.resource.v1alpha2.ResourceClaimSpec
|
- name: io.k8s.api.resource.v1alpha2.ResourceClaimSpec
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
Loading…
Reference in New Issue
Block a user