2019-09-23 16:25:48 +00:00
---
apiVersion : apiextensions.k8s.io/v1beta1
kind : CustomResourceDefinition
metadata :
2019-10-21 20:49:32 +00:00
annotations :
k8s 1.18 import (#2651)
* k8s 1.18 import wip
backup, cmd, controller, generated, restic, restore, serverstatusrequest, test and util
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* go mod tidy
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* add changelog file
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* go fmt
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* update code-generator and controller-gen in CI
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* checkout proper code-generator version, regen
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* fix remaining calls
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* regenerate CRDs with ./hack/update-generated-crd-code.sh
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* use existing context in restic and server
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* fix test cases by resetting resource version
also use main library go context, not golang.org/x/net/context, in pkg/restore/restore.go
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* clarify changelog message
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* use github.com/kubernetes-csi/external-snapshotter/v2@v2.2.0-rc1
Signed-off-by: Andrew Lavery <laverya@umich.edu>
* run 'go mod tidy' to remove old external-snapshotter version
Signed-off-by: Andrew Lavery <laverya@umich.edu>
2020-07-16 16:21:37 +00:00
controller-gen.kubebuilder.io/version : v0.3.0
2019-09-23 16:25:48 +00:00
creationTimestamp : null
name : podvolumerestores.velero.io
spec :
2020-10-27 22:19:33 +00:00
additionalPrinterColumns :
- JSONPath : .status.phase
description : Restore status such as InProgress/Completed
name : Status
type : string
- JSONPath : .spec.pod.namespace
description : Namespace of pod containing the volume to be restored
name : Namespace
type : string
- JSONPath : .spec.pod.name
description : Name of pod containing the volume to be restored
name : Pod
type : string
- JSONPath : .spec.volume
description : Name of volume to restore
name : Volume
type : string
- JSONPath : .status.progress.bytesDone
description : Number of bytes restored
name : Bytes Done
type : string
- JSONPath : .status.progress.totalBytes
description : Total number of bytes to be restored
name : Total Bytes
type : string
- JSONPath : .status.startTimestamp
description : Time when the restore operation was started
name : Started
type : date
- JSONPath : .status.completionTimestamp
description : Time when the restore operation was completed
name : Completed
type : date
- JSONPath : .metadata.creationTimestamp
name : Age
type : date
2019-09-23 16:25:48 +00:00
group : velero.io
names :
kind : PodVolumeRestore
listKind : PodVolumeRestoreList
plural : podvolumerestores
singular : podvolumerestore
2020-01-28 19:04:28 +00:00
preserveUnknownFields : false
scope : Namespaced
2020-10-27 22:19:33 +00:00
subresources : {}
2019-09-23 16:25:48 +00:00
validation :
openAPIV3Schema :
properties :
apiVersion :
description : 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
2020-01-10 16:55:58 +00:00
internal value, and may reject unrecognized values. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2019-09-23 16:25:48 +00:00
type : string
kind :
description : 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
2020-01-10 16:55:58 +00:00
submits requests to. Cannot be updated. In CamelCase. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2019-09-23 16:25:48 +00:00
type : string
metadata :
type : object
spec :
description : PodVolumeRestoreSpec is the specification for a PodVolumeRestore.
properties :
backupStorageLocation :
description : BackupStorageLocation is the name of the backup storage
location where the restic repository is stored.
type : string
pod :
description : Pod is a reference to the pod containing the volume to
be restored.
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
description : 'If referring to a piece of an object instead of an
entire object, this string should contain a valid JSON/Go field
access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container within
a pod, this would take on a value like : "spec.containers{name}"
(where "name" refers to the name of the container that triggered
the event) or if no container name is specified "spec.containers[2]"
(container with index 2 in this pod). This syntax is chosen only
to have some well-defined way of referencing a part of an object.
TODO : this design is not final and this field is subject to change
in the future.'
type : string
kind :
2020-01-10 16:55:58 +00:00
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2019-09-23 16:25:48 +00:00
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
description : 'Specific resourceVersion to which this reference is
2020-01-10 16:55:58 +00:00
made, if any. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
2019-09-23 16:25:48 +00:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
type : object
repoIdentifier :
description : RepoIdentifier is the restic repository identifier.
type : string
snapshotID :
description : SnapshotID is the ID of the volume snapshot to be restored.
type : string
volume :
description : Volume is the name of the volume within the Pod to be restored.
type : string
required :
- backupStorageLocation
- pod
- repoIdentifier
- snapshotID
- volume
type : object
status :
description : PodVolumeRestoreStatus is the current status of a PodVolumeRestore.
properties :
completionTimestamp :
description : CompletionTimestamp records the time a restore was completed.
Completion time is recorded even on failed restores. The server's
time is used for CompletionTimestamps
format : date-time
2019-09-24 22:37:28 +00:00
nullable : true
2019-09-23 16:25:48 +00:00
type : string
message :
description : Message is a message about the pod volume restore's status.
type : string
phase :
description : Phase is the current state of the PodVolumeRestore.
2019-09-24 22:37:28 +00:00
enum :
- New
- InProgress
- Completed
- Failed
2019-09-23 16:25:48 +00:00
type : string
2019-09-24 22:37:28 +00:00
progress :
description : Progress holds the total number of bytes of the snapshot
and the current number of restored bytes. This can be used to display
progress information about the restore operation.
properties :
bytesDone :
format : int64
type : integer
totalBytes :
format : int64
type : integer
type : object
2019-09-23 16:25:48 +00:00
startTimestamp :
description : StartTimestamp records the time a restore was started.
The server's time is used for StartTimestamps
format : date-time
2019-09-24 22:37:28 +00:00
nullable : true
2019-09-23 16:25:48 +00:00
type : string
type : object
type : object
version : v1
versions :
- name : v1
served : true
storage : true
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]