-
Notifications
You must be signed in to change notification settings - Fork 197
Separate attacher flags into attacher only flags and global shared flags #652
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
base: master
Are you sure you want to change the base?
Separate attacher flags into attacher only flags and global shared flags #652
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mauriciopoppe The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
So is this just a demo PR for the csi aio integration or will it be a former PR in the future? I think maybe I can close #620 and we can refine this PR. they are basically the same |
Thanks for creating #620! In this PR I tried to do as minimum as possible to move only the flags that'd be reused from two places (this sidecar and the monorepo). Yeah, we can refine this PR only if you're ok with that. |
2f7e1a0
to
a9bc3ce
Compare
a9bc3ce
to
2f7e1a0
Compare
2f7e1a0
to
9c1fa1f
Compare
@mauriciopoppe: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind design
What this PR does / why we need it:
Split attacher flags into attacher only flags and global flags.
We're moving some of the flags into its own package so that the flags can be imported by
external-attacher
and by other repositories. We're doing this to prepare external-attacher for its integration with the CSI Sidecar monorepo.Testing:
cmd/config
package and reuse the exported functions and types. The CSI Sidecar monorepo will use the functionRegisterAttacherFlagsWithPrefix
so that the attacher flags are imported with theattacher-
prefix.In the CSI Sidecar monorepo the change to adopt this is mauriciopoppe/csi-sidecars-aio-poc#11.
After compiling the CSI Sidecar monorepo binary the output for its help is:
For more info please read https://docs.google.com/document/d/1AKqJeAlBL8PkH8D9zABCZ82Bk1N46EygKPvVh5p4-qU/edit?tab=t.0.
Does this PR introduce a user-facing change?:
/cc @jsafrane @xing-yang @mowangdk @ConnorJC3