Skip to content

Support filtering by multiple labels/resources ("OR" logic) #1508

@tillepille

Description

@tillepille

Describe the solution you'd like

Currently

velero create backup mulit -l 'backup=foo' -l 'backup=bar'

or

velero create backup multi --include-resources 'secrets' --include-resources 'configmaps'

means, that the flag gets overwritten.
So only configmaps / things with the label backup=bar will be backed up.

It would be great if i could specify multiple resource types or label combinations.

Anything else you would like to add:
I know that i can specify multiple labels in one string like -l 'backup=foo,shouldbackup=true'
but this is an AND not an OR

In my usecase its not possible to add one label to all the things i want to include into the backup.

Environment:

  • Velero version (use velero version): v1.0.0
  • Kubernetes version (use kubectl version):v1.14.2
  • Kubernetes installer & version:v1.14.0
  • Cloud provider or hardware configuration: hetzner (backup into aws s3)
  • OS (e.g. from /etc/os-release): Client debian:stretch-slim (container) / Server Ubuntu:18.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions