mark persistentvolume's claimRef as granular
This commit is contained in:
parent
133c265530
commit
84f795d04a
3
api/openapi-spec/swagger.json
generated
3
api/openapi-spec/swagger.json
generated
@ -7324,7 +7324,8 @@
|
||||
},
|
||||
"claimRef": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference",
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding"
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"csi": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.CSIPersistentVolumeSource",
|
||||
|
@ -4341,7 +4341,8 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding"
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"csi": {
|
||||
"allOf": [
|
||||
|
@ -693,7 +693,8 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding"
|
||||
"description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding",
|
||||
"x-kubernetes-map-type": "granular"
|
||||
},
|
||||
"csi": {
|
||||
"allOf": [
|
||||
|
5
pkg/generated/openapi/zz_generated.openapi.go
generated
5
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -20823,6 +20823,11 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback)
|
||||
},
|
||||
},
|
||||
"claimRef": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-map-type": "granular",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding",
|
||||
Ref: ref("k8s.io/api/core/v1.ObjectReference"),
|
||||
|
@ -2951,6 +2951,7 @@ message PersistentVolumeSpec {
|
||||
// claim.VolumeName is the authoritative bind between PV and PVC.
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
|
||||
// +optional
|
||||
// +structType=granular
|
||||
optional ObjectReference claimRef = 4;
|
||||
|
||||
// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
|
||||
|
@ -337,6 +337,7 @@ type PersistentVolumeSpec struct {
|
||||
// claim.VolumeName is the authoritative bind between PV and PVC.
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
|
||||
// +optional
|
||||
// +structType=granular
|
||||
ClaimRef *ObjectReference `json:"claimRef,omitempty" protobuf:"bytes,4,opt,name=claimRef"`
|
||||
// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
|
||||
// Valid options are Retain (default for manually created PersistentVolumes), Delete (default
|
||||
|
@ -5433,6 +5433,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: claimRef
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ObjectReference
|
||||
elementRelationship: separable
|
||||
- name: csi
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.CSIPersistentVolumeSource
|
||||
|
Loading…
Reference in New Issue
Block a user