-
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
Fix issue 6561 #6564
Fix issue 6561 #6564
Conversation
28fecc1
to
3ad4f8b
Compare
Signed-off-by: Lyndon-Li <[email protected]>
3ad4f8b
to
d6134ec
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.
would be interesting to use cobra here? it would be more verbose, but we would have a CLI by default (and it also have the 2 validations builtin: cobra.MinimumNArgs(1)
and cobra.OnlyValidArgs
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 am hesitating to involve cobra:
- The binary is targeted to implement simply tasks (otherwise, we can use velero binary instead), i.e., the current pause functionality, it is not expected to be with complex parameters, for which cobra could make a big help.
- Involving cobra will involve some more packages, which will make the total binary size larger.
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.
We may even make it simpler to make it velero-pause, b/c I don't think we wanna support other subcommand, it's simply a placeholder for DM.
We have more inputs/requirements today, so changed the solution from end to end and see if this can meet them:
|
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.
lgtm
Fix #6561, change the backup/restore pod's image to the same image used by the node-agent, but with a different binary
velero-helper
, so as not to depend on Alpine which may have compliance or security issues or image pull issues.