Skip to content

Commit

Permalink
Merge pull request #414 from qiuming-best/velero-v1.10.0
Browse files Browse the repository at this point in the history
[velero] Bump velero version v1.10.0
  • Loading branch information
qiuming-best authored Dec 22, 2022
2 parents f5e6c84 + e8e7958 commit 08bf56b
Show file tree
Hide file tree
Showing 19 changed files with 328 additions and 1,603 deletions.
4 changes: 2 additions & 2 deletions charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: 1.9.4
appVersion: 1.10.0
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 2.32.6
version: 3.0.0
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
12 changes: 9 additions & 3 deletions charts/velero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Velero has two main components: a CLI, and a server-side Kubernetes deployment.

## Installing the Velero CLI

See the different options for installing the [Velero CLI](https://velero.io/docs/v1.9/basic-install/#install-the-cli).
See the different options for installing the [Velero CLI](https://velero.io/docs/v1.10/basic-install/#install-the-cli).

## Installing the Velero server

Expand All @@ -16,7 +16,7 @@ Kubernetes v1.16+, because this helm chart uses CustomResourceDefinition `apiext

### Velero version

This helm chart installs Velero version v1.9 https://velero.io/docs/v1.9/. See the [#Upgrading](#upgrading) section for information on how to upgrade from other versions.
This helm chart installs Velero version v1.10 https://velero.io/docs/v1.10/. See the [#Upgrading](#upgrading) section for information on how to upgrade from other versions.

### Provider credentials

Expand All @@ -26,7 +26,7 @@ When installing using the Helm chart, the provider's credential information will

The default configuration values for this chart are listed in values.yaml.

See Velero's full [official documentation](https://velero.io/docs/v1.9/basic-install/). More specifically, find your provider in the Velero list of [supported providers](https://velero.io/docs/v1.9/supported-providers/) for specific configuration information and examples.
See Velero's full [official documentation](https://velero.io/docs/v1.10/basic-install/). More specifically, find your provider in the Velero list of [supported providers](https://velero.io/docs/v1.10/supported-providers/) for specific configuration information and examples.

#### Set up Helm

Expand Down Expand Up @@ -89,6 +89,10 @@ helm upgrade vmware-tanzu/velero <RELEASE NAME> --reuse-values --set configurati

## Upgrading

### Upgrading to v1.10

The [instructions found here](https://velero.io/docs/v1.10/upgrade-to-1.10/) will assist you in upgrading from version v1.9.x to v1.10.

### Upgrading to v1.9

The [instructions found here](https://velero.io/docs/v1.9/upgrade-to-1.9/) will assist you in upgrading from version v1.8.x to v1.9.
Expand Down Expand Up @@ -134,3 +138,5 @@ Note: when you uninstall the Velero server, all backups remain untouched.
```bash
helm uninstall <RELEASE NAME> -n <YOUR NAMESPACE>
```
### Note
Since from velero v1.10.0, it has supported both Restic and Kopia to do file-system level backup and restore, some configuration that contains the keyword Restic is not suitable anymore, which means from chart version 3.0.0 is not backward compatible, and we've done a configure filed name validation.
16 changes: 8 additions & 8 deletions charts/velero/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ resources:
cpu: 100m
memory: 128Mi

# The restic daemonset
deployRestic: true
# The node-agent daemonset
deployNodeAgent: true

restic:
# Annotations to restic daemonset
nodeAgent:
# Annotations to node-agent daemonset
annotations:
annotation: restic
annotation: node-agent
foo: bar
# Labels to restic daemonset
# Labels to node-agent daemonset
labels:
label: restic
label: node-agent
foo: bar
# Resources to restic daemonset
# Resources to node-agent daemonset
resources:
requests:
cpu: 100m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
name: resticrepositories.velero.io
name: backuprepositories.velero.io
spec:
group: velero.io
names:
kind: ResticRepository
listKind: ResticRepositoryList
plural: resticrepositories
singular: resticrepository
kind: BackupRepository
listKind: BackupRepositoryList
plural: backuprepositories
singular: backuprepository
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .spec.repositoryType
name: Repository Type
type: string
name: v1
schema:
openAPIV3Schema:
Expand All @@ -39,7 +42,7 @@ spec:
metadata:
type: object
spec:
description: ResticRepositorySpec is the specification for a ResticRepository.
description: BackupRepositorySpec is the specification for a BackupRepository.
properties:
backupStorageLocation:
description: BackupStorageLocation is the name of the BackupStorageLocation
Expand All @@ -49,12 +52,19 @@ spec:
description: MaintenanceFrequency is how often maintenance should
be run.
type: string
repositoryType:
description: RepositoryType indicates the type of the backend repository
enum:
- kopia
- restic
- ""
type: string
resticIdentifier:
description: ResticIdentifier is the full restic-compatible string
for identifying this repository.
type: string
volumeNamespace:
description: VolumeNamespace is the namespace this restic repository
description: VolumeNamespace is the namespace this backup repository
contains pod volume backups for.
type: string
required:
Expand All @@ -64,7 +74,7 @@ spec:
- volumeNamespace
type: object
status:
description: ResticRepositoryStatus is the current status of a ResticRepository.
description: BackupRepositoryStatus is the current status of a BackupRepository.
properties:
lastMaintenanceTime:
description: LastMaintenanceTime is the last time maintenance was
Expand All @@ -74,10 +84,10 @@ spec:
type: string
message:
description: Message is a message about the current status of the
ResticRepository.
BackupRepository.
type: string
phase:
description: Phase is the current state of the ResticRepository.
description: Phase is the current state of the BackupRepository.
enum:
- New
- Ready
Expand Down
12 changes: 10 additions & 2 deletions charts/velero/crds/backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,17 @@ spec:
CSI VolumeSnapshot status turns to ReadyToUse during creation, before
returning error as timeout. The default value is 10 minute.
type: string
defaultVolumesToFsBackup:
description: DefaultVolumesToFsBackup specifies whether pod volume
file system backup should be used for all volumes by default.
nullable: true
type: boolean
defaultVolumesToRestic:
description: DefaultVolumesToRestic specifies whether restic should
be used to take a backup of all pod volumes by default.
description: "DefaultVolumesToRestic specifies whether restic should
be used to take a backup of all pod volumes by default. \n Deprecated:
this field is no longer used and will be removed entirely in future.
Use DefaultVolumesToFsBackup instead."
nullable: true
type: boolean
excludedNamespaces:
description: ExcludedNamespaces contains a list of namespaces that
Expand Down
20 changes: 16 additions & 4 deletions charts/velero/crds/podvolumebackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ spec:
jsonPath: .spec.volume
name: Volume
type: string
- description: Restic repository identifier for this backup
- description: Backup repository identifier for this backup
jsonPath: .spec.repoIdentifier
name: Restic Repo
name: Repository ID
type: string
- description: The type of the uploader to handle data transfer
jsonPath: .spec.uploaderType
name: Uploader Type
type: string
- description: Name of the Backup Storage Location where this backup should be
stored
Expand Down Expand Up @@ -72,7 +76,7 @@ spec:
properties:
backupStorageLocation:
description: BackupStorageLocation is the name of the backup storage
location where the restic repository is stored.
location where the backup repository is stored.
type: string
node:
description: Node is the name of the node that the Pod is running
Expand Down Expand Up @@ -116,14 +120,22 @@ spec:
type: string
type: object
repoIdentifier:
description: RepoIdentifier is the restic repository identifier.
description: RepoIdentifier is the backup repository identifier.
type: string
tags:
additionalProperties:
type: string
description: Tags are a map of key-value pairs that should be applied
to the volume backup as tags.
type: object
uploaderType:
description: UploaderType is the type of the uploader to handle the
data transfer.
enum:
- kopia
- restic
- ""
type: string
volume:
description: Volume is the name of the volume within the Pod to be
backed up.
Expand Down
21 changes: 19 additions & 2 deletions charts/velero/crds/podvolumerestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
jsonPath: .spec.pod.name
name: Pod
type: string
- description: The type of the uploader to handle data transfer
jsonPath: .spec.uploaderType
name: Uploader Type
type: string
- description: Name of the volume to be restored
jsonPath: .spec.volume
name: Volume
Expand Down Expand Up @@ -69,7 +73,7 @@ spec:
properties:
backupStorageLocation:
description: BackupStorageLocation is the name of the backup storage
location where the restic repository is stored.
location where the backup repository is stored.
type: string
pod:
description: Pod is a reference to the pod containing the volume to
Expand Down Expand Up @@ -109,11 +113,23 @@ spec:
type: string
type: object
repoIdentifier:
description: RepoIdentifier is the restic repository identifier.
description: RepoIdentifier is the backup repository identifier.
type: string
snapshotID:
description: SnapshotID is the ID of the volume snapshot to be restored.
type: string
sourceNamespace:
description: SourceNamespace is the original namespace for namaspace
mapping.
type: string
uploaderType:
description: UploaderType is the type of the uploader to handle the
data transfer.
enum:
- kopia
- restic
- ""
type: string
volume:
description: Volume is the name of the volume within the Pod to be
restored.
Expand All @@ -123,6 +139,7 @@ spec:
- pod
- repoIdentifier
- snapshotID
- sourceNamespace
- volume
type: object
status:
Expand Down
Loading

0 comments on commit 08bf56b

Please sign in to comment.