-
Notifications
You must be signed in to change notification settings - Fork 350
Add spec.fluentBitAgentNamespace to run Fluent Bit in a dedicated namespace #2105
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?
Conversation
9930882
to
97b9515
Compare
…entNamespace - Add Logging.spec.nodeAgentNamespace (immutable), defaulting to spec.controlNamespace - Reconcile all Fluent Bit resources (DS, SA, RBAC, Services, monitors) into nodeAgentNamespace - Keep aggregators and control-plane resources in controlNamespace - Update Fluent Bit reconcilers to use nodeAgentNamespace for ObjectMeta and RBAC subjects - Regenerate CRDs and Helm chart CRDs/docs - Add e2e: verify fluentd in control ns, fluent-bit in node agents ns, logs delivered end-to-end Backwards compatibility: - If nodeAgentNamespace is empty, it falls back to controlNamespace (no change for existing clusters) Testing: - make generate && make check - make test-e2e E2E_TEST=fluentbit-nodeagents-namespace Signed-off-by: Ivan Tuzhilkin <ivan.tuzhilkin@workday.com>
97b9515
to
a137766
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.
Hey @1it,
Thanks for this contribution!
We've just deprecated the nodeAgent custom-resource, so the naming should be changed to fluentBitAgentNamespace
.
e2e/fluentbit-nodeagents-namespace/fluentbit_nodeagents_namespace_test.go
Outdated
Show resolved
Hide resolved
e2e/fluentbit-nodeagents-namespace/fluentbit_nodeagents_namespace_test.go
Outdated
Show resolved
Hide resolved
e2e/fluentbit-nodeagents-namespace/fluentbit_nodeagents_namespace_test.go
Outdated
Show resolved
Hide resolved
e2e/fluentbit-nodeagents-namespace/fluentbit_nodeagents_namespace_test.go
Outdated
Show resolved
Hide resolved
Hey @csatib02 |
…and wire everywhere - API: replace Logging.spec.nodeAgentNamespace with spec.fluentBitAgentNamespace (omitempty, defaults to controlNamespace) - fluentbit: reconcile all FB resources using spec.fluentBitAgentNamespace (meta, RBAC subjects, config secret) - fluentbit: fix ServiceMonitor NamespaceSelector to use fluentBitAgentNamespace (both metrics and buffer metrics) - helm(logging): render spec.fluentBitAgentNamespace from values.logging.fluentBitAgentNamespace - helm(values): add logging.fluentBitAgentNamespace, update description (FluentBit) - e2e: add fluentbit-agent-namespace suite; assert FB runs in agent ns, aggregator in control ns; DNS-1123-safe ns name - tests/lint: all updated; JSON tags fixed Signed-off-by: Ivan Tuzhilkin <ivan.tuzhilkin@workday.com>
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!
Summary
Motivation
What’s changed
Backwards compatibility
Testing
make generate
make check
make docker-build-e2e-test
Docs
Risks / Notes
Release note
Checklist