-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add volume types filter in resource policies #6863
Conversation
3e7f94e
to
f5b03ea
Compare
Codecov Report
@@ Coverage Diff @@
## main #6863 +/- ##
==========================================
+ Coverage 60.78% 61.00% +0.21%
==========================================
Files 245 248 +3
Lines 26255 26492 +237
==========================================
+ Hits 15960 16162 +202
- Misses 9164 9192 +28
- Partials 1131 1138 +7
|
a6563e6
to
5139320
Compare
c4eaaeb
to
597d443
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one comment, else lgtm!
return "gcePersistentDisk" | ||
} | ||
if vol.AWSElasticBlockStore != nil { | ||
return "awsElasticBlockStore" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we make all the PV and Volume types as constants ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, modified
597d443
to
92163de
Compare
ConfigMap = "configMap" | ||
Projected = "projected" | ||
Ephemeral = "ephemeral" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 suggestions:
- would be interesting to transform this in a type, like
supportedVolumes
, and change the return values ofgetVolumeTypeFromPV
andgetVolumeTypeFromVolume
functions to it? - would be interesting to sort the volumes in alphabetical order? (and also in the
getVolumeTypeFromPV
andgetVolumeTypeFromVolume
functions bodies)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your suggestions, I've updated
92163de
to
13125fc
Compare
Signed-off-by: Ming Qiu <[email protected]>
13125fc
to
3617c27
Compare
Is this going to be merged soon? See https://kubernetes.slack.com/archives/C6VCGP4MT/p1697461184984549 for a user question in this regard. |
Signed-off-by: Ming Qiu <[email protected]>
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
#6482
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.