forked from cbws/etcd-operator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
etcd.database.coreos.com_etcdrestores.yaml
172 lines (172 loc) · 7.96 KB
/
etcd.database.coreos.com_etcdrestores.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.1
creationTimestamp: null
name: etcdrestores.etcd.database.coreos.com
spec:
group: etcd.database.coreos.com
names:
kind: EtcdRestore
listKind: EtcdRestoreList
plural: etcdrestores
singular: etcdrestore
scope: Namespaced
versions:
- name: v1beta2
schema:
openAPIV3Schema:
description: EtcdRestore represents a Kubernetes EtcdRestore Custom Resource.
The EtcdRestore CR name will be used as the name of the new restored cluster.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: RestoreSpec defines how to restore an etcd cluster from existing
backup.
properties:
abs:
description: ABS tells where on ABS the backup is saved and how to
fetch the backup.
properties:
absSecret:
description: The name of the secret object that stores the Azure
Blob Storage credential.
type: string
path:
description: 'Path is the full abs path where the backup is saved.
The format of the path must be: "<abs-container-name>/<path-to-backup-file>"
e.g: "myabscontainer/etcd.backup"'
type: string
required:
- absSecret
- path
type: object
backupStorageType:
description: BackupStorageType is the type of the backup storage which
is used as RestoreSource.
type: string
etcdCluster:
description: EtcdCluster references an EtcdCluster resource whose
metadata and spec will be used to create the new restored EtcdCluster
CR. This reference EtcdCluster CR and all its resources will be
deleted before the restored EtcdCluster CR is created.
properties:
name:
description: Name is the EtcdCluster resource name. This reference
EtcdCluster must be present in the same namespace as the restore-operator
type: string
required:
- name
type: object
gcs:
description: GCS tells where on GCS the backup is saved and how to
fetch the backup.
properties:
gcpSecret:
description: "The name of the secret object that stores the Google
storage credential containing at most ONE of the following:
An access token with file name of 'access-token'. JSON credentials
with file name of 'credentials.json'. \n If omitted, client
will use the default application credentials."
type: string
path:
description: 'Path is the full GCS path where the backup is saved.
The format of the path must be: "<gcs-bucket-name>/<path-to-backup-file>"
e.g: "mygcsbucket/etcd.backup"'
type: string
required:
- path
type: object
oss:
description: OSS tells where on OSS the backup is saved and how to
fetch the backup.
properties:
endpoint:
description: "Endpoint is the OSS service endpoint on alibaba
cloud, defaults to \"http://oss-cn-hangzhou.aliyuncs.com\".
\n Details about regions and endpoints, see: https://www.alibabacloud.com/help/doc-detail/31837.htm"
type: string
ossSecret:
description: "The name of the secret object that stores the credential
which will be used to access Alibaba Cloud OSS. \n The secret
must contain the following keys/fields: accessKeyID accessKeySecret
\n The format of secret: \n apiVersion: v1 kind: Secret metadata:
name: <my-credential-name> type: Opaque data: accessKeyID: <base64
of my-access-key-id> accessKeySecret: <base64 of my-access-key-secret>"
type: string
path:
description: 'Path is the full abs path where the backup is saved.
The format of the path must be: "<oss-bucket-name>/<path-to-backup-file>"
e.g: "myossbucket/etcd.backup"'
type: string
required:
- ossSecret
- path
type: object
s3:
description: S3 tells where on S3 the backup is saved and how to fetch
the backup.
properties:
awsSecret:
description: "The name of the secret object that stores the AWS
credential and config files. The file name of the credential
MUST be 'credentials'. The file name of the config MUST be 'config'.
The profile to use in both files will be 'default'. \n AWSSecret
overwrites the default etcd operator wide AWS credential and
config."
type: string
endpoint:
description: Endpoint if blank points to aws. If specified, can
point to s3 compatible object stores.
type: string
forcePathStyle:
description: ForcePathStyle forces to use path style over the
default subdomain style. This is useful when you have an s3
compatible endpoint that doesn't support subdomain buckets.
type: boolean
path:
description: 'Path is the full s3 path where the backup is saved.
The format of the path must be: "<s3-bucket-name>/<path-to-backup-file>"
e.g: "mybucket/etcd.backup"'
type: string
required:
- awsSecret
- endpoint
- forcePathStyle
- path
type: object
required:
- backupStorageType
- etcdCluster
type: object
status:
description: RestoreStatus reports the status of this restore operation.
properties:
reason:
description: Reason indicates the reason for any backup related failures.
type: string
succeeded:
description: Succeeded indicates if the backup has Succeeded.
type: boolean
required:
- succeeded
type: object
required:
- metadata
- spec
type: object
served: true
storage: true