Skip to content

Commit

Permalink
feat(snaphots): support for orLabelSelectors (#2893)
Browse files Browse the repository at this point in the history
* feat(snaphots): support for orLabelSelectors

* Update custom-resource-backup.md

---------

Co-authored-by: Alex Parker <[email protected]>
  • Loading branch information
emosbaugh and ajp-io authored Dec 12, 2024
1 parent 1cbcc5c commit 9d252c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/reference/custom-resource-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
- '*'
excludedNamespaces:
- some-namespace
orLabelSelectors:
- matchLabels:
app: my-app
orderedResources:
pods: mysql/mysql-cluster-replica-0,mysql/mysql-cluster-replica-1
persistentvolumes: pvc-12345,pvc-67890
Expand Down Expand Up @@ -78,6 +81,10 @@ The following Velero fields are supported for full backups, as shown in the prev
<td><code>excludedNamespaces</code></td>
<td>(Optional) Specifies an array of namespaces to exclude from the backup.</td>
</tr>
<tr>
<td><code>orLabelSelectors</code></td>
<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>
</tr>
<tr>
<td><code>orderedResources</code></td>
<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>
Expand Down

0 comments on commit 9d252c2

Please sign in to comment.