UNPKG

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

Version:
131 lines (130 loc) 6 kB
import { IObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { Model, ModelData } from "@kubernetes-models/base"; /** * ClusterFluentdConfig is the Schema for the clusterfluentdconfigs API */ export interface IClusterFluentdConfig { /** * 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": "ClusterFluentdConfig"; "metadata"?: IObjectMeta; /** * ClusterFluentdConfigSpec defines the desired state of ClusterFluentdConfig */ "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"; /** * 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; }; /** * A set of namespaces. The whole namespaces would be watched if left empty. */ "watchedNamespaces"?: Array<string>; }; /** * ClusterFluentdConfigStatus defines the observed state of ClusterFluentdConfig */ "status"?: { /** * Messages defines the plugin errors which is selected by this fluentdconfig */ "messages"?: string; /** * The state of this fluentd config */ "state"?: string; }; } /** * ClusterFluentdConfig is the Schema for the clusterfluentdconfigs API */ export declare class ClusterFluentdConfig extends Model<IClusterFluentdConfig> implements IClusterFluentdConfig { "apiVersion": IClusterFluentdConfig["apiVersion"]; "kind": IClusterFluentdConfig["kind"]; "metadata"?: IClusterFluentdConfig["metadata"]; "spec"?: IClusterFluentdConfig["spec"]; "status"?: IClusterFluentdConfig["status"]; static apiVersion: IClusterFluentdConfig["apiVersion"]; static kind: IClusterFluentdConfig["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IClusterFluentdConfig>; constructor(data?: ModelData<IClusterFluentdConfig>); }