Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand volume type filters and add storageclass filters #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benosman
Copy link
Contributor

@benosman benosman commented Aug 20, 2020

This pull request is similar to #10, in that it supports filtering by storage classes, but it also expands the volume type matching.

It can match against all volume types except "hostPath", "secret", "configMap", "emptyDir" which are always excluded due to not being supported/recommended for use with velero restic.

For persistentVolumeClaims it checks against the filters using both "persistentVolumeClaim" and if that is not present it uses the underlying volume type of the claim to match against filters.

@duyanghao
Copy link
Owner

duyanghao commented Aug 21, 2020

@benosman Have you ever tested this feature? and please add a controller_test.go file for it.

Additionally, Could you give some more specific examples to explain this PR? I don't know exactly what your ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants