UNPKG

@luminati-io/kubernetes-models-fluent-operator

Version:
183 lines (182 loc) 8.44 kB
import { IObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { Model, ModelData } from "@kubernetes-models/base"; /** * FluentdConfig is the Schema for the fluentdconfigs API */ export interface IFluentdConfig { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources */ "apiVersion": "fluentd.fluent.io/v1alpha1"; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ "kind": "FluentdConfig"; "metadata"?: IObjectMeta; /** * FluentdConfigSpec defines the desired state of FluentdConfig */ "spec"?: { /** * Select cluster filter plugins */ "clusterFilterSelector"?: { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ "matchExpressions"?: Array<{ /** * key is the label key that the selector applies to. */ "key": string; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ "operator": string; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ "values"?: Array<string>; }>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ "matchLabels"?: { [key: string]: string; }; }; /** * Select cluster output plugins */ "clusterOutputSelector"?: { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ "matchExpressions"?: Array<{ /** * key is the label key that the selector applies to. */ "key": string; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ "operator": string; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ "values"?: Array<string>; }>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ "matchLabels"?: { [key: string]: string; }; }; /** * Emit mode. If batch, the plugin will emit events per labels matched. Enum: record, batch. will make no effect if EnableFilterKubernetes is set false. */ "emit_mode"?: "record" | "batch"; /** * Select namespaced filter plugins */ "filterSelector"?: { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ "matchExpressions"?: Array<{ /** * key is the label key that the selector applies to. */ "key": string; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ "operator": string; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ "values"?: Array<string>; }>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ "matchLabels"?: { [key: string]: string; }; }; /** * Select namespaced output plugins */ "outputSelector"?: { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ "matchExpressions"?: Array<{ /** * key is the label key that the selector applies to. */ "key": string; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ "operator": string; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ "values"?: Array<string>; }>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ "matchLabels"?: { [key: string]: string; }; }; /** * Sticky tags will match only one record from an event stream. The same tag will be treated the same way. will make no effect if EnableFilterKubernetes is set false. */ "stickyTags"?: string; /** * A set of container names. Ignored if left empty. */ "watchedConstainers"?: Array<string>; /** * A set of hosts. Ignored if left empty. */ "watchedHosts"?: Array<string>; /** * Use this field to filter the logs, will make no effect if EnableFilterKubernetes is set false. */ "watchedLabels"?: { [key: string]: string; }; }; /** * FluentdConfigStatus defines the observed state of FluentdConfig */ "status"?: { /** * Messages defines the plugin errors which is selected by this fluentdconfig */ "messages"?: string; /** * The state of this fluentd config */ "state"?: string; }; } /** * FluentdConfig is the Schema for the fluentdconfigs API */ export declare class FluentdConfig extends Model<IFluentdConfig> implements IFluentdConfig { "apiVersion": IFluentdConfig["apiVersion"]; "kind": IFluentdConfig["kind"]; "metadata"?: IFluentdConfig["metadata"]; "spec"?: IFluentdConfig["spec"]; "status"?: IFluentdConfig["status"]; static apiVersion: IFluentdConfig["apiVersion"]; static kind: IFluentdConfig["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IFluentdConfig>; constructor(data?: ModelData<IFluentdConfig>); }