Skip to content

Commit

Permalink
Merge pull request kubevirt#8726 from arnongilboa/dvsource_gc_doc
Browse files Browse the repository at this point in the history
Add GC note to DataVolumeSource api doc
  • Loading branch information
kubevirt-bot authored Nov 10, 2022
2 parents 50b0d64 + 06e62dd commit 24ec5ba
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion staging/src/kubevirt.io/api/core/v1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/kubevirt.io/client-go/api/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24ec5ba

Please sign in to comment.