diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 529d5a30270f..2eca6b41fb8c 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -15706,7 +15706,7 @@ "type": "boolean" }, "name": { - "description": "Name represents the name of the DataVolume in the same namespace", + "description": "Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default.", "type": "string" } } diff --git a/pkg/virt-operator/resource/generate/components/validations_generated.go b/pkg/virt-operator/resource/generate/components/validations_generated.go index bfd77fbd1ff1..22f7b7712b6b 100644 --- a/pkg/virt-operator/resource/generate/components/validations_generated.go +++ b/pkg/virt-operator/resource/generate/components/validations_generated.go @@ -6364,8 +6364,9 @@ var CRDsValidation map[string]string = map[string]string{ can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the DataVolume - in the same namespace + description: Name of both the DataVolume and the PVC in + the same namespace. After PVC population the DataVolume + is garbage collected by default. type: string required: - name @@ -6903,8 +6904,9 @@ var CRDsValidation map[string]string = map[string]string{ can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the DataVolume - in the same namespace + description: Name of both the DataVolume and the PVC in + the same namespace. After PVC population the DataVolume + is garbage collected by default. type: string required: - name @@ -10458,8 +10460,9 @@ var CRDsValidation map[string]string = map[string]string{ hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the DataVolume in the - same namespace + description: Name of both the DataVolume and the PVC in the same + namespace. After PVC population the DataVolume is garbage collected + by default. type: string required: - name @@ -14967,8 +14970,9 @@ var CRDsValidation map[string]string = map[string]string{ can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the DataVolume - in the same namespace + description: Name of both the DataVolume and the PVC in + the same namespace. After PVC population the DataVolume + is garbage collected by default. type: string required: - name @@ -18994,8 +18998,9 @@ var CRDsValidation map[string]string = map[string]string{ volume can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the DataVolume - in the same namespace + description: Name of both the DataVolume and the + PVC in the same namespace. After PVC population + the DataVolume is garbage collected by default. type: string required: - name @@ -23697,8 +23702,10 @@ var CRDsValidation map[string]string = map[string]string{ the volume can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the - DataVolume in the same namespace + description: Name of both the DataVolume and + the PVC in the same namespace. After PVC + population the DataVolume is garbage collected + by default. type: string required: - name @@ -24288,8 +24295,10 @@ var CRDsValidation map[string]string = map[string]string{ the volume can be hotplugged and hotunplugged. type: boolean name: - description: Name represents the name of the - DataVolume in the same namespace + description: Name of both the DataVolume and + the PVC in the same namespace. After PVC + population the DataVolume is garbage collected + by default. type: string required: - name diff --git a/staging/src/kubevirt.io/api/core/v1/schema.go b/staging/src/kubevirt.io/api/core/v1/schema.go index 3cfcdd3a4876..753a7ac6913d 100644 --- a/staging/src/kubevirt.io/api/core/v1/schema.go +++ b/staging/src/kubevirt.io/api/core/v1/schema.go @@ -777,7 +777,8 @@ type HotplugVolumeSource struct { } type DataVolumeSource struct { - // Name represents the name of the DataVolume in the same namespace + // Name of both the DataVolume and the PVC in the same namespace. + // After PVC population the DataVolume is garbage collected by default. Name string `json:"name"` // Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. // +optional diff --git a/staging/src/kubevirt.io/api/core/v1/schema_swagger_generated.go b/staging/src/kubevirt.io/api/core/v1/schema_swagger_generated.go index d5aa431781fc..e61ce4d170e3 100644 --- a/staging/src/kubevirt.io/api/core/v1/schema_swagger_generated.go +++ b/staging/src/kubevirt.io/api/core/v1/schema_swagger_generated.go @@ -419,7 +419,7 @@ func (HotplugVolumeSource) SwaggerDoc() map[string]string { func (DataVolumeSource) SwaggerDoc() map[string]string { return map[string]string{ - "name": "Name represents the name of the DataVolume in the same namespace", + "name": "Name of both the DataVolume and the PVC in the same namespace.\nAfter PVC population the DataVolume is garbage collected by default.", "hotpluggable": "Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.\n+optional", } } diff --git a/staging/src/kubevirt.io/client-go/api/openapi_generated.go b/staging/src/kubevirt.io/client-go/api/openapi_generated.go index cab0d7615026..dc1d9c8c222e 100644 --- a/staging/src/kubevirt.io/client-go/api/openapi_generated.go +++ b/staging/src/kubevirt.io/client-go/api/openapi_generated.go @@ -15463,7 +15463,7 @@ func schema_kubevirtio_api_core_v1_DataVolumeSource(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name represents the name of the DataVolume in the same namespace", + Description: "Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default.", Type: []string{"string"}, Format: "", },