UNPKG

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

Version:
821 lines (820 loc) 290 kB
import { addSchema } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"; import { Model, setSchema, createTypeMetaGuard } from "@kubernetes-models/base"; import { register } from "@kubernetes-models/validate"; const schemaId = "fluentbit.fluent.io.v1alpha2.FluentBit"; const schema = { "type": "object", "properties": { "apiVersion": { "type": "string", "enum": [ "fluentbit.fluent.io/v1alpha2" ] }, "kind": { "type": "string", "enum": [ "FluentBit" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "properties": { "affinity": { "properties": { "nodeAffinity": { "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { "items": { "properties": { "preference": { "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 }, "matchFields": { "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 } }, "type": "object" }, "weight": { "format": "int32", "type": "integer" } }, "required": [ "preference", "weight" ], "type": "object" }, "type": "array", "nullable": true }, "requiredDuringSchedulingIgnoredDuringExecution": { "properties": { "nodeSelectorTerms": { "items": { "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 }, "matchFields": { "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 } }, "type": "object" }, "type": "array" } }, "required": [ "nodeSelectorTerms" ], "type": "object", "nullable": true } }, "type": "object", "nullable": true }, "podAffinity": { "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { "items": { "properties": { "podAffinityTerm": { "properties": { "labelSelector": { "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 }, "namespaceSelector": { "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 }, "namespaces": { "items": { "type": "string" }, "type": "array", "nullable": true }, "topologyKey": { "type": "string" } }, "required": [ "topologyKey" ], "type": "object" }, "weight": { "format": "int32", "type": "integer" } }, "required": [ "podAffinityTerm", "weight" ], "type": "object" }, "type": "array", "nullable": true }, "requiredDuringSchedulingIgnoredDuringExecution": { "items": { "properties": { "labelSelector": { "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 }, "namespaceSelector": { "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 }, "namespaces": { "items": { "type": "string" }, "type": "array", "nullable": true }, "topologyKey": { "type": "string" } }, "required": [ "topologyKey" ], "type": "object" }, "type": "array", "nullable": true } }, "type": "object", "nullable": true }, "podAntiAffinity": { "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { "items": { "properties": { "podAffinityTerm": { "properties": { "labelSelector": { "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 }, "namespaceSelector": { "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 }, "namespaces": { "items": { "type": "string" }, "type": "array", "nullable": true }, "topologyKey": { "type": "string" } }, "required": [ "topologyKey" ], "type": "object" }, "weight": { "format": "int32", "type": "integer" } }, "required": [ "podAffinityTerm", "weight" ], "type": "object" }, "type": "array", "nullable": true }, "requiredDuringSchedulingIgnoredDuringExecution": { "items": { "properties": { "labelSelector": { "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 }, "namespaceSelector": { "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 }, "namespaces": { "items": { "type": "string" }, "type": "array", "nullable": true }, "topologyKey": { "type": "string" } }, "required": [ "topologyKey" ], "type": "object" }, "type": "array", "nullable": true } }, "type": "object", "nullable": true } }, "type": "object", "nullable": true }, "annotations": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true }, "args": { "items": { "type": "string" }, "type": "array", "nullable": true }, "command": { "items": { "type": "string" }, "type": "array", "nullable": true }, "containerLogRealPath": { "type": "string", "nullable": true }, "containerSecurityContext": { "properties": { "allowPrivilegeEscalation": { "type": "boolean", "nullable": true }, "capabilities": { "properties": { "add": { "items": { "type": "string" }, "type": "array", "nullable": true }, "drop": { "items": { "type": "string" }, "type": "array", "nullable": true } }, "type": "object", "nullable": true }, "privileged": { "type": "boolean", "nullable": true }, "procMount": { "type": "string", "nullable": true }, "readOnlyRootFilesystem": { "type": "boolean", "nullable": true }, "runAsGroup": { "format": "int64", "type": "integer", "nullable": true }, "runAsNonRoot": { "type": "boolean", "nullable": true }, "runAsUser": { "format": "int64", "type": "integer", "nullable": true }, "seLinuxOptions": { "properties": { "level": { "type": "string", "nullable": true }, "role": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "user": { "type": "string", "nullable": true } }, "type": "object", "nullable": true }, "seccompProfile": { "properties": { "localhostProfile": { "type": "string", "nullable": true }, "type": { "type": "string" } }, "required": [ "type" ], "type": "object", "nullable": true }, "windowsOptions": { "properties": { "gmsaCredentialSpec": { "type": "string", "nullable": true }, "gmsaCredentialSpecName": { "type": "string", "nullable": true }, "hostProcess": { "type": "boolean", "nullable": true }, "runAsUserName": { "type": "string", "nullable": true } }, "type": "object", "nullable": true } }, "type": "object", "nullable": true }, "disableService": { "type": "boolean", "nullable": true }, "dnsPolicy": { "type": "string", "nullable": true }, "envVars": { "items": { "properties": { "name": { "type": "string" }, "value": { "type": "string", "nullable": true }, "valueFrom": { "properties": { "configMapKeyRef": { "properties": { "key": { "type": "string" }, "name": { "type": "string", "nullable": true }, "optional": { "type": "boolean", "nullable": true } }, "required": [ "key" ], "type": "object", "nullable": true }, "fieldRef": { "properties": { "apiVersion": { "type": "string", "nullable": true },