mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Resource claims should be a map type
This commit is contained in:
parent
239f0049f6
commit
e50e8a0c91
5
api/openapi-spec/swagger.json
generated
5
api/openapi-spec/swagger.json
generated
@ -8648,7 +8648,10 @@
|
|||||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceClaim"
|
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceClaim"
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
},
|
},
|
||||||
"limits": {
|
"limits": {
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
|
@ -6249,7 +6249,10 @@
|
|||||||
"default": {}
|
"default": {}
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
},
|
},
|
||||||
"limits": {
|
"limits": {
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
|
@ -4057,7 +4057,10 @@
|
|||||||
"default": {}
|
"default": {}
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
},
|
},
|
||||||
"limits": {
|
"limits": {
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
|
@ -3231,7 +3231,10 @@
|
|||||||
"default": {}
|
"default": {}
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"x-kubernetes-list-type": "set"
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
},
|
},
|
||||||
"limits": {
|
"limits": {
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
|
5
pkg/generated/openapi/zz_generated.openapi.go
generated
5
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -25052,7 +25052,10 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback)
|
|||||||
"claims": {
|
"claims": {
|
||||||
VendorExtensible: spec.VendorExtensible{
|
VendorExtensible: spec.VendorExtensible{
|
||||||
Extensions: spec.Extensions{
|
Extensions: spec.Extensions{
|
||||||
"x-kubernetes-list-type": "set",
|
"x-kubernetes-list-map-keys": []interface{}{
|
||||||
|
"name",
|
||||||
|
},
|
||||||
|
"x-kubernetes-list-type": "map",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
|
@ -4517,7 +4517,8 @@ message ResourceRequirements {
|
|||||||
//
|
//
|
||||||
// This field is immutable.
|
// This field is immutable.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=map
|
||||||
|
// +listMapKey=name
|
||||||
// +featureGate=DynamicResourceAllocation
|
// +featureGate=DynamicResourceAllocation
|
||||||
// +optional
|
// +optional
|
||||||
repeated ResourceClaim claims = 3;
|
repeated ResourceClaim claims = 3;
|
||||||
|
@ -2321,7 +2321,8 @@ type ResourceRequirements struct {
|
|||||||
//
|
//
|
||||||
// This field is immutable.
|
// This field is immutable.
|
||||||
//
|
//
|
||||||
// +listType=set
|
// +listType=map
|
||||||
|
// +listMapKey=name
|
||||||
// +featureGate=DynamicResourceAllocation
|
// +featureGate=DynamicResourceAllocation
|
||||||
// +optional
|
// +optional
|
||||||
Claims []ResourceClaim `json:"claims,omitempty" protobuf:"bytes,3,opt,name=claims"`
|
Claims []ResourceClaim `json:"claims,omitempty" protobuf:"bytes,3,opt,name=claims"`
|
||||||
|
@ -6553,6 +6553,8 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.api.core.v1.ResourceClaim
|
namedType: io.k8s.api.core.v1.ResourceClaim
|
||||||
elementRelationship: associative
|
elementRelationship: associative
|
||||||
|
keys:
|
||||||
|
- name
|
||||||
- name: limits
|
- name: limits
|
||||||
type:
|
type:
|
||||||
map:
|
map:
|
||||||
|
Loading…
Reference in New Issue
Block a user