Separate attacher flags into attacher only flags and global shared flags #652
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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