Skip to content

feat(fluentd): add null output plugin #1578

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cw-Guo
Copy link
Collaborator

@cw-Guo cw-Guo commented Apr 19, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1576

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Signed-off-by: Chengwei Guo <cwguoz@gmail.com>
@@ -54,6 +54,8 @@ type Output struct {
Datadog *Datadog `json:"datadog,omitempty"`
// copy plugin
Copy *Copy `json:"copy,omitempty"`
// null plugin
Null *Null `json:"nullPlugin,omitempty"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I change the name of this pulgin from null to nullPlugin, it was due to that null is a keywoard in yaml, so it will be converted to "null" as below:

apiVersion: fluentd.fluent.io/v1alpha1
kind: ClusterOutput
metadata:
  name: fluentd-only-null
  namespace: fluent
  labels:
    output.fluentd.fluent.io/mode: "fluentd-only"
spec: 
  outputs: 
  - "null":
      neverFlush: false

@cw-Guo cw-Guo marked this pull request as ready for review April 19, 2025 01:42
Signed-off-by: Chengwei Guo <cwguoz@gmail.com>
@cw-Guo cw-Guo force-pushed the feat/fluentd-null-plugin branch from c676422 to 174bfae Compare April 19, 2025 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing null output for fluentd
1 participant