mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Update generated data
This commit is contained in:
parent
e011187114
commit
6a780f57ce
12
api/openapi-spec/swagger.json
generated
12
api/openapi-spec/swagger.json
generated
@ -7506,6 +7506,14 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"allocatedResourceStatuses": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. If Expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"allocatedResources": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||
@ -7532,10 +7540,6 @@
|
||||
"phase": {
|
||||
"description": "phase represents the current phase of PersistentVolumeClaim.",
|
||||
"type": "string"
|
||||
},
|
||||
"resizeStatus": {
|
||||
"description": "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -4235,6 +4235,15 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"allocatedResourceStatuses": {
|
||||
"additionalProperties": {
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. If Expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"allocatedResources": {
|
||||
"additionalProperties": {
|
||||
"allOf": [
|
||||
@ -4276,10 +4285,6 @@
|
||||
"phase": {
|
||||
"description": "phase represents the current phase of PersistentVolumeClaim.",
|
||||
"type": "string"
|
||||
},
|
||||
"resizeStatus": {
|
||||
"description": "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -3094,6 +3094,15 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"allocatedResourceStatuses": {
|
||||
"additionalProperties": {
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. If Expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"allocatedResources": {
|
||||
"additionalProperties": {
|
||||
"allOf": [
|
||||
@ -3135,10 +3144,6 @@
|
||||
"phase": {
|
||||
"description": "phase represents the current phase of PersistentVolumeClaim.",
|
||||
"type": "string"
|
||||
},
|
||||
"resizeStatus": {
|
||||
"description": "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -5364,7 +5364,7 @@ func autoConvert_v1_PersistentVolumeClaimStatus_To_core_PersistentVolumeClaimSta
|
||||
out.Capacity = *(*core.ResourceList)(unsafe.Pointer(&in.Capacity))
|
||||
out.Conditions = *(*[]core.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions))
|
||||
out.AllocatedResources = *(*core.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||
out.ResizeStatus = (*core.PersistentVolumeClaimResizeStatus)(unsafe.Pointer(in.ResizeStatus))
|
||||
out.AllocatedResourceStatuses = *(*map[core.ResourceName]core.ClaimResourceStatus)(unsafe.Pointer(&in.AllocatedResourceStatuses))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -5379,7 +5379,7 @@ func autoConvert_core_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimSta
|
||||
out.Capacity = *(*v1.ResourceList)(unsafe.Pointer(&in.Capacity))
|
||||
out.Conditions = *(*[]v1.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions))
|
||||
out.AllocatedResources = *(*v1.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||
out.ResizeStatus = (*v1.PersistentVolumeClaimResizeStatus)(unsafe.Pointer(in.ResizeStatus))
|
||||
out.AllocatedResourceStatuses = *(*map[v1.ResourceName]v1.ClaimResourceStatus)(unsafe.Pointer(&in.AllocatedResourceStatuses))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
10
pkg/apis/core/zz_generated.deepcopy.go
generated
10
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -3105,10 +3105,12 @@ func (in *PersistentVolumeClaimStatus) DeepCopyInto(out *PersistentVolumeClaimSt
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.ResizeStatus != nil {
|
||||
in, out := &in.ResizeStatus, &out.ResizeStatus
|
||||
*out = new(PersistentVolumeClaimResizeStatus)
|
||||
**out = **in
|
||||
if in.AllocatedResourceStatuses != nil {
|
||||
in, out := &in.AllocatedResourceStatuses, &out.AllocatedResourceStatuses
|
||||
*out = make(map[ResourceName]ClaimResourceStatus, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
23
pkg/generated/openapi/zz_generated.openapi.go
generated
23
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -22511,12 +22511,25 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa
|
||||
},
|
||||
},
|
||||
},
|
||||
"resizeStatus": {
|
||||
"allocatedResourceStatuses": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-map-type": "granular",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.\n\nPossible enum values:\n - `\"\"` When expansion is complete, the empty string is set by resize controller or kubelet.\n - `\"ControllerExpansionFailed\"` State set when expansion has failed in resize controller with a terminal error. Transient errors such as timeout should not set this status and should leave ResizeStatus unmodified, so as resize controller can resume the volume expansion.\n - `\"ControllerExpansionInProgress\"` State set when resize controller starts expanding the volume in control-plane\n - `\"NodeExpansionFailed\"` State set when expansion has failed in kubelet with a terminal error. Transient errors don't set NodeExpansionFailed.\n - `\"NodeExpansionInProgress\"` State set when kubelet starts expanding the volume.\n - `\"NodeExpansionPending\"` State set when resize controller has finished expanding the volume but further expansion is needed on the node.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Enum: []interface{}{"", "ControllerExpansionFailed", "ControllerExpansionInProgress", "NodeExpansionFailed", "NodeExpansionInProgress", "NodeExpansionPending"},
|
||||
Description: "allocatedResourceStatuses stores status of resource being resized for the given PVC. If Expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
Type: []string{"object"},
|
||||
AdditionalProperties: &spec.SchemaOrBool{
|
||||
Allows: true,
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -2913,13 +2913,19 @@ message PersistentVolumeClaimStatus {
|
||||
// +optional
|
||||
map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;
|
||||
|
||||
// resizeStatus stores status of resize operation.
|
||||
// ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty
|
||||
// string by resize controller or kubelet.
|
||||
// allocatedResourceStatuses stores status of resource being resized for the given PVC.
|
||||
// If Expanding a PVC for more capacity - this field can be one of the following states:
|
||||
// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress"
|
||||
// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed"
|
||||
// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending"
|
||||
// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress"
|
||||
// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed"
|
||||
// When this field is not set, it means that no resize operation is in progress for the given PVC.
|
||||
// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
|
||||
// +featureGate=RecoverVolumeExpansionFailure
|
||||
// +mapType=granular
|
||||
// +optional
|
||||
optional string resizeStatus = 6;
|
||||
map<string, string> allocatedResourceStatuses = 7;
|
||||
}
|
||||
|
||||
// PersistentVolumeClaimTemplate is used to produce
|
||||
|
@ -1356,13 +1356,13 @@ func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_PersistentVolumeClaimStatus = map[string]string{
|
||||
"": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.",
|
||||
"phase": "phase represents the current phase of PersistentVolumeClaim.",
|
||||
"accessModes": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
|
||||
"capacity": "capacity represents the actual resources of the underlying volume.",
|
||||
"conditions": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
|
||||
"allocatedResources": "allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"resizeStatus": "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.",
|
||||
"phase": "phase represents the current phase of PersistentVolumeClaim.",
|
||||
"accessModes": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
|
||||
"capacity": "capacity represents the actual resources of the underlying volume.",
|
||||
"conditions": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
|
||||
"allocatedResources": "allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
"allocatedResourceStatuses": "allocatedResourceStatuses stores status of resource being resized for the given PVC. If Expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
|
||||
}
|
||||
|
||||
func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string {
|
||||
|
@ -3103,10 +3103,12 @@ func (in *PersistentVolumeClaimStatus) DeepCopyInto(out *PersistentVolumeClaimSt
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.ResizeStatus != nil {
|
||||
in, out := &in.ResizeStatus, &out.ResizeStatus
|
||||
*out = new(PersistentVolumeClaimResizeStatus)
|
||||
**out = **in
|
||||
if in.AllocatedResourceStatuses != nil {
|
||||
in, out := &in.AllocatedResourceStatuses, &out.AllocatedResourceStatuses
|
||||
*out = make(map[ResourceName]ClaimResourceStatus, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -1797,7 +1797,9 @@
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resizeStatus": "resizeStatusValue"
|
||||
"allocatedResourceStatuses": {
|
||||
"allocatedResourceStatusesKey": "allocatedResourceStatusesValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
Binary file not shown.
@ -1232,6 +1232,8 @@ spec:
|
||||
status:
|
||||
accessModes:
|
||||
- accessModesValue
|
||||
allocatedResourceStatuses:
|
||||
allocatedResourceStatusesKey: allocatedResourceStatusesValue
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
capacity:
|
||||
@ -1244,7 +1246,6 @@ spec:
|
||||
status: statusValue
|
||||
type: typeValue
|
||||
phase: phaseValue
|
||||
resizeStatus: resizeStatusValue
|
||||
status:
|
||||
availableReplicas: 11
|
||||
collisionCount: 9
|
||||
|
@ -1797,7 +1797,9 @@
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resizeStatus": "resizeStatusValue"
|
||||
"allocatedResourceStatuses": {
|
||||
"allocatedResourceStatusesKey": "allocatedResourceStatusesValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
Binary file not shown.
@ -1232,6 +1232,8 @@ spec:
|
||||
status:
|
||||
accessModes:
|
||||
- accessModesValue
|
||||
allocatedResourceStatuses:
|
||||
allocatedResourceStatusesKey: allocatedResourceStatusesValue
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
capacity:
|
||||
@ -1244,7 +1246,6 @@ spec:
|
||||
status: statusValue
|
||||
type: typeValue
|
||||
phase: phaseValue
|
||||
resizeStatus: resizeStatusValue
|
||||
status:
|
||||
availableReplicas: 11
|
||||
collisionCount: 9
|
||||
|
@ -1797,7 +1797,9 @@
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resizeStatus": "resizeStatusValue"
|
||||
"allocatedResourceStatuses": {
|
||||
"allocatedResourceStatusesKey": "allocatedResourceStatusesValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
Binary file not shown.
@ -1232,6 +1232,8 @@ spec:
|
||||
status:
|
||||
accessModes:
|
||||
- accessModesValue
|
||||
allocatedResourceStatuses:
|
||||
allocatedResourceStatusesKey: allocatedResourceStatusesValue
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
capacity:
|
||||
@ -1244,7 +1246,6 @@ spec:
|
||||
status: statusValue
|
||||
type: typeValue
|
||||
phase: phaseValue
|
||||
resizeStatus: resizeStatusValue
|
||||
status:
|
||||
availableReplicas: 11
|
||||
collisionCount: 9
|
||||
|
@ -110,6 +110,8 @@
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resizeStatus": "resizeStatusValue"
|
||||
"allocatedResourceStatuses": {
|
||||
"allocatedResourceStatusesKey": "allocatedResourceStatusesValue"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
@ -65,6 +65,8 @@ spec:
|
||||
status:
|
||||
accessModes:
|
||||
- accessModesValue
|
||||
allocatedResourceStatuses:
|
||||
allocatedResourceStatusesKey: allocatedResourceStatusesValue
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
capacity:
|
||||
@ -77,4 +79,3 @@ status:
|
||||
status: statusValue
|
||||
type: typeValue
|
||||
phase: phaseValue
|
||||
resizeStatus: resizeStatusValue
|
||||
|
@ -25,12 +25,12 @@ import (
|
||||
// PersistentVolumeClaimStatusApplyConfiguration represents an declarative configuration of the PersistentVolumeClaimStatus type for use
|
||||
// with apply.
|
||||
type PersistentVolumeClaimStatusApplyConfiguration struct {
|
||||
Phase *v1.PersistentVolumeClaimPhase `json:"phase,omitempty"`
|
||||
AccessModes []v1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
|
||||
Capacity *v1.ResourceList `json:"capacity,omitempty"`
|
||||
Conditions []PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||
AllocatedResources *v1.ResourceList `json:"allocatedResources,omitempty"`
|
||||
ResizeStatus *v1.PersistentVolumeClaimResizeStatus `json:"resizeStatus,omitempty"`
|
||||
Phase *v1.PersistentVolumeClaimPhase `json:"phase,omitempty"`
|
||||
AccessModes []v1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
|
||||
Capacity *v1.ResourceList `json:"capacity,omitempty"`
|
||||
Conditions []PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||
AllocatedResources *v1.ResourceList `json:"allocatedResources,omitempty"`
|
||||
AllocatedResourceStatuses map[v1.ResourceName]v1.ClaimResourceStatus `json:"allocatedResourceStatuses,omitempty"`
|
||||
}
|
||||
|
||||
// PersistentVolumeClaimStatusApplyConfiguration constructs an declarative configuration of the PersistentVolumeClaimStatus type for use with
|
||||
@ -86,10 +86,16 @@ func (b *PersistentVolumeClaimStatusApplyConfiguration) WithAllocatedResources(v
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResizeStatus sets the ResizeStatus 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 ResizeStatus field is set to the value of the last call.
|
||||
func (b *PersistentVolumeClaimStatusApplyConfiguration) WithResizeStatus(value v1.PersistentVolumeClaimResizeStatus) *PersistentVolumeClaimStatusApplyConfiguration {
|
||||
b.ResizeStatus = &value
|
||||
// WithAllocatedResourceStatuses puts the entries into the AllocatedResourceStatuses field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, the entries provided by each call will be put on the AllocatedResourceStatuses field,
|
||||
// overwriting an existing map entries in AllocatedResourceStatuses field with the same key.
|
||||
func (b *PersistentVolumeClaimStatusApplyConfiguration) WithAllocatedResourceStatuses(entries map[v1.ResourceName]v1.ClaimResourceStatus) *PersistentVolumeClaimStatusApplyConfiguration {
|
||||
if b.AllocatedResourceStatuses == nil && len(entries) > 0 {
|
||||
b.AllocatedResourceStatuses = make(map[v1.ResourceName]v1.ClaimResourceStatus, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.AllocatedResourceStatuses[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
@ -5817,6 +5817,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: allocatedResourceStatuses
|
||||
type:
|
||||
map:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: separable
|
||||
- name: allocatedResources
|
||||
type:
|
||||
map:
|
||||
@ -5838,9 +5844,6 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: phase
|
||||
type:
|
||||
scalar: string
|
||||
- name: resizeStatus
|
||||
type:
|
||||
scalar: string
|
||||
- name: io.k8s.api.core.v1.PersistentVolumeClaimTemplate
|
||||
map:
|
||||
fields:
|
||||
|
Loading…
Reference in New Issue
Block a user