Add cli flag to supply namespace for capa controller to watch for capi objects#607
Conversation
There was a problem hiding this comment.
Should we define this outside the main function instead?
There was a problem hiding this comment.
If we had more cli flags, it would make sense to create a CliFlags struct and parse the flags in a separate function that would return the CliFlags struct. Considering we have just one flag other than the logtostderr this should be good.
015d209 to
27af2ff
Compare
|
/approve leaving lgtm to @vincepri |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashish-amarnath, detiber The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* document the 'namespace' cli flag to capa controller #607 * fixes * Update docs/reconcile-in-custom-namespace.md Co-Authored-By: ashish-amarnath <ashish.amarnath@gmail.com>
Add cli flag to supply namespace for capa controller to watch for capi objects
What this PR does / why we need it:
This PR adds a CLI flag to restrict the namespace that capa controllers watch for capi objects to reconcile
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #581
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: