Skip to content

Commit 9d252c2

Browse files
emosbaughajp-io
andauthored
feat(snaphots): support for orLabelSelectors (#2893)
* feat(snaphots): support for orLabelSelectors * Update custom-resource-backup.md --------- Co-authored-by: Alex Parker <[email protected]>
1 parent 1cbcc5c commit 9d252c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/custom-resource-backup.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
- '*'
3131
excludedNamespaces:
3232
- some-namespace
33+
orLabelSelectors:
34+
- matchLabels:
35+
app: my-app
3336
orderedResources:
3437
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1
3538
persistentvolumes: pvc-12345,pvc-67890
@@ -78,6 +81,10 @@ The following Velero fields are supported for full backups, as shown in the prev
7881
<td><code>excludedNamespaces</code></td>
7982
<td>(Optional) Specifies an array of namespaces to exclude from the backup.</td>
8083
</tr>
84+
<tr>
85+
<td><code>orLabelSelectors</code></td>
86+
<td>(Optional) A list of metav1.LabelSelector to filter with when adding individual objects to the backup. If multiple are provided, they will be joined by the OR operator.</td>
87+
</tr>
8188
<tr>
8289
<td><code>orderedResources</code></td>
8390
<td>(Optional) Specifies the order of the resources to collect during the backup process. This is a map that uses a key as the plural resource. Each resource name has the format NAMESPACE/OBJECTNAME. The object names are a comma delimited list. For cluster resources, use OBJECTNAME only.</td>

0 commit comments

Comments
 (0)