-
Notifications
You must be signed in to change notification settings - Fork 1
/
stash.appscode.com_backupsessions.v1.yaml
264 lines (264 loc) · 11.9 KB
/
stash.appscode.com_backupsessions.v1.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: stash
name: backupsessions.stash.appscode.com
spec:
group: stash.appscode.com
names:
categories:
- stash
- appscode
- all
kind: BackupSession
listKind: BackupSessionList
plural: backupsessions
singular: backupsession
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.invoker.kind
name: Invoker-Type
type: string
- jsonPath: .spec.invoker.name
name: Invoker-Name
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1beta1
schema:
openAPIV3Schema:
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:
properties:
invoker:
description: Invoker refers to the BackupConfiguration or BackupBatch
being used to invoke this backup session
properties:
apiGroup:
description: APIGroup is the group for the resource being referenced
type: string
kind:
description: Kind is the type of resource being referenced
type: string
name:
description: Name is the name of resource being referenced
type: string
required:
- kind
- name
type: object
type: object
status:
properties:
conditions:
description: Conditions shows condition of different operations/steps
of the backup process
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another. This should be when the underlying condition changed. If
that is not known, then using the time when the API field
changed is acceptable.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition. This field may be empty.
type: string
observedGeneration:
description: If set, this represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.condition[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
format: int64
type: integer
reason:
description: The reason for the condition's last transition
in CamelCase. The specific API may choose whether or not this
field is considered a guaranteed API. This field may not be
empty.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
Many .condition.type values are consistent across resources
like Available, but because arbitrary conditions can be useful
(see .node.status.conditions), the ability to deconflict is
important.
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
phase:
description: Phase indicates the overall phase of the backup process
for this BackupSession. Phase will be "Succeeded" only if phase
of all hosts are "Succeeded". If any of the host fail to complete
backup, Phase will be "Failed".
enum:
- Pending
- Skipped
- Running
- Succeeded
- Failed
- Unknown
type: string
sessionDuration:
description: SessionDuration specify total time taken to complete
current backup session (sum of backup duration of all targets)
type: string
targets:
description: Targets specify the backup status of individual targets
items:
properties:
phase:
description: Phase indicates backup phase of this target
enum:
- Pending
- Succeeded
- Running
- Failed
type: string
postBackupActions:
description: PostBackupActions specifies a list of actions that
the backup process should execute after taking backup
items:
type: string
type: array
preBackupActions:
description: PreBackupActions specifies a list of actions that
the backup process should execute before taking backup
items:
type: string
type: array
ref:
description: Ref refers to the backup target
properties:
apiVersion:
type: string
kind:
type: string
name:
type: string
type: object
stats:
description: Stats shows statistics of individual hosts for
this backup session
items:
properties:
duration:
description: Duration indicates total time taken to complete
backup for this hosts
type: string
error:
description: Error indicates string value of error in
case of backup failure
type: string
hostname:
description: Hostname indicate name of the host that has
been backed up
type: string
phase:
description: Phase indicates backup phase of this host
enum:
- Succeeded
- Failed
type: string
snapshots:
description: Snapshots specifies the stats of individual
snapshots that has been taken for this host in current
backup session
items:
properties:
fileStats:
description: FileStats shows statistics of files
of this snapshot
properties:
modifiedFiles:
description: ModifiedFiles shows total number
of files that has been modified since last
backup
format: int64
type: integer
newFiles:
description: NewFiles shows total number of
new files that has been created since last
backup
format: int64
type: integer
totalFiles:
description: TotalFiles shows total number of
files that has been backed up
format: int64
type: integer
unmodifiedFiles:
description: UnmodifiedFiles shows total number
of files that has not been changed since last
backup
format: int64
type: integer
type: object
name:
description: Name indicates the name of the backup
snapshot created for this host
type: string
path:
description: Path indicates the directory that has
been backed up in this snapshot
type: string
processingTime:
description: ProcessingTime indicates time taken
to process the target data
type: string
totalSize:
description: TotalSize indicates the size of data
to backup in target directory
type: string
uploaded:
description: Uploaded indicates size of data uploaded
to backend for this snapshot
type: string
type: object
type: array
type: object
type: array
totalHosts:
description: TotalHosts specifies total number of hosts for
this target that will be backed up for a BackupSession
format: int32
type: integer
type: object
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}