Skip to content

Commit 66d6dca

Browse files
(Documentation) Update ArangoBackup and ArangoBackupPolicy CR auto-generated docs (#1452)
* (Documentation) Update ArangoBackup and ArangoBackupPolicy CR auto-generated docs * Sort keys before printing sections, do not use maps package
1 parent f28c698 commit 66d6dca

16 files changed

+572
-552
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- (Feature) Add `spec.upgrade.debugLog` option to configure upgrade container logging
88
- (Documentation) Move documentation from ArangoDB into this repo, update and improve structure
99
- (Documentation) Update ArangoDeployment CR auto-generated docs
10+
- (Documentation) Update ArangoBackup and ArangoBackupPolicy CR auto-generated docs
1011

1112
## [1.2.34](https://github.com/arangodb/kube-arangodb/tree/1.2.34) (2023-10-16)
1213
- (Bugfix) Fix make manifests-crd-file command

docs/api/ArangoBackup.V1.md

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
# API Reference for ArangoBackup V1
2+
3+
## Spec
4+
5+
### .spec.backoff.iterations: int
6+
7+
Iterations defines number of iterations before reaching MaxDelay. Default to 5
8+
9+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L31)
10+
11+
### .spec.backoff.max_delay: int
12+
13+
MaxDelay defines maximum delay in seconds. Default to 600
14+
15+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L29)
16+
17+
### .spec.backoff.max_iterations: int
18+
19+
MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit)
20+
21+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L33)
22+
23+
### .spec.backoff.min_delay: int
24+
25+
MinDelay defines minimum delay in seconds. Default to 30
26+
27+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L27)
28+
29+
### .spec.deployment.name: string
30+
31+
Name of the ArangoDeployment Custom Resource within same namespace as ArangoBackup Custom Resource.
32+
33+
This field is **immutable**: can't be changed after backup creation
34+
35+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L54)
36+
37+
### .spec.download.credentialsSecretName: string
38+
39+
CredentialsSecretName is the name of the secret used while accessing repository
40+
41+
Links:
42+
* [Defining a secret for backup upload or download](/docs/backup-resource.md#defining-a-secret-for-backup-upload-or-download)
43+
44+
This field is **immutable**: can't be changed after backup creation
45+
46+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L81)
47+
48+
### .spec.download.id: string
49+
50+
ID of the ArangoBackup to be downloaded
51+
52+
This field is **immutable**: can't be changed after backup creation
53+
54+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L89)
55+
56+
### .spec.download.repositoryURL: string
57+
58+
RepositoryURL is the URL path for file storage
59+
Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
60+
Format: `<protocol>:/<path>`
61+
62+
Links:
63+
* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths)
64+
65+
Example:
66+
```yaml
67+
s3://my-bucket/test
68+
azure://test
69+
```
70+
71+
This field is **immutable**: can't be changed after backup creation
72+
73+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L77)
74+
75+
### .spec.lifetime: int64
76+
77+
Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
78+
79+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L47)
80+
81+
### .spec.options.allowInconsistent: bool
82+
83+
AllowInconsistent flag for Backup creation request.
84+
If this value is set to true, backup is taken even if we are not able to acquire lock.
85+
86+
Default Value: false
87+
88+
This field is **immutable**: can't be changed after backup creation
89+
90+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L66)
91+
92+
### .spec.options.timeout: float32
93+
94+
Timeout for Backup creation request in seconds.
95+
96+
Default Value: 30
97+
98+
This field is **immutable**: can't be changed after backup creation
99+
100+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L61)
101+
102+
### .spec.policyName: string
103+
104+
PolicyName name of the ArangoBackupPolicy which created this Custom Resource
105+
106+
This field is **immutable**: can't be changed after backup creation
107+
108+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L42)
109+
110+
### .spec.upload.credentialsSecretName: string
111+
112+
CredentialsSecretName is the name of the secret used while accessing repository
113+
114+
Links:
115+
* [Defining a secret for backup upload or download](/docs/backup-resource.md#defining-a-secret-for-backup-upload-or-download)
116+
117+
This field is **immutable**: can't be changed after backup creation
118+
119+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L81)
120+
121+
### .spec.upload.repositoryURL: string
122+
123+
RepositoryURL is the URL path for file storage
124+
Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
125+
Format: `<protocol>:/<path>`
126+
127+
Links:
128+
* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths)
129+
130+
Example:
131+
```yaml
132+
s3://my-bucket/test
133+
azure://test
134+
```
135+
136+
This field is **immutable**: can't be changed after backup creation
137+
138+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L77)
139+
140+
## Status
141+
142+
### .status.available: bool
143+
144+
Available Determines if we can restore from ArangoBackup
145+
146+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L36)
147+
148+
### .status.backoff.iterations: int
149+
150+
[Code Reference](/pkg/apis/backup/v1/backup_status_backoff.go#L30)
151+
152+
### .status.backup.downloaded: bool
153+
154+
Downloaded Determines if ArangoBackup has been downloaded.
155+
156+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L66)
157+
158+
### .status.backup.id: string
159+
160+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L56)
161+
162+
### .status.backup.imported: bool
163+
164+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L67)
165+
166+
### .status.backup.keys: []string
167+
168+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L70)
169+
170+
### .status.backup.numberOfDBServers: uint
171+
172+
NumberOfDBServers Cluster size of the Backup in ArangoDB
173+
174+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L62)
175+
176+
### .status.backup.potentiallyInconsistent: bool
177+
178+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L58)
179+
180+
### .status.backup.sizeInBytes: uint64
181+
182+
SizeInBytes Size of the Backup in ArangoDB.
183+
184+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L60)
185+
186+
### .status.backup.uploaded: bool
187+
188+
Uploaded Determines if ArangoBackup has been uploaded
189+
190+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L64)
191+
192+
### .status.backup.version: string
193+
194+
[Code Reference](/pkg/apis/backup/v1/backup_status.go#L57)
195+
196+
### .status.message: string
197+
198+
Message for the state this object is in.
199+
200+
[Code Reference](/pkg/apis/backup/v1/backup_state.go#L86)
201+
202+
### .status.progress.jobID: string
203+
204+
JobID ArangoDB job ID for uploading or downloading
205+
206+
[Code Reference](/pkg/apis/backup/v1/backup_state.go#L109)
207+
208+
### .status.progress.progress: string
209+
210+
Progress ArangoDB job progress in percents
211+
212+
Example:
213+
```yaml
214+
90%
215+
```
216+
217+
[Code Reference](/pkg/apis/backup/v1/backup_state.go#L112)
218+
219+
### .status.state: string
220+
221+
State holds the current high level state of the backup
222+
223+
Possible Values:
224+
* Pending (default) - state in which Custom Resource is queued. If Backup is possible changed to "Scheduled"
225+
* Scheduled - state which will start create/download process
226+
* Download - state in which download request will be created on ArangoDB
227+
* DownloadError - state when download failed
228+
* Downloading - state for downloading progress
229+
* Create - state for creation, field available set to true
230+
* Upload - state in which upload request will be created on ArangoDB
231+
* Uploading - state for uploading progress
232+
* UploadError - state when uploading failed
233+
* Ready - state when Backup is finished
234+
* Deleted - state when Backup was once in ready, but has been deleted
235+
* Failed - state for failure
236+
* Unavailable - state when Backup is not available on the ArangoDB. It can happen in case of upgrades, node restarts etc.
237+
238+
[Code Reference](/pkg/apis/backup/v1/backup_state.go#L80)
239+

docs/api/ArangoBackupPolicy.V1.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# API Reference for ArangoBackupPolicy V1
2+
3+
## Spec
4+
5+
### .spec.allowConcurrent: bool
6+
7+
AllowConcurrent if false, ArangoBackup will not be created when previous Backups are not finished
8+
9+
Default Value: true
10+
11+
[Code Reference](/pkg/apis/backup/v1/backup_policy_spec.go#L35)
12+
13+
### .spec.maxBackups: int
14+
15+
MaxBackups defines how many backups should be kept in history (per deployment). Oldest healthy Backups will be deleted.
16+
If not specified or 0 then no limit is applied
17+
18+
Default Value: 0
19+
20+
[Code Reference](/pkg/apis/backup/v1/backup_policy_spec.go#L43)
21+
22+
### .spec.schedule: string
23+
24+
Schedule is cron-compatible specification of backup schedule
25+
Parsed by https://godoc.org/github.com/robfig/cron
26+
27+
[Code Reference](/pkg/apis/backup/v1/backup_policy_spec.go#L32)
28+
29+
### .spec.selector: meta.LabelSelector
30+
31+
DeploymentSelector Selector definition for selecting matching ArangoBackup Custom Resources.
32+
33+
Links:
34+
* [Kubernetes Documentation](https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#LabelSelector)
35+
36+
[Code Reference](/pkg/apis/backup/v1/backup_policy_spec.go#L39)
37+
38+
### .spec.template.backoff.iterations: int
39+
40+
Iterations defines number of iterations before reaching MaxDelay. Default to 5
41+
42+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L31)
43+
44+
### .spec.template.backoff.max_delay: int
45+
46+
MaxDelay defines maximum delay in seconds. Default to 600
47+
48+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L29)
49+
50+
### .spec.template.backoff.max_iterations: int
51+
52+
MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit)
53+
54+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L33)
55+
56+
### .spec.template.backoff.min_delay: int
57+
58+
MinDelay defines minimum delay in seconds. Default to 30
59+
60+
[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L27)
61+
62+
### .spec.template.lifetime: int64
63+
64+
Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
65+
66+
[Code Reference](/pkg/apis/backup/v1/backup_policy_spec.go#L61)
67+
68+
### .spec.template.options.allowInconsistent: bool
69+
70+
AllowInconsistent flag for Backup creation request.
71+
If this value is set to true, backup is taken even if we are not able to acquire lock.
72+
73+
Default Value: false
74+
75+
This field is **immutable**: can't be changed after backup creation
76+
77+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L66)
78+
79+
### .spec.template.options.timeout: float32
80+
81+
Timeout for Backup creation request in seconds.
82+
83+
Default Value: 30
84+
85+
This field is **immutable**: can't be changed after backup creation
86+
87+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L61)
88+
89+
### .spec.template.upload.credentialsSecretName: string
90+
91+
CredentialsSecretName is the name of the secret used while accessing repository
92+
93+
Links:
94+
* [Defining a secret for backup upload or download](/docs/backup-resource.md#defining-a-secret-for-backup-upload-or-download)
95+
96+
This field is **immutable**: can't be changed after backup creation
97+
98+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L81)
99+
100+
### .spec.template.upload.repositoryURL: string
101+
102+
RepositoryURL is the URL path for file storage
103+
Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
104+
Format: `<protocol>:/<path>`
105+
106+
Links:
107+
* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths)
108+
109+
Example:
110+
```yaml
111+
s3://my-bucket/test
112+
azure://test
113+
```
114+
115+
This field is **immutable**: can't be changed after backup creation
116+
117+
[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L77)
118+
119+
## Status
120+
121+
### .status.message: string
122+
123+
Message from the operator in case of failures - schedule not valid, ArangoBackupPolicy not valid
124+
125+
[Code Reference](/pkg/apis/backup/v1/backup_policy_status.go#L33)
126+
127+
### .status.scheduled: meta.Time
128+
129+
Scheduled Next scheduled time in UTC
130+
131+
[Code Reference](/pkg/apis/backup/v1/backup_policy_status.go#L31)
132+

docs/api/ArangoDeployment.V1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,12 +3471,13 @@ Links:
34713471
### .spec.storageEngine: string
34723472

34733473
StorageEngine specifies the type of storage engine used for all servers in the cluster.
3474-
This setting cannot be changed after the cluster has been created.
34753474

34763475
Possible Values:
34773476
* RocksDB (default) - To use the RocksDB storage engine.
34783477
* MMFiles - To use the MMFiles storage engine. Deprecated.
34793478

3479+
This field is **immutable**: This setting cannot be changed after the cluster has been created.
3480+
34803481
[Code Reference](/pkg/apis/deployment/v1/deployment_spec.go#L72)
34813482

34823483
### .spec.sync.auth.clientCASecretName: string

0 commit comments

Comments
 (0)