-
Notifications
You must be signed in to change notification settings - Fork 258
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
Add an argument for disabling unused controllers #621
Add an argument for disabling unused controllers #621
Conversation
Signed-off-by: Kristian-ZH <k.zhelyazkov@sap.com>
8b56443
to
69ed018
Compare
It should not add the fluentbit CRDs to scheme when fluent-bit is disabled. https://github.com/fluent/fluent-operator/blob/master/cmd/fluent-manager/main.go#L53 |
@wanjunlei |
Just move these codes to the main. |
Signed-off-by: Kristian-ZH <k.zhelyazkov@sap.com>
…ion only fluentd or fluent-bit resources.
…ontrollers Signed-off-by: Niki Dokovski <nickytd@gmail.com>
Disable component controllers
address PR feedback
All the comments should be resolved, can you please take a second look? |
@Kristian-ZH Nice move! I like the idea of moving the crds to subchart! |
@Kristian-ZH I'm going to invite you as the fluent-operator maintainer! |
@Kristian-ZH would you help to revise the install guide? https://github.com/fluent/fluent-operator#deploy-fluent-operator-with-helm |
* Add an argument for disabling unused controllers Signed-off-by: Kristian-ZH <k.zhelyazkov@sap.com> * Add an argument for disabling unused controllers Signed-off-by: Kristian-ZH <k.zhelyazkov@sap.com> * addresses PR feedback * Moves CRDs deployments into sub-charts, allowing optionally to provision only fluentd or fluent-bit resources. * adjust manifets controller gen target in the project Makefile * add generated deepcopy of fluentd api * rebase main.go to latest in master * address PR feedback --------- Signed-off-by: Kristian-ZH <k.zhelyazkov@sap.com> Signed-off-by: Niki Dokovski <nickytd@gmail.com> Co-authored-by: Niki Dokovski <nickytd@gmail.com>
What this PR does / why we need it:
This PR adds a new flag called
disable-component-controllers
which disabled the given component's controllersThe possible values are:
fluent-bit
andfluentd
The default value of the argument will be an empty string which will not break the current work of the operator and will not break its consumers.
The benefit which this PR brings is that the operator's consumers will no any more have to install CRDs and expand the operator's RBAC with configurations for a component that they do not use in their setups.
Which issue(s) this PR fixes:
Fixes #612
Does this PR introduced a user-facing change?