Skip to content

Commit

Permalink
Merge pull request #5807 from shubham-pampattiwar/update-crd-desc
Browse files Browse the repository at this point in the history
Update CRD descriptions for SnapshotVolumes and restorePVs
  • Loading branch information
sseago committed Feb 6, 2023
2 parents 218fd76 + 428415c commit 53f3d13
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/5807-shubham-pampattiwar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update CRD descriptions for SnapshotVolumes and restorePVs
4 changes: 2 additions & 2 deletions config/crd/v1/bases/velero.io_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ spec:
nullable: true
type: object
snapshotVolumes:
description: SnapshotVolumes specifies whether to take cloud snapshots
of any PV's referenced in the set of objects included in the Backup.
description: SnapshotVolumes specifies whether to take snapshots of
any PV's referenced in the set of objects included in the Backup.
nullable: true
type: boolean
storageLocation:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/v1/bases/velero.io_restores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ spec:
type: boolean
restorePVs:
description: RestorePVs specifies whether to restore all included
PVs from snapshot (via the cloudprovider).
PVs from snapshot
nullable: true
type: boolean
restoreStatus:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/v1/bases/velero.io_schedules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ spec:
nullable: true
type: object
snapshotVolumes:
description: SnapshotVolumes specifies whether to take cloud snapshots
description: SnapshotVolumes specifies whether to take snapshots
of any PV's referenced in the set of objects included in the
Backup.
nullable: true
Expand Down
6 changes: 3 additions & 3 deletions config/crd/v1/crds/crds.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/apis/velero/v1/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type BackupSpec struct {
// +nullable
OrLabelSelectors []*metav1.LabelSelector `json:"orLabelSelectors,omitempty"`

// SnapshotVolumes specifies whether to take cloud snapshots
// SnapshotVolumes specifies whether to take snapshots
// of any PV's referenced in the set of objects included
// in the Backup.
// +optional
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/velero/v1/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type RestoreSpec struct {
OrLabelSelectors []*metav1.LabelSelector `json:"orLabelSelectors,omitempty"`

// RestorePVs specifies whether to restore all included
// PVs from snapshot (via the cloudprovider).
// PVs from snapshot
// +optional
// +nullable
RestorePVs *bool `json:"restorePVs,omitempty"`
Expand Down
3 changes: 1 addition & 2 deletions site/content/docs/main/api-types/backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ spec:
app: velero
- matchLabels:
app: data-protection
# Whether or not to snapshot volumes. This only applies to PersistentVolumes for Azure, GCE, and
# AWS. Valid values are true, false, and null/unset. If unset, Velero performs snapshots as long as
# Whether or not to snapshot volumes. Valid values are true, false, and null/unset. If unset, Velero performs snapshots as long as
# a persistent volume provider is configured for Velero.
snapshotVolumes: null
# Where to store the tarball and logs.
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/main/api-types/restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
namespaceMapping:
namespace-backup-from: namespace-to-restore-to
# restorePVs specifies whether to restore all included PVs
# from snapshot (via the cloudprovider). Optional
# from snapshot. Optional
restorePVs: true
# preserveNodePorts specifies whether to restore old nodePorts from backup,
# so that the exposed port numbers on the node will remain the same after restore. Optional
Expand Down
3 changes: 1 addition & 2 deletions site/content/docs/main/api-types/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ spec:
matchLabels:
app: velero
component: server
# Whether to snapshot volumes. This only applies to PersistentVolumes for Azure, GCE, and
# AWS. Valid values are true, false, and null/unset. If unset, Velero performs snapshots as long as
# Whether to snapshot volumes. Valid values are true, false, and null/unset. If unset, Velero performs snapshots as long as
# a persistent volume provider is configured for Velero.
snapshotVolumes: null
# Where to store the tarball and logs.
Expand Down

0 comments on commit 53f3d13

Please sign in to comment.