UNPKG

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

Version:
273 lines (272 loc) 10.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FluentdConfig = void 0; const IoK8sApimachineryPkgApisMetaV1ObjectMeta_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"); const base_1 = require("@kubernetes-models/base"); const validate_1 = require("@kubernetes-models/validate"); const schemaId = "fluentd.fluent.io.v1alpha1.FluentdConfig"; const schema = { "type": "object", "properties": { "apiVersion": { "type": "string", "enum": [ "fluentd.fluent.io/v1alpha1" ] }, "kind": { "type": "string", "enum": [ "FluentdConfig" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "properties": { "clusterFilterSelector": { "properties": { "matchExpressions": { "items": { "properties": { "key": { "type": "string" }, "operator": { "type": "string" }, "values": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "required": [ "key", "operator" ], "type": "object" }, "type": "array", "nullable": true }, "matchLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object", "nullable": true }, "clusterOutputSelector": { "properties": { "matchExpressions": { "items": { "properties": { "key": { "type": "string" }, "operator": { "type": "string" }, "values": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "required": [ "key", "operator" ], "type": "object" }, "type": "array", "nullable": true }, "matchLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object", "nullable": true }, "emit_mode": { "enum": [ "record", "batch" ], "type": "string", "nullable": true }, "filterSelector": { "properties": { "matchExpressions": { "items": { "properties": { "key": { "type": "string" }, "operator": { "type": "string" }, "values": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "required": [ "key", "operator" ], "type": "object" }, "type": "array", "nullable": true }, "matchLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object", "nullable": true }, "outputSelector": { "properties": { "matchExpressions": { "items": { "properties": { "key": { "type": "string" }, "operator": { "type": "string" }, "values": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "required": [ "key", "operator" ], "type": "object" }, "type": "array", "nullable": true }, "matchLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object", "nullable": true }, "stickyTags": { "type": "string", "nullable": true }, "watchedConstainers": { "items": { "type": "string" }, "type": "array", "nullable": true }, "watchedHosts": { "items": { "type": "string" }, "type": "array", "nullable": true }, "watchedLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object", "nullable": true }, "status": { "properties": { "messages": { "type": "string", "nullable": true }, "state": { "type": "string", "nullable": true } }, "type": "object", "nullable": true } }, "required": [ "apiVersion", "kind" ] }; /** * FluentdConfig is the Schema for the fluentdconfigs API */ class FluentdConfig extends base_1.Model { constructor(data) { super({ apiVersion: FluentdConfig.apiVersion, kind: FluentdConfig.kind, ...data }); } } exports.FluentdConfig = FluentdConfig; FluentdConfig.apiVersion = "fluentd.fluent.io/v1alpha1"; FluentdConfig.kind = "FluentdConfig"; FluentdConfig.is = (0, base_1.createTypeMetaGuard)(FluentdConfig); (0, base_1.setSchema)(FluentdConfig, schemaId, () => { (0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)(); (0, validate_1.register)(schemaId, schema); });