Skip to content

Commit f8ebb9c

Browse files
authored
br: make schdule support compact (#6033)
1 parent e4b1ac0 commit f8ebb9c

File tree

14 files changed

+7042
-316
lines changed

14 files changed

+7042
-316
lines changed

docs/api-references/docs.md

Lines changed: 189 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ StorageProvider
189189
<p>
190190
(Members of <code>StorageProvider</code> are embedded into this type.)
191191
</p>
192-
<p>StorageProvider configures where and how backups should be stored.</p>
192+
<p>StorageProvider configures where and how backups should be stored.
193+
*** Note: This field should generally not be left empty, unless you are certain the storage provider
194+
*** can be obtained from another source, such as a schedule CR.</p>
193195
</td>
194196
</tr>
195197
<tr>
@@ -226,7 +228,9 @@ BRConfig
226228
</em>
227229
</td>
228230
<td>
229-
<p>BRConfig is the configs for BR</p>
231+
<p>BRConfig is the configs for BR
232+
*** Note: This field should generally not be left empty, unless you are certain the BR config
233+
*** can be obtained from another source, such as a schedule CR.</p>
230234
</td>
231235
</tr>
232236
<tr>
@@ -647,6 +651,17 @@ string
647651
</tr>
648652
<tr>
649653
<td>
654+
<code>compactSpan</code></br>
655+
<em>
656+
string
657+
</em>
658+
</td>
659+
<td>
660+
<p>CompactSpan is to specify how long backups we want to compact.</p>
661+
</td>
662+
</tr>
663+
<tr>
664+
<td>
650665
<code>backupTemplate</code></br>
651666
<em>
652667
<a href="#backupspec">
@@ -674,6 +689,20 @@ BackupSpec
674689
</tr>
675690
<tr>
676691
<td>
692+
<code>compactBackupTemplate</code></br>
693+
<em>
694+
<a href="#compactspec">
695+
CompactSpec
696+
</a>
697+
</em>
698+
</td>
699+
<td>
700+
<em>(Optional)</em>
701+
<p>CompactBackupTemplate is the specification of the compact backup structure to get scheduled.</p>
702+
</td>
703+
</tr>
704+
<tr>
705+
<td>
677706
<code>storageClassName</code></br>
678707
<em>
679708
string
@@ -710,6 +739,37 @@ string
710739
<p>ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images.</p>
711740
</td>
712741
</tr>
742+
<tr>
743+
<td>
744+
<code>br</code></br>
745+
<em>
746+
<a href="#brconfig">
747+
BRConfig
748+
</a>
749+
</em>
750+
</td>
751+
<td>
752+
<em>(Optional)</em>
753+
<p>BRConfig is the configs for BR</p>
754+
</td>
755+
</tr>
756+
<tr>
757+
<td>
758+
<code>StorageProvider</code></br>
759+
<em>
760+
<a href="#storageprovider">
761+
StorageProvider
762+
</a>
763+
</em>
764+
</td>
765+
<td>
766+
<p>
767+
(Members of <code>StorageProvider</code> are embedded into this type.)
768+
</p>
769+
<em>(Optional)</em>
770+
<p>StorageProvider configures where and how backups should be stored.</p>
771+
</td>
772+
</tr>
713773
</table>
714774
</td>
715775
</tr>
@@ -3446,6 +3506,7 @@ string
34463506
<h3 id="brconfig">BRConfig</h3>
34473507
<p>
34483508
(<em>Appears on:</em>
3509+
<a href="#backupschedulespec">BackupScheduleSpec</a>,
34493510
<a href="#backupspec">BackupSpec</a>,
34503511
<a href="#compactspec">CompactSpec</a>,
34513512
<a href="#restorespec">RestoreSpec</a>)
@@ -3938,6 +3999,17 @@ string
39383999
</tr>
39394000
<tr>
39404001
<td>
4002+
<code>compactSpan</code></br>
4003+
<em>
4004+
string
4005+
</em>
4006+
</td>
4007+
<td>
4008+
<p>CompactSpan is to specify how long backups we want to compact.</p>
4009+
</td>
4010+
</tr>
4011+
<tr>
4012+
<td>
39414013
<code>backupTemplate</code></br>
39424014
<em>
39434015
<a href="#backupspec">
@@ -3965,6 +4037,20 @@ BackupSpec
39654037
</tr>
39664038
<tr>
39674039
<td>
4040+
<code>compactBackupTemplate</code></br>
4041+
<em>
4042+
<a href="#compactspec">
4043+
CompactSpec
4044+
</a>
4045+
</em>
4046+
</td>
4047+
<td>
4048+
<em>(Optional)</em>
4049+
<p>CompactBackupTemplate is the specification of the compact backup structure to get scheduled.</p>
4050+
</td>
4051+
</tr>
4052+
<tr>
4053+
<td>
39684054
<code>storageClassName</code></br>
39694055
<em>
39704056
string
@@ -4001,6 +4087,37 @@ string
40014087
<p>ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images.</p>
40024088
</td>
40034089
</tr>
4090+
<tr>
4091+
<td>
4092+
<code>br</code></br>
4093+
<em>
4094+
<a href="#brconfig">
4095+
BRConfig
4096+
</a>
4097+
</em>
4098+
</td>
4099+
<td>
4100+
<em>(Optional)</em>
4101+
<p>BRConfig is the configs for BR</p>
4102+
</td>
4103+
</tr>
4104+
<tr>
4105+
<td>
4106+
<code>StorageProvider</code></br>
4107+
<em>
4108+
<a href="#storageprovider">
4109+
StorageProvider
4110+
</a>
4111+
</em>
4112+
</td>
4113+
<td>
4114+
<p>
4115+
(Members of <code>StorageProvider</code> are embedded into this type.)
4116+
</p>
4117+
<em>(Optional)</em>
4118+
<p>StorageProvider configures where and how backups should be stored.</p>
4119+
</td>
4120+
</tr>
40044121
</tbody>
40054122
</table>
40064123
<h3 id="backupschedulestatus">BackupScheduleStatus</h3>
@@ -4032,6 +4149,17 @@ string
40324149
</tr>
40334150
<tr>
40344151
<td>
4152+
<code>lastCompact</code></br>
4153+
<em>
4154+
string
4155+
</em>
4156+
</td>
4157+
<td>
4158+
<p>LastCompact represents the last compact</p>
4159+
</td>
4160+
</tr>
4161+
<tr>
4162+
<td>
40354163
<code>logBackup</code></br>
40364164
<em>
40374165
string
@@ -4043,6 +4171,19 @@ string
40434171
</tr>
40444172
<tr>
40454173
<td>
4174+
<code>logBackupStartTs</code></br>
4175+
<em>
4176+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta">
4177+
Kubernetes meta/v1.Time
4178+
</a>
4179+
</em>
4180+
</td>
4181+
<td>
4182+
<p>LogBackupStartTs represents the start time of log backup</p>
4183+
</td>
4184+
</tr>
4185+
<tr>
4186+
<td>
40464187
<code>lastBackupTime</code></br>
40474188
<em>
40484189
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta">
@@ -4056,6 +4197,32 @@ Kubernetes meta/v1.Time
40564197
</tr>
40574198
<tr>
40584199
<td>
4200+
<code>lastCompactTs</code></br>
4201+
<em>
4202+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta">
4203+
Kubernetes meta/v1.Time
4204+
</a>
4205+
</em>
4206+
</td>
4207+
<td>
4208+
<p>LastCompactTs represents the endTs of the last compact</p>
4209+
</td>
4210+
</tr>
4211+
<tr>
4212+
<td>
4213+
<code>nextCompactEndTs</code></br>
4214+
<em>
4215+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta">
4216+
Kubernetes meta/v1.Time
4217+
</a>
4218+
</em>
4219+
</td>
4220+
<td>
4221+
<p>NextCompactEndTs represents the scheduled endTs of next compact</p>
4222+
</td>
4223+
</tr>
4224+
<tr>
4225+
<td>
40594226
<code>allBackupCleanTime</code></br>
40604227
<em>
40614228
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta">
@@ -4193,7 +4360,9 @@ StorageProvider
41934360
<p>
41944361
(Members of <code>StorageProvider</code> are embedded into this type.)
41954362
</p>
4196-
<p>StorageProvider configures where and how backups should be stored.</p>
4363+
<p>StorageProvider configures where and how backups should be stored.
4364+
*** Note: This field should generally not be left empty, unless you are certain the storage provider
4365+
*** can be obtained from another source, such as a schedule CR.</p>
41974366
</td>
41984367
</tr>
41994368
<tr>
@@ -4230,7 +4399,9 @@ BRConfig
42304399
</em>
42314400
</td>
42324401
<td>
4233-
<p>BRConfig is the configs for BR</p>
4402+
<p>BRConfig is the configs for BR
4403+
*** Note: This field should generally not be left empty, unless you are certain the BR config
4404+
*** can be obtained from another source, such as a schedule CR.</p>
42344405
</td>
42354406
</tr>
42364407
<tr>
@@ -5429,7 +5600,9 @@ StorageProvider
54295600
<p>
54305601
(Members of <code>StorageProvider</code> are embedded into this type.)
54315602
</p>
5432-
<p>StorageProvider configures where and how backups should be stored.</p>
5603+
<p>StorageProvider configures where and how backups should be stored.
5604+
*** Note: This field should generally not be left empty, unless you are certain the storage provider
5605+
*** can be obtained from another source, such as a schedule CR.</p>
54335606
</td>
54345607
</tr>
54355608
<tr>
@@ -5507,7 +5680,9 @@ BRConfig
55075680
</em>
55085681
</td>
55095682
<td>
5510-
<p>BRConfig is the configs for BR</p>
5683+
<p>BRConfig is the configs for BR
5684+
*** Note: This field should generally not be left empty, unless you are certain the BR config
5685+
*** can be obtained from another source, such as a schedule CR.</p>
55115686
</td>
55125687
</tr>
55135688
<tr>
@@ -5697,6 +5872,7 @@ string
56975872
<h3 id="compactspec">CompactSpec</h3>
56985873
<p>
56995874
(<em>Appears on:</em>
5875+
<a href="#backupschedulespec">BackupScheduleSpec</a>,
57005876
<a href="#compactbackup">CompactBackup</a>)
57015877
</p>
57025878
<p>
@@ -5765,7 +5941,9 @@ StorageProvider
57655941
<p>
57665942
(Members of <code>StorageProvider</code> are embedded into this type.)
57675943
</p>
5768-
<p>StorageProvider configures where and how backups should be stored.</p>
5944+
<p>StorageProvider configures where and how backups should be stored.
5945+
*** Note: This field should generally not be left empty, unless you are certain the storage provider
5946+
*** can be obtained from another source, such as a schedule CR.</p>
57695947
</td>
57705948
</tr>
57715949
<tr>
@@ -5843,7 +6021,9 @@ BRConfig
58436021
</em>
58446022
</td>
58456023
<td>
5846-
<p>BRConfig is the configs for BR</p>
6024+
<p>BRConfig is the configs for BR
6025+
*** Note: This field should generally not be left empty, unless you are certain the BR config
6026+
*** can be obtained from another source, such as a schedule CR.</p>
58476027
</td>
58486028
</tr>
58496029
<tr>
@@ -16571,6 +16751,7 @@ More info: <a href="https://kubernetes.io/docs/concepts/storage/persistent-volum
1657116751
<h3 id="storageprovider">StorageProvider</h3>
1657216752
<p>
1657316753
(<em>Appears on:</em>
16754+
<a href="#backupschedulespec">BackupScheduleSpec</a>,
1657416755
<a href="#backupspec">BackupSpec</a>,
1657516756
<a href="#compactspec">CompactSpec</a>,
1657616757
<a href="#restorespec">RestoreSpec</a>)

0 commit comments

Comments
 (0)