-
Notifications
You must be signed in to change notification settings - Fork 82
add velero deployment to CSV so velero SA/roles are added to CSV then removing it #482
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #482 +/- ##
=======================================
Coverage 37.51% 37.51%
=======================================
Files 12 12
Lines 2287 2287
=======================================
Hits 858 858
Misses 1358 1358
Partials 71 71 Continue to review full report at Codecov.
|
c64ea02
to
9589474
Compare
bb754de
to
6dc9005
Compare
6395ed0
to
3c038e9
Compare
/test operator-e2e |
1 similar comment
/test operator-e2e |
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.
I personally prefer this to manually maintaining the csv. Have an ack.
@@ -0,0 +1,120 @@ | |||
# This is a placeholder deployment config so operator-sdk add cluster-roles for velero to ClusterServiceVersion | |||
# It will be removed by yq during make bundle | |||
kind: Deployment |
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.
My only recommendation for this file is to strip it to make it less something that needs to be maintained.
As I understand it, the only thing that matters is that the deployment's serviceAccountName.
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.
@djzager just pulled this from a running development deployment.. nothing much to maintain. Just need a container to be a valid deployment
/retest |
1 similar comment
/retest |
This is definitely a weird way to solve things, but it gets the job done for now. We are going to want to revisit this at some point |
This fixes
make bundle
not adding velero roles/SA to CSV.Velero placeholder deployment is added to config so
operator-sdk generate bundle
add cluster permission rules for velero SA in CSV.yq
is used to remove placeholder deployment from final bundle CSV.