Skip to content

Commit

Permalink
feat: fluent-operator CRDs (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz authored Oct 6, 2024
1 parent 00118da commit cc491b2
Show file tree
Hide file tree
Showing 27 changed files with 50,925 additions and 0 deletions.
935 changes: 935 additions & 0 deletions fluentbit.fluent.io/clusterfilter_v1alpha2.json

Large diffs are not rendered by default.

423 changes: 423 additions & 0 deletions fluentbit.fluent.io/clusterfluentbitconfig_v1alpha2.json

Large diffs are not rendered by default.

957 changes: 957 additions & 0 deletions fluentbit.fluent.io/clusterinput_v1alpha2.json

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions fluentbit.fluent.io/clustermultilineparser_v1alpha2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"description": "ClusterMultilineParser is the Schema for the cluster-level multiline parser API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"flushTimeout": {
"default": 5000,
"description": "Timeout in milliseconds to flush a non-terminated multiline buffer. Default is set to 5 seconds.",
"type": "integer"
},
"keyContent": {
"description": "For an incoming structured message, specify the key that contains the data that should be processed by the regular expression and possibly concatenated.",
"type": "string"
},
"parser": {
"description": "Name of a pre-defined parser that must be applied to the incoming content before applying the regex rule. If no parser is defined, it's assumed that's a raw text and not a structured message.",
"type": "string"
},
"rules": {
"description": "Configure a rule to match a multiline pattern. The rule has a specific format described below. Multiple rules can be defined.",
"items": {
"properties": {
"next": {
"type": "string"
},
"regex": {
"type": "string"
},
"start": {
"type": "string"
}
},
"required": [
"next",
"regex",
"start"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"type": {
"default": "regex",
"description": "Set the multiline mode, for now, we support the type regex.",
"enum": [
"regex"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
4,769 changes: 4,769 additions & 0 deletions fluentbit.fluent.io/clusteroutput_v1alpha2.json

Large diffs are not rendered by default.

116 changes: 116 additions & 0 deletions fluentbit.fluent.io/clusterparser_v1alpha2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"description": "ClusterParser is the Schema for the cluster-level parsers API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "ParserSpec defines the desired state of ClusterParser",
"properties": {
"decoders": {
"description": "Decoders are a built-in feature available through the Parsers file, each Parser definition can optionally set one or multiple decoders.\nThere are two type of decoders type: Decode_Field and Decode_Field_As.",
"items": {
"properties": {
"decodeField": {
"description": "If the content can be decoded in a structured message,\nappend that structure message (keys and values) to the original log message.",
"type": "string"
},
"decodeFieldAs": {
"description": "Any content decoded (unstructured or structured) will be replaced in the same key/value,\nno extra keys are added.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"json": {
"description": "JSON defines json parser configuration.",
"properties": {
"timeFormat": {
"description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
"type": "string"
},
"timeKeep": {
"description": "Time_Keep",
"type": "boolean"
},
"timeKey": {
"description": "Time_Key",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"logfmt": {
"description": "Logfmt defines logfmt parser configuration.",
"type": "object"
},
"ltsv": {
"description": "LTSV defines ltsv parser configuration.",
"properties": {
"timeFormat": {
"description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
"type": "string"
},
"timeKeep": {
"description": "Time_Keep",
"type": "boolean"
},
"timeKey": {
"description": "Time_Key",
"type": "string"
},
"types": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"regex": {
"description": "Regex defines regex parser configuration.",
"properties": {
"regex": {
"type": "string"
},
"timeFormat": {
"description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
"type": "string"
},
"timeKeep": {
"description": "Time_Keep",
"type": "boolean"
},
"timeKey": {
"description": "Time_Key",
"type": "string"
},
"timeOffset": {
"description": "Time_Offset, eg. +0200",
"type": "string"
},
"types": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit cc491b2

Please sign in to comment.