Update the api-types doc
This commit makes update to the update api-types docs to add missing fields. It also includes misc changes to the inline comment, and a change to Dockerfile to make sure the build-image works on mac Signed-off-by: Daniel Jiang <jiangd@vmware.com>pull/5634/head
parent
1f41eb49b1
commit
2dce4a7cb5
|
@ -386,9 +386,10 @@ spec:
|
|||
additionalProperties:
|
||||
type: string
|
||||
description: OrderedResources specifies the backup order of resources
|
||||
of specific Kind. The map key is the Kind name and value is a list
|
||||
of resource names separated by commas. Each resource name has format
|
||||
"namespace/resourcename". For cluster resources, simply use "resourcename".
|
||||
of specific Kind. The map key is the resource name and value is
|
||||
a list of object names separated by commas. Each resource name has
|
||||
format "namespace/objectname". For cluster resources, simply use
|
||||
"objectname".
|
||||
nullable: true
|
||||
type: object
|
||||
snapshotVolumes:
|
||||
|
|
|
@ -421,10 +421,10 @@ spec:
|
|||
additionalProperties:
|
||||
type: string
|
||||
description: OrderedResources specifies the backup order of resources
|
||||
of specific Kind. The map key is the Kind name and value is
|
||||
a list of resource names separated by commas. Each resource
|
||||
name has format "namespace/resourcename". For cluster resources,
|
||||
simply use "resourcename".
|
||||
of specific Kind. The map key is the resource name and value
|
||||
is a list of object names separated by commas. Each resource
|
||||
name has format "namespace/objectname". For cluster resources,
|
||||
simply use "objectname".
|
||||
nullable: true
|
||||
type: object
|
||||
snapshotVolumes:
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM golang:1.18
|
||||
FROM --platform=linux/amd64 golang:1.18
|
||||
|
||||
ARG GOPROXY
|
||||
|
||||
|
|
|
@ -113,8 +113,8 @@ type BackupSpec struct {
|
|||
DefaultVolumesToFsBackup *bool `json:"defaultVolumesToFsBackup,omitempty"`
|
||||
|
||||
// OrderedResources specifies the backup order of resources of specific Kind.
|
||||
// The map key is the Kind name and value is a list of resource names separated by commas.
|
||||
// Each resource name has format "namespace/resourcename". For cluster resources, simply use "resourcename".
|
||||
// The map key is the resource name and value is a list of object names separated by commas.
|
||||
// Each resource name has format "namespace/objectname". For cluster resources, simply use "objectname".
|
||||
// +optional
|
||||
// +nullable
|
||||
OrderedResources map[string]string `json:"orderedResources,omitempty"`
|
||||
|
|
|
@ -48,7 +48,13 @@ spec:
|
|||
# or fully-qualified. Optional.
|
||||
excludedResources:
|
||||
- storageclasses.storage.k8s.io
|
||||
# Whether or not to include cluster-scoped resources. Valid values are true, false, and
|
||||
# Order of the resources to be collected during the backup process. It's a map with key being the plural resource
|
||||
# name, and the value being a list of object names separated by comma. Each resource name has format "namespace/objectname".
|
||||
# For cluster resources, simply use "objectname". Optional
|
||||
orderedResources:
|
||||
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1,mysql/mysql-cluster-source-0
|
||||
persistentvolumes: pvc-87ae0832-18fd-4f40-a2a4-5ed4242680c4,pvc-63be1bb0-90f5-4629-a7db-b8ce61ee29b3
|
||||
# Whether to include cluster-scoped resources. Valid values are true, false, and
|
||||
# null/unset. If true, all cluster-scoped resources are included (subject to included/excluded
|
||||
# resources and the label selector). If false, no cluster-scoped resources are included. If unset,
|
||||
# all cluster-scoped resources are included if and only if all namespaces are included and there are
|
||||
|
@ -157,5 +163,4 @@ status:
|
|||
errors: 0
|
||||
# An error that caused the entire backup to fail.
|
||||
failureReason: ""
|
||||
|
||||
```
|
||||
|
|
|
@ -29,8 +29,12 @@ metadata:
|
|||
namespace: velero
|
||||
# Parameters about the restore. Required.
|
||||
spec:
|
||||
# BackupName is the unique name of the Velero backup to restore from.
|
||||
# The unique name of the Velero backup to restore from.
|
||||
backupName: a-very-special-backup
|
||||
# The unique name of the Velero schedule
|
||||
# to restore from. If specified, and BackupName is empty, Velero will
|
||||
# restore from the most recent successful backup created from this schedule.
|
||||
scheduleName: my-scheduled-backup-name
|
||||
# Array of namespaces to include in the restore. If unspecified, all namespaces are included.
|
||||
# Optional.
|
||||
includedNamespaces:
|
||||
|
@ -83,19 +87,18 @@ spec:
|
|||
app: velero
|
||||
- matchLabels:
|
||||
app: data-protection
|
||||
# NamespaceMapping is a map of source namespace names to
|
||||
# namespaceMapping is a map of source namespace names to
|
||||
# target namespace names to restore into. Any source namespaces not
|
||||
# included in the map will be restored into namespaces of the same name.
|
||||
namespaceMapping:
|
||||
namespace-backup-from: namespace-to-restore-to
|
||||
# RestorePVs specifies whether to restore all included PVs
|
||||
# from snapshot (via the cloudprovider).
|
||||
# restorePVs specifies whether to restore all included PVs
|
||||
# from snapshot (via the cloudprovider). Optional
|
||||
restorePVs: true
|
||||
# ScheduleName is the unique name of the Velero schedule
|
||||
# to restore from. If specified, and BackupName is empty, Velero will
|
||||
# restore from the most recent successful backup created from this schedule.
|
||||
scheduleName: my-scheduled-backup-name
|
||||
# ExistingResourcePolicy specifies the restore behaviour
|
||||
# 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
|
||||
preserveNodePorts: true
|
||||
# existingResourcePolicy specifies the restore behaviour
|
||||
# for the kubernetes resource to be restored. Optional
|
||||
existingResourcePolicy: none
|
||||
# Actions to perform during or post restore. The only hooks currently supported are
|
||||
|
|
|
@ -32,6 +32,9 @@ metadata:
|
|||
spec:
|
||||
# Schedule is a Cron expression defining when to run the Backup
|
||||
schedule: 0 7 * * *
|
||||
# Specifies whether to use OwnerReferences on backups created by this Schedule.
|
||||
# Notice: if set to true, when schedule is deleted, backups will be deleted too. Optional.
|
||||
useOwnerReferencesInBackup: false
|
||||
# Template is the spec that should be used for each backup triggered by this schedule.
|
||||
template:
|
||||
# CSISnapshotTimeout specifies the time used to wait for
|
||||
|
@ -53,7 +56,10 @@ spec:
|
|||
# or fully-qualified. Optional.
|
||||
excludedResources:
|
||||
- storageclasses.storage.k8s.io
|
||||
# Whether or not to include cluster-scoped resources. Valid values are true, false, and
|
||||
orderedResources:
|
||||
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1,mysql/mysql-cluster-source-0
|
||||
persistentvolumes: pvc-87ae0832-18fd-4f40-a2a4-5ed4242680c4,pvc-63be1bb0-90f5-4629-a7db-b8ce61ee29b3
|
||||
# Whether to include cluster-scoped resources. Valid values are true, false, and
|
||||
# null/unset. If true, all cluster-scoped resources are included (subject to included/excluded
|
||||
# resources and the label selector). If false, no cluster-scoped resources are included. If unset,
|
||||
# all cluster-scoped resources are included if and only if all namespaces are included and there are
|
||||
|
@ -68,7 +74,7 @@ spec:
|
|||
matchLabels:
|
||||
app: velero
|
||||
component: server
|
||||
# Whether or not to snapshot volumes. This only applies to PersistentVolumes for Azure, GCE, and
|
||||
# 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
|
||||
# a persistent volume provider is configured for Velero.
|
||||
snapshotVolumes: null
|
||||
|
@ -136,9 +142,6 @@ spec:
|
|||
# processed. Only "exec" hooks are supported.
|
||||
post:
|
||||
# Same content as pre above.
|
||||
# Specifies whether to use OwnerReferences on backups created by this Schedule.
|
||||
# Notice: if set to true, when schedule is deleted, backups will be deleted too. Optional.
|
||||
useOwnerReferencesInBackup: false
|
||||
status:
|
||||
# The current phase of the latest scheduled backup. Valid values are New, FailedValidation, InProgress, Completed, PartiallyFailed, Failed.
|
||||
phase: ""
|
||||
|
|
|
@ -48,7 +48,13 @@ spec:
|
|||
# or fully-qualified. Optional.
|
||||
excludedResources:
|
||||
- storageclasses.storage.k8s.io
|
||||
# Whether or not to include cluster-scoped resources. Valid values are true, false, and
|
||||
# Order of the resources to be collected during the backup process. It's a map with key being the plural resource
|
||||
# name, and the value being a list of object names separated by comma. Each resource name has format "namespace/objectname".
|
||||
# For cluster resources, simply use "objectname". Optional
|
||||
orderedResources:
|
||||
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1,mysql/mysql-cluster-source-0
|
||||
persistentvolumes: pvc-87ae0832-18fd-4f40-a2a4-5ed4242680c4,pvc-63be1bb0-90f5-4629-a7db-b8ce61ee29b3
|
||||
# Whether to include cluster-scoped resources. Valid values are true, false, and
|
||||
# null/unset. If true, all cluster-scoped resources are included (subject to included/excluded
|
||||
# resources and the label selector). If false, no cluster-scoped resources are included. If unset,
|
||||
# all cluster-scoped resources are included if and only if all namespaces are included and there are
|
||||
|
@ -157,5 +163,4 @@ status:
|
|||
errors: 0
|
||||
# An error that caused the entire backup to fail.
|
||||
failureReason: ""
|
||||
|
||||
```
|
||||
|
|
|
@ -29,8 +29,12 @@ metadata:
|
|||
namespace: velero
|
||||
# Parameters about the restore. Required.
|
||||
spec:
|
||||
# BackupName is the unique name of the Velero backup to restore from.
|
||||
# The unique name of the Velero backup to restore from.
|
||||
backupName: a-very-special-backup
|
||||
# The unique name of the Velero schedule
|
||||
# to restore from. If specified, and BackupName is empty, Velero will
|
||||
# restore from the most recent successful backup created from this schedule.
|
||||
scheduleName: my-scheduled-backup-name
|
||||
# Array of namespaces to include in the restore. If unspecified, all namespaces are included.
|
||||
# Optional.
|
||||
includedNamespaces:
|
||||
|
@ -83,19 +87,18 @@ spec:
|
|||
app: velero
|
||||
- matchLabels:
|
||||
app: data-protection
|
||||
# NamespaceMapping is a map of source namespace names to
|
||||
# namespaceMapping is a map of source namespace names to
|
||||
# target namespace names to restore into. Any source namespaces not
|
||||
# included in the map will be restored into namespaces of the same name.
|
||||
namespaceMapping:
|
||||
namespace-backup-from: namespace-to-restore-to
|
||||
# RestorePVs specifies whether to restore all included PVs
|
||||
# from snapshot (via the cloudprovider).
|
||||
# restorePVs specifies whether to restore all included PVs
|
||||
# from snapshot (via the cloudprovider). Optional
|
||||
restorePVs: true
|
||||
# ScheduleName is the unique name of the Velero schedule
|
||||
# to restore from. If specified, and BackupName is empty, Velero will
|
||||
# restore from the most recent successful backup created from this schedule.
|
||||
scheduleName: my-scheduled-backup-name
|
||||
# ExistingResourcePolicy specifies the restore behaviour
|
||||
# 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
|
||||
preserveNodePorts: true
|
||||
# existingResourcePolicy specifies the restore behaviour
|
||||
# for the kubernetes resource to be restored. Optional
|
||||
existingResourcePolicy: none
|
||||
# Actions to perform during or post restore. The only hooks currently supported are
|
||||
|
|
|
@ -32,6 +32,9 @@ metadata:
|
|||
spec:
|
||||
# Schedule is a Cron expression defining when to run the Backup
|
||||
schedule: 0 7 * * *
|
||||
# Specifies whether to use OwnerReferences on backups created by this Schedule.
|
||||
# Notice: if set to true, when schedule is deleted, backups will be deleted too. Optional.
|
||||
useOwnerReferencesInBackup: false
|
||||
# Template is the spec that should be used for each backup triggered by this schedule.
|
||||
template:
|
||||
# CSISnapshotTimeout specifies the time used to wait for
|
||||
|
@ -53,7 +56,10 @@ spec:
|
|||
# or fully-qualified. Optional.
|
||||
excludedResources:
|
||||
- storageclasses.storage.k8s.io
|
||||
# Whether or not to include cluster-scoped resources. Valid values are true, false, and
|
||||
orderedResources:
|
||||
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1,mysql/mysql-cluster-source-0
|
||||
persistentvolumes: pvc-87ae0832-18fd-4f40-a2a4-5ed4242680c4,pvc-63be1bb0-90f5-4629-a7db-b8ce61ee29b3
|
||||
# Whether to include cluster-scoped resources. Valid values are true, false, and
|
||||
# null/unset. If true, all cluster-scoped resources are included (subject to included/excluded
|
||||
# resources and the label selector). If false, no cluster-scoped resources are included. If unset,
|
||||
# all cluster-scoped resources are included if and only if all namespaces are included and there are
|
||||
|
@ -68,7 +74,7 @@ spec:
|
|||
matchLabels:
|
||||
app: velero
|
||||
component: server
|
||||
# Whether or not to snapshot volumes. This only applies to PersistentVolumes for Azure, GCE, and
|
||||
# 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
|
||||
# a persistent volume provider is configured for Velero.
|
||||
snapshotVolumes: null
|
||||
|
@ -136,9 +142,6 @@ spec:
|
|||
# processed. Only "exec" hooks are supported.
|
||||
post:
|
||||
# Same content as pre above.
|
||||
# Specifies whether to use OwnerReferences on backups created by this Schedule.
|
||||
# Notice: if set to true, when schedule is deleted, backups will be deleted too. Optional.
|
||||
useOwnerReferencesInBackup: false
|
||||
status:
|
||||
# The current phase of the latest scheduled backup. Valid values are New, FailedValidation, InProgress, Completed, PartiallyFailed, Failed.
|
||||
phase: ""
|
||||
|
|
Loading…
Reference in New Issue