From 5212bad9b32dc4a6f4aace4030acc44c430a4ba9 Mon Sep 17 00:00:00 2001 From: Daniel <69415974+daniel-codefresh@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:28:14 +0300 Subject: [PATCH] feat: Added json schema generation (#1398) * added json schema generation Signed-off-by: daniel-codefresh * feat: Added json schema generation Signed-off-by: daniel-codefresh --- Makefile | 4 + api/jsonschema/schema.json | 6846 ++++++++++++++++++++++++++++++++++++ hack/jsonschema/main.go | 81 + 3 files changed, 6931 insertions(+) create mode 100644 api/jsonschema/schema.json create mode 100644 hack/jsonschema/main.go diff --git a/Makefile b/Makefile index 9214f0cfbc..4ee841e77a 100644 --- a/Makefile +++ b/Makefile @@ -104,6 +104,10 @@ manifests: crds .PHONY: swagger swagger: ./hack/update-swagger.sh ${VERSION} + $(MAKE) api/jsonschema/schema.json + +api/jsonschema/schema.json: api/openapi-spec/swagger.json hack/jsonschema/main.go + go run ./hack/jsonschema .PHONY: codegen codegen: diff --git a/api/jsonschema/schema.json b/api/jsonschema/schema.json new file mode 100644 index 0000000000..62abaabcb5 --- /dev/null +++ b/api/jsonschema/schema.json @@ -0,0 +1,6846 @@ +{ + "$id": "http://events.argoproj.io/events.json", + "$schema": "http://json-schema.org/schema#", + "definitions": { + "io.argoproj.common.Amount": { + "description": "Amount represent a numeric amount.", + "type": "number" + }, + "io.argoproj.common.Backoff": { + "description": "Backoff for an operation", + "properties": { + "duration": { + "$ref": "#/definitions/io.argoproj.common.Int64OrString", + "description": "The initial duration in nanoseconds or strings like \"1s\", \"3m\"" + }, + "factor": { + "$ref": "#/definitions/io.argoproj.common.Amount", + "description": "Duration is multiplied by factor each iteration" + }, + "jitter": { + "$ref": "#/definitions/io.argoproj.common.Amount", + "description": "The amount of jitter applied each iteration" + }, + "steps": { + "description": "Exit with error after this many steps", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.argoproj.common.BasicAuth": { + "description": "BasicAuth contains the reference to K8s secrets that holds the username and password", + "properties": { + "password": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Password refers to the Kubernetes secret that holds the password required for basic auth." + }, + "username": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Username refers to the Kubernetes secret that holds the username required for basic auth." + } + }, + "type": "object" + }, + "io.argoproj.common.Condition": { + "description": "Condition contains details about resource state", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. For example, \"ImageNotFound\"", + "type": "string" + }, + "status": { + "description": "Condition status, True, False or Unknown.", + "type": "string" + }, + "type": { + "description": "Condition type.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.argoproj.common.Int64OrString": { + "format": "int64-or-string", + "type": "string" + }, + "io.argoproj.common.Metadata": { + "description": "Metadata holds the annotations and labels of an event source pod", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "io.argoproj.common.Resource": { + "description": "Resource represent arbitrary structured data.", + "type": "object" + }, + "io.argoproj.common.S3Artifact": { + "description": "S3Artifact contains information about an S3 connection and bucket", + "properties": { + "accessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + }, + "bucket": { + "$ref": "#/definitions/io.argoproj.common.S3Bucket" + }, + "endpoint": { + "type": "string" + }, + "events": { + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "$ref": "#/definitions/io.argoproj.common.S3Filter" + }, + "insecure": { + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "region": { + "type": "string" + }, + "secretKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + } + }, + "required": [ + "endpoint", + "bucket", + "accessKey", + "secretKey" + ], + "type": "object" + }, + "io.argoproj.common.S3Bucket": { + "description": "S3Bucket contains information to describe an S3 Bucket", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.argoproj.common.S3Filter": { + "description": "S3Filter represents filters to apply to bucket notifications for specifying constraints on objects", + "properties": { + "prefix": { + "type": "string" + }, + "suffix": { + "type": "string" + } + }, + "required": [ + "prefix", + "suffix" + ], + "type": "object" + }, + "io.argoproj.common.SASLConfig": { + "description": "SASLConfig refers to SASL configuration for a client", + "properties": { + "mechanism": { + "description": "SASLMechanism is the name of the enabled SASL mechanism. Possible values: OAUTHBEARER, PLAIN (defaults to PLAIN).", + "type": "string" + }, + "passwordSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Password for SASL/PLAIN authentication" + }, + "userSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "User is the authentication identity (authcid) to present for SASL/PLAIN or SASL/SCRAM authentication" + } + }, + "type": "object" + }, + "io.argoproj.common.SecureHeader": { + "description": "SecureHeader refers to HTTP Headers with auth tokens as values", + "properties": { + "name": { + "type": "string" + }, + "valueFrom": { + "$ref": "#/definitions/io.argoproj.common.ValueFromSource", + "description": "Values can be read from either secrets or configmaps" + } + }, + "type": "object" + }, + "io.argoproj.common.Status": { + "description": "Status is a common structure which can be used for Status field.", + "properties": { + "conditions": { + "description": "Conditions are the latest available observations of a resource's current state.", + "items": { + "$ref": "#/definitions/io.argoproj.common.Condition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.common.TLSConfig": { + "description": "TLSConfig refers to TLS configuration for a client.", + "properties": { + "caCertSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "CACertSecret refers to the secret that contains the CA cert" + }, + "clientCertSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "ClientCertSecret refers to the secret that contains the client cert" + }, + "clientKeySecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "ClientKeySecret refers to the secret that contains the client key" + } + }, + "type": "object" + }, + "io.argoproj.common.ValueFromSource": { + "description": "ValueFromSource allows you to reference keys from either a Configmap or Secret", + "properties": { + "configMapKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector" + }, + "secretKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.BusConfig": { + "description": "BusConfig has the finalized configuration for EventBus", + "properties": { + "nats": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSConfig" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.ContainerTemplate": { + "description": "ContainerTemplate defines customized spec for a container", + "properties": { + "imagePullPolicy": { + "type": "string" + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.EventBus": { + "description": "EventBus is the definition of a eventbus resource", + "properties": { + "apiVersion": { + "const": "argoproj.io/v1alpha1", + "description": "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", + "type": "string" + }, + "kind": { + "const": "EventBus", + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBusSpec" + }, + "status": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBusStatus" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "argoproj.io", + "kind": "EventBus", + "version": "v1alpha1" + } + ] + }, + "io.argoproj.eventbus.v1alpha1.EventBusList": { + "description": "EventBusList is the list of eventbus resources", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "items": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBus" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "metadata", + "items" + ], + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.EventBusSpec": { + "description": "EventBusSpec refers to specification of eventbus resource", + "properties": { + "nats": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSBus", + "description": "NATS eventbus" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.EventBusStatus": { + "description": "EventBusStatus holds the status of the eventbus resource", + "properties": { + "conditions": { + "description": "Conditions are the latest available observations of a resource's current state.", + "items": { + "$ref": "#/definitions/io.argoproj.common.Condition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.BusConfig", + "description": "Config holds the fininalized configuration of EventBus" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.NATSBus": { + "description": "NATSBus holds the NATS eventbus information", + "properties": { + "exotic": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSConfig", + "description": "Exotic holds an exotic NATS config" + }, + "native": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NativeStrategy", + "description": "Native means to bring up a native NATS service" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.NATSConfig": { + "description": "NATSConfig holds the config of NATS", + "properties": { + "accessSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Secret for auth" + }, + "auth": { + "description": "Auth strategy, default to AuthStrategyNone", + "type": "string" + }, + "clusterID": { + "description": "Cluster ID for nats streaming", + "type": "string" + }, + "url": { + "description": "NATS streaming url", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.NativeStrategy": { + "description": "NativeStrategy indicates to install a native NATS service", + "properties": { + "affinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", + "description": "The pod's scheduling constraints More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/" + }, + "auth": { + "type": "string" + }, + "containerTemplate": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.ContainerTemplate", + "description": "ContainerTemplate contains customized spec for NATS container" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "maxAge": { + "description": "Max Age of existing messages, i.e. \"72h\", “4h35m”", + "type": "string" + }, + "maxBytes": { + "description": "Total size of messages per channel, 0 means unlimited. Defaults to 1GB", + "type": "string" + }, + "maxMsgs": { + "description": "Maximum number of messages per channel, 0 means unlimited. Defaults to 1000000", + "format": "int64", + "type": "integer" + }, + "maxSubs": { + "description": "Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000", + "format": "int64", + "type": "integer" + }, + "metadata": { + "$ref": "#/definitions/io.argoproj.common.Metadata", + "description": "Metadata sets the pods's metadata, i.e. annotations and labels" + }, + "metricsContainerTemplate": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.ContainerTemplate", + "description": "MetricsContainerTemplate contains customized spec for metrics container" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object" + }, + "persistence": { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.PersistenceStrategy" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the EventSource pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "If specified, indicates the EventSource pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "type": "string" + }, + "replicas": { + "description": "Size is the NATS StatefulSet size", + "format": "int32", + "type": "integer" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccountName": { + "description": "ServiceAccountName to apply to NATS StatefulSet", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array" + } + }, + "type": "object" + }, + "io.argoproj.eventbus.v1alpha1.PersistenceStrategy": { + "description": "PersistenceStrategy defines the strategy of persistence", + "properties": { + "accessMode": { + "description": "Available access modes such as ReadWriteOnce, ReadWriteMany https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes", + "type": "string" + }, + "storageClassName": { + "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": "string" + }, + "volumeSize": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Volume size, e.g. 10Gi" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AMQPConsumeConfig": { + "description": "AMQPConsumeConfig holds the configuration to immediately starts delivering queued messages", + "properties": { + "autoAck": { + "description": "AutoAck when true, the server will acknowledge deliveries to this consumer prior to writing the delivery to the network", + "type": "boolean" + }, + "consumerTag": { + "description": "ConsumerTag is the identity of the consumer included in every delivery", + "type": "string" + }, + "exclusive": { + "description": "Exclusive when true, the server will ensure that this is the sole consumer from this queue", + "type": "boolean" + }, + "noLocal": { + "description": "NoLocal flag is not supported by RabbitMQ", + "type": "boolean" + }, + "noWait": { + "description": "NowWait when true, do not wait for the server to confirm the request and immediately begin deliveries", + "type": "boolean" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AMQPEventSource": { + "description": "AMQPEventSource refers to an event-source for AMQP stream events", + "properties": { + "auth": { + "$ref": "#/definitions/io.argoproj.common.BasicAuth", + "description": "Auth hosts secret selectors for username and password" + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "consume": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPConsumeConfig", + "description": "Consume holds the configuration to immediately starts delivering queued messages For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.Consume" + }, + "exchangeDeclare": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPExchangeDeclareConfig", + "description": "ExchangeDeclare holds the configuration for the exchange on the server For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.ExchangeDeclare" + }, + "exchangeName": { + "description": "ExchangeName is the exchange name For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html", + "type": "string" + }, + "exchangeType": { + "description": "ExchangeType is rabbitmq exchange type", + "type": "string" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "queueBind": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPQueueBindConfig", + "description": "QueueBind holds the configuration that binds an exchange to a queue so that publishings to the exchange will be routed to the queue when the publishing routing key matches the binding routing key For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.QueueBind" + }, + "queueDeclare": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPQueueDeclareConfig", + "description": "QueueDeclare holds the configuration of a queue to hold messages and deliver to consumers. Declaring creates a queue if it doesn't already exist, or ensures that an existing queue matches the same parameters For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.QueueDeclare" + }, + "routingKey": { + "description": "Routing key for bindings", + "type": "string" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the amqp client." + }, + "url": { + "description": "URL for rabbitmq service", + "type": "string" + }, + "urlSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "URLSecret is secret reference for rabbitmq service URL" + } + }, + "required": [ + "exchangeName", + "exchangeType", + "routingKey" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AMQPExchangeDeclareConfig": { + "description": "AMQPExchangeDeclareConfig holds the configuration for the exchange on the server", + "properties": { + "autoDelete": { + "description": "AutoDelete removes the exchange when no bindings are active", + "type": "boolean" + }, + "durable": { + "description": "Durable keeps the exchange also after the server restarts", + "type": "boolean" + }, + "internal": { + "description": "Internal when true does not accept publishings", + "type": "boolean" + }, + "noWait": { + "description": "NowWait when true does not wait for a confirmation from the server", + "type": "boolean" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AMQPQueueBindConfig": { + "description": "AMQPQueueBindConfig holds the configuration that binds an exchange to a queue so that publishings to the exchange will be routed to the queue when the publishing routing key matches the binding routing key", + "properties": { + "noWait": { + "description": "NowWait false and the queue could not be bound, the channel will be closed with an error", + "type": "boolean" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AMQPQueueDeclareConfig": { + "description": "AMQPQueueDeclareConfig holds the configuration of a queue to hold messages and deliver to consumers. Declaring creates a queue if it doesn't already exist, or ensures that an existing queue matches the same parameters", + "properties": { + "autoDelete": { + "description": "AutoDelete removes the queue when no consumers are active", + "type": "boolean" + }, + "durable": { + "description": "Durable keeps the queue also after the server restarts", + "type": "boolean" + }, + "exclusive": { + "description": "Exclusive sets the queues to be accessible only by the connection that declares them and will be deleted wgen the connection closes", + "type": "boolean" + }, + "name": { + "description": "Name of the queue. If empty the server auto-generates a unique name for this queue", + "type": "string" + }, + "noWait": { + "description": "NowWait when true, the queue assumes to be declared on the server", + "type": "boolean" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.AzureEventsHubEventSource": { + "description": "AzureEventsHubEventSource describes the event source for azure events hub More info at https://docs.microsoft.com/en-us/azure/event-hubs/", + "properties": { + "fqdn": { + "description": "FQDN of the EventHubs namespace you created More info at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string", + "type": "string" + }, + "hubName": { + "description": "Event Hub path/name", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "sharedAccessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SharedAccessKey is the generated value of the key" + }, + "sharedAccessKeyName": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SharedAccessKeyName is the name you chose for your application's SAS keys" + } + }, + "required": [ + "fqdn", + "hubName" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.BitbucketServerEventSource": { + "description": "BitbucketServerEventSource refers to event-source related to Bitbucket Server events", + "properties": { + "accessToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AccessToken is reference to K8s secret which holds the bitbucket api access information" + }, + "bitbucketserverBaseURL": { + "description": "BitbucketServerBaseURL is the base URL for API requests to a custom endpoint", + "type": "string" + }, + "deleteHookOnFinish": { + "description": "DeleteHookOnFinish determines whether to delete the Bitbucket Server hook for the project once the event source is stopped.", + "type": "boolean" + }, + "events": { + "description": "Events are bitbucket event to listen to. Refer https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html", + "items": { + "type": "string" + }, + "type": "array" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "projectKey": { + "description": "ProjectKey is the key of project for which integration needs to setup", + "type": "string" + }, + "repositorySlug": { + "description": "RepositorySlug is the slug of the repository for which integration needs to setup", + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook holds configuration to run a http server" + }, + "webhookSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "WebhookSecret is reference to K8s secret which holds the bitbucket webhook secret (for HMAC validation)" + } + }, + "required": [ + "projectKey", + "repositorySlug", + "events", + "bitbucketserverBaseURL" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.CalendarEventSource": { + "description": "CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed. Schedule takes precedence over interval; interval takes precedence over recurrence", + "properties": { + "exclusionDates": { + "items": { + "type": "string" + }, + "type": "array" + }, + "interval": { + "description": "Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "persistence": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventPersistence", + "description": "Persistence hold the configuration for event persistence" + }, + "schedule": { + "description": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + "type": "string" + }, + "timezone": { + "description": "Timezone in which to run the schedule", + "type": "string" + } + }, + "required": [ + "schedule", + "interval" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.CatchupConfiguration": { + "properties": { + "enabled": { + "description": "Enabled enables to triggered the missed schedule when eventsource restarts", + "type": "boolean" + }, + "maxDuration": { + "description": "MaxDuration holds max catchup duration", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.ConfigMapPersistence": { + "properties": { + "createIfNotExist": { + "description": "CreateIfNotExist will create configmap if it doesn't exists", + "type": "boolean" + }, + "name": { + "description": "Name of the configmap", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.EmitterEventSource": { + "description": "EmitterEventSource describes the event source for emitter More info at https://emitter.io/develop/getting-started/", + "properties": { + "broker": { + "description": "Broker URI to connect to.", + "type": "string" + }, + "channelKey": { + "description": "ChannelKey refers to the channel key", + "type": "string" + }, + "channelName": { + "description": "ChannelName refers to the channel name", + "type": "string" + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "password": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Password to use to connect to broker" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the emitter client." + }, + "username": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Username to use to connect to broker" + } + }, + "required": [ + "broker", + "channelKey", + "channelName" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.EventPersistence": { + "properties": { + "catchup": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.CatchupConfiguration", + "description": "Catchup enables to triggered the missed schedule when eventsource restarts" + }, + "configMap": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.ConfigMapPersistence", + "description": "ConfigMap holds configmap details for persistence" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.EventSource": { + "description": "EventSource is the definition of a eventsource resource", + "properties": { + "apiVersion": { + "const": "argoproj.io/v1alpha1", + "description": "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", + "type": "string" + }, + "kind": { + "const": "EventSource", + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSourceSpec" + }, + "status": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSourceStatus" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "argoproj.io", + "kind": "EventSource", + "version": "v1alpha1" + } + ] + }, + "io.argoproj.eventsource.v1alpha1.EventSourceList": { + "description": "EventSourceList is the list of eventsource resources", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "items": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSource" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "metadata", + "items" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.EventSourceSpec": { + "description": "EventSourceSpec refers to specification of event-source resource", + "properties": { + "amqp": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPEventSource" + }, + "description": "AMQP event sources", + "type": "object" + }, + "azureEventsHub": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AzureEventsHubEventSource" + }, + "description": "AzureEventsHub event sources", + "type": "object" + }, + "bitbucketserver": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.BitbucketServerEventSource" + }, + "description": "Bitbucket Server event sources", + "type": "object" + }, + "calendar": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.CalendarEventSource" + }, + "description": "Calendar event sources", + "type": "object" + }, + "emitter": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EmitterEventSource" + }, + "description": "Emitter event source", + "type": "object" + }, + "eventBusName": { + "description": "EventBusName references to a EventBus name. By default the value is \"default\"", + "type": "string" + }, + "file": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.FileEventSource" + }, + "description": "File event sources", + "type": "object" + }, + "generic": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GenericEventSource" + }, + "description": "Generic event source", + "type": "object" + }, + "github": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GithubEventSource" + }, + "description": "Github event sources", + "type": "object" + }, + "gitlab": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GitlabEventSource" + }, + "description": "Gitlab event sources", + "type": "object" + }, + "hdfs": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.HDFSEventSource" + }, + "description": "HDFS event sources", + "type": "object" + }, + "kafka": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.KafkaEventSource" + }, + "description": "Kafka event sources", + "type": "object" + }, + "minio": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.common.S3Artifact" + }, + "description": "Minio event sources", + "type": "object" + }, + "mqtt": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.MQTTEventSource" + }, + "description": "MQTT event sources", + "type": "object" + }, + "nats": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.NATSEventsSource" + }, + "description": "NATS event sources", + "type": "object" + }, + "nsq": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.NSQEventSource" + }, + "description": "NSQ event source", + "type": "object" + }, + "pubSub": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.PubSubEventSource" + }, + "description": "PubSub event sources", + "type": "object" + }, + "pulsar": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.PulsarEventSource" + }, + "description": "Pulsar event source", + "type": "object" + }, + "redis": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.RedisEventSource" + }, + "description": "Redis event source", + "type": "object" + }, + "replicas": { + "description": "Replicas is the event source deployment replicas", + "format": "int32", + "type": "integer" + }, + "resource": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.ResourceEventSource" + }, + "description": "Resource event sources", + "type": "object" + }, + "service": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Service", + "description": "Service is the specifications of the service to expose the event source" + }, + "slack": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SlackEventSource" + }, + "description": "Slack event sources", + "type": "object" + }, + "sns": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SNSEventSource" + }, + "description": "SNS event sources", + "type": "object" + }, + "sqs": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SQSEventSource" + }, + "description": "SQS event sources", + "type": "object" + }, + "storageGrid": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StorageGridEventSource" + }, + "description": "StorageGrid event sources", + "type": "object" + }, + "stripe": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StripeEventSource" + }, + "description": "Stripe event sources", + "type": "object" + }, + "template": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Template", + "description": "Template is the pod specification for the event source" + }, + "webhook": { + "additionalProperties": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext" + }, + "description": "Webhook event sources", + "type": "object" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.EventSourceStatus": { + "description": "EventSourceStatus holds the status of the event-source resource", + "properties": { + "conditions": { + "description": "Conditions are the latest available observations of a resource's current state.", + "items": { + "$ref": "#/definitions/io.argoproj.common.Condition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.FileEventSource": { + "description": "FileEventSource describes an event-source for file related events.", + "properties": { + "eventType": { + "description": "Type of file operations to watch Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "polling": { + "description": "Use polling instead of inotify", + "type": "boolean" + }, + "watchPathConfig": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WatchPathConfig", + "description": "WatchPathConfig contains configuration about the file path to watch" + } + }, + "required": [ + "eventType", + "watchPathConfig" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.GenericEventSource": { + "description": "GenericEventSource refers to a generic event source. It can be used to implement a custom event source.", + "properties": { + "authSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AuthSecret holds a secret selector that contains a bearer token for authentication" + }, + "config": { + "description": "Config is the event source configuration", + "type": "string" + }, + "insecure": { + "description": "Insecure determines the type of connection.", + "type": "boolean" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "url": { + "description": "URL of the gRPC server that implements the event source.", + "type": "string" + } + }, + "required": [ + "url", + "config" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.GithubEventSource": { + "description": "GithubEventSource refers to event-source for github related events", + "properties": { + "active": { + "description": "Active refers to status of the webhook for event deliveries. https://developer.github.com/webhooks/creating/#active", + "type": "boolean" + }, + "apiToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "APIToken refers to a K8s secret containing github api token" + }, + "contentType": { + "description": "ContentType of the event delivery", + "type": "string" + }, + "deleteHookOnFinish": { + "description": "DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.", + "type": "boolean" + }, + "events": { + "items": { + "type": "string" + }, + "type": "array" + }, + "githubBaseURL": { + "description": "GitHub base URL (for GitHub Enterprise)", + "type": "string" + }, + "githubUploadURL": { + "description": "GitHub upload URL (for GitHub Enterprise)", + "type": "string" + }, + "id": { + "description": "Id is the webhook's id Deprecated: This is not used at all, will be removed in v1.6", + "format": "int64", + "type": "integer" + }, + "insecure": { + "description": "Insecure tls verification", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "owner": { + "description": "DeprecatedOwner refers to GitHub owner name i.e. argoproj Deprecated: use Repositories instead. Will be unsupported in v 1.6", + "type": "string" + }, + "repositories": { + "description": "Repositories holds the information of repositories, which uses repo owner as the key, and list of repo names as the value", + "items": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.OwnedRepositories" + }, + "type": "array" + }, + "repository": { + "description": "DeprecatedRepository refers to GitHub repo name i.e. argo-events Deprecated: use Repositories instead. Will be unsupported in v 1.6", + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook refers to the configuration required to run a http server" + }, + "webhookSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "WebhookSecret refers to K8s secret containing GitHub webhook secret https://developer.github.com/webhooks/securing/" + } + }, + "required": [ + "id", + "owner", + "repository", + "events" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.GitlabEventSource": { + "description": "GitlabEventSource refers to event-source related to Gitlab events", + "properties": { + "accessToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AccessToken references to k8 secret which holds the gitlab api access information" + }, + "deleteHookOnFinish": { + "description": "DeleteHookOnFinish determines whether to delete the GitLab hook for the project once the event source is stopped.", + "type": "boolean" + }, + "enableSSLVerification": { + "description": "EnableSSLVerification to enable ssl verification", + "type": "boolean" + }, + "events": { + "description": "Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.", + "items": { + "type": "string" + }, + "type": "array" + }, + "gitlabBaseURL": { + "description": "GitlabBaseURL is the base URL for API requests to a custom endpoint", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "projectID": { + "description": "DeprecatedProjectID is the id of project for which integration needs to setup Deprecated: use Projects instead. Will be unsupported in v 1.7", + "type": "string" + }, + "projects": { + "description": "List of project IDs or project namespace paths like \"whynowy/test\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "secretToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SecretToken references to k8 secret which holds the Secret Token used by webhook config" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook holds configuration to run a http server" + } + }, + "required": [ + "projectID", + "events", + "gitlabBaseURL" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.HDFSEventSource": { + "description": "HDFSEventSource refers to event-source for HDFS related events", + "properties": { + "addresses": { + "items": { + "type": "string" + }, + "type": "array" + }, + "checkInterval": { + "description": "CheckInterval is a string that describes an interval duration to check the directory state, e.g. 1s, 30m, 2h... (defaults to 1m)", + "type": "string" + }, + "directory": { + "description": "Directory to watch for events", + "type": "string" + }, + "hdfsUser": { + "description": "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used.", + "type": "string" + }, + "krbCCacheSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos." + }, + "krbConfigConfigMap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used." + }, + "krbKeytabSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos." + }, + "krbRealm": { + "description": "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used.", + "type": "string" + }, + "krbServicePrincipalName": { + "description": "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used.", + "type": "string" + }, + "krbUsername": { + "description": "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "path": { + "description": "Path is relative path of object to watch with respect to the directory", + "type": "string" + }, + "pathRegexp": { + "description": "PathRegexp is regexp of relative path of object to watch with respect to the directory", + "type": "string" + }, + "type": { + "description": "Type of file operations to watch", + "type": "string" + } + }, + "required": [ + "directory", + "type", + "addresses" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.KafkaConsumerGroup": { + "properties": { + "groupName": { + "description": "The name for the consumer group to use", + "type": "string" + }, + "oldest": { + "description": "When starting up a new group do we want to start from the oldest event (true) or the newest event (false), defaults to false", + "type": "boolean" + }, + "rebalanceStrategy": { + "description": "Rebalance strategy can be one of: sticky, roundrobin, range. Range is the default.", + "type": "string" + } + }, + "required": [ + "groupName" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.KafkaEventSource": { + "description": "KafkaEventSource refers to event-source for Kafka related events", + "properties": { + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "consumerGroup": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.KafkaConsumerGroup", + "description": "Consumer group for kafka client" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "limitEventsPerSecond": { + "description": "Sets a limit on how many events get read from kafka per second.", + "format": "int64", + "type": "integer" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "partition": { + "description": "Partition name", + "type": "string" + }, + "sasl": { + "$ref": "#/definitions/io.argoproj.common.SASLConfig", + "description": "SASL configuration for the kafka client" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the kafka client." + }, + "topic": { + "description": "Topic name", + "type": "string" + }, + "url": { + "description": "URL to kafka cluster, multiple URLs separated by comma", + "type": "string" + }, + "version": { + "description": "Specify what kafka version is being connected to enables certain features in sarama, defaults to 1.0.0", + "type": "string" + } + }, + "required": [ + "url", + "partition", + "topic" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.MQTTEventSource": { + "description": "MQTTEventSource refers to event-source for MQTT related events", + "properties": { + "clientId": { + "description": "ClientID is the id of the client", + "type": "string" + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "ConnectionBackoff holds backoff applied to connection." + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the mqtt client." + }, + "topic": { + "description": "Topic name", + "type": "string" + }, + "url": { + "description": "URL to connect to broker", + "type": "string" + } + }, + "required": [ + "url", + "topic", + "clientId" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.NATSAuth": { + "description": "NATSAuth refers to the auth info for NATS EventSource", + "properties": { + "basic": { + "$ref": "#/definitions/io.argoproj.common.BasicAuth", + "description": "Baisc auth with username and password" + }, + "credential": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "credential used to connect" + }, + "nkey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "NKey used to connect" + }, + "token": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Token used to connect" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.NATSEventsSource": { + "description": "NATSEventsSource refers to event-source for NATS related events", + "properties": { + "auth": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.NATSAuth", + "description": "Auth information" + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "ConnectionBackoff holds backoff applied to connection." + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "subject": { + "description": "Subject holds the name of the subject onto which messages are published", + "type": "string" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the nats client." + }, + "url": { + "description": "URL to connect to NATS cluster", + "type": "string" + } + }, + "required": [ + "url", + "subject" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.NSQEventSource": { + "description": "NSQEventSource describes the event source for NSQ PubSub More info at https://godoc.org/github.com/nsqio/go-nsq", + "properties": { + "channel": { + "description": "Channel used for subscription", + "type": "string" + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "hostAddress": { + "description": "HostAddress is the address of the host for NSQ lookup", + "type": "string" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the nsq client." + }, + "topic": { + "description": "Topic to subscribe to.", + "type": "string" + } + }, + "required": [ + "hostAddress", + "topic", + "channel" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.OwnedRepositories": { + "properties": { + "names": { + "description": "Repository names", + "items": { + "type": "string" + }, + "type": "array" + }, + "owner": { + "description": "Orgnization or user name", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.PubSubEventSource": { + "description": "PubSubEventSource refers to event-source for GCP PubSub related events.", + "properties": { + "credentialSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "CredentialSecret references to the secret that contains JSON credentials to access GCP. If it is missing, it implicitly uses Workload Identity to access. https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity" + }, + "deleteSubscriptionOnFinish": { + "description": "DeleteSubscriptionOnFinish determines whether to delete the GCP PubSub subscription once the event source is stopped.", + "type": "boolean" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "projectID": { + "description": "ProjectID is GCP project ID for the subscription. Required if you run Argo Events outside of GKE/GCE. (otherwise, the default value is its project)", + "type": "string" + }, + "subscriptionID": { + "description": "SubscriptionID is ID of subscription. Required if you use existing subscription. The default value will be auto generated hash based on this eventsource setting, so the subscription might be recreated every time you update the setting, which has a possibility of event loss.", + "type": "string" + }, + "topic": { + "description": "Topic to which the subscription should belongs. Required if you want the eventsource to create a new subscription. If you specify this field along with an existing subscription, it will be verified whether it actually belongs to the specified topic.", + "type": "string" + }, + "topicProjectID": { + "description": "TopicProjectID is GCP project ID for the topic. By default, it is same as ProjectID.", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.PulsarEventSource": { + "description": "PulsarEventSource describes the event source for Apache Pulsar", + "properties": { + "authTokenSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Authentication token for the pulsar client." + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the pulsar client." + }, + "tlsAllowInsecureConnection": { + "description": "Whether the Pulsar client accept untrusted TLS certificate from broker.", + "type": "boolean" + }, + "tlsTrustCertsSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Trusted TLS certificate secret." + }, + "tlsValidateHostname": { + "description": "Whether the Pulsar client verify the validity of the host name from broker.", + "type": "boolean" + }, + "topics": { + "description": "Name of the topics to subscribe to.", + "items": { + "type": "string" + }, + "type": "array" + }, + "type": { + "description": "Type of the subscription. Only \"exclusive\" and \"shared\" is supported. Defaults to exclusive.", + "type": "string" + }, + "url": { + "description": "Configure the service URL for the Pulsar service.", + "type": "string" + } + }, + "required": [ + "topics", + "url" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.RedisEventSource": { + "description": "RedisEventSource describes an event source for the Redis PubSub. More info at https://godoc.org/github.com/go-redis/redis#example-PubSub", + "properties": { + "channels": { + "items": { + "type": "string" + }, + "type": "array" + }, + "db": { + "description": "DB to use. If not specified, default DB 0 will be used.", + "format": "int32", + "type": "integer" + }, + "hostAddress": { + "description": "HostAddress refers to the address of the Redis host/server", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "namespace": { + "description": "Namespace to use to retrieve the password from. It should only be specified if password is declared", + "type": "string" + }, + "password": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Password required for authentication if any." + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the redis client." + } + }, + "required": [ + "hostAddress", + "channels" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.ResourceEventSource": { + "description": "ResourceEventSource refers to a event-source for K8s resource related events.", + "properties": { + "eventTypes": { + "description": "EventTypes is the list of event type to watch. Possible values are - ADD, UPDATE and DELETE.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.ResourceFilter", + "description": "Filter is applied on the metadata of the resource If you apply filter, then the internal event informer will only monitor objects that pass the filter." + }, + "group": { + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "namespace": { + "description": "Namespace where resource is deployed", + "type": "string" + }, + "resource": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "required": [ + "namespace", + "group", + "version", + "resource", + "eventTypes" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.ResourceFilter": { + "description": "ResourceFilter contains K8s ObjectMeta information to further filter resource event objects", + "properties": { + "afterStart": { + "description": "If the resource is created after the start time then the event is treated as valid.", + "type": "boolean" + }, + "createdBy": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "If resource is created before the specified time then the event is treated as valid." + }, + "fields": { + "description": "Fields provide field filters similar to K8s field selector (see https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/). Unlike K8s field selector, it supports arbitrary fileds like \"spec.serviceAccountName\", and the value could be a string or a regex. Same as K8s field selector, operator \"=\", \"==\" and \"!=\" are supported.", + "items": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Selector" + }, + "type": "array" + }, + "labels": { + "description": "Labels provide listing options to K8s API to watch resource/s. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more info.", + "items": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Selector" + }, + "type": "array" + }, + "prefix": { + "description": "Prefix filter is applied on the resource name.", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.SNSEventSource": { + "description": "SNSEventSource refers to event-source for AWS SNS related events", + "properties": { + "accessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AccessKey refers K8s secret containing aws access key" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "region": { + "description": "Region is AWS region", + "type": "string" + }, + "roleARN": { + "description": "RoleARN is the Amazon Resource Name (ARN) of the role to assume.", + "type": "string" + }, + "secretKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SecretKey refers K8s secret containing aws secret key" + }, + "topicArn": { + "description": "TopicArn", + "type": "string" + }, + "validateSignature": { + "description": "ValidateSignature is boolean that can be set to true for SNS signature verification", + "type": "boolean" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook configuration for http server" + } + }, + "required": [ + "topicArn", + "region" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.SQSEventSource": { + "description": "SQSEventSource refers to event-source for AWS SQS related events", + "properties": { + "accessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AccessKey refers K8s secret containing aws access key" + }, + "jsonBody": { + "description": "JSONBody specifies that all event body payload coming from this source will be JSON", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "queue": { + "description": "Queue is AWS SQS queue to listen to for messages", + "type": "string" + }, + "queueAccountId": { + "description": "QueueAccountID is the ID of the account that created the queue to monitor", + "type": "string" + }, + "region": { + "description": "Region is AWS region", + "type": "string" + }, + "roleARN": { + "description": "RoleARN is the Amazon Resource Name (ARN) of the role to assume.", + "type": "string" + }, + "secretKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SecretKey refers K8s secret containing aws secret key" + }, + "waitTimeSeconds": { + "description": "WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive in the queue before returning.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "region", + "queue", + "waitTimeSeconds" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.Selector": { + "description": "Selector represents conditional operation to select K8s objects.", + "properties": { + "key": { + "description": "Key name", + "type": "string" + }, + "operation": { + "description": "Supported operations like ==, !=, \u003c=, \u003e= etc. Defaults to ==. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors for more info.", + "type": "string" + }, + "value": { + "description": "Value", + "type": "string" + } + }, + "required": [ + "key", + "value" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.Service": { + "description": "Service holds the service information eventsource exposes", + "properties": { + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": "string" + }, + "ports": { + "description": "The list of ports that are exposed by this ClusterIP service.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.SlackEventSource": { + "description": "SlackEventSource refers to event-source for Slack related events", + "properties": { + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "signingSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Slack App signing secret" + }, + "token": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Token for URL verification handshake" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook holds configuration for a REST endpoint" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.StorageGridEventSource": { + "description": "StorageGridEventSource refers to event-source for StorageGrid related events", + "properties": { + "apiURL": { + "description": "APIURL is the url of the storagegrid api.", + "type": "string" + }, + "authToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Auth token for storagegrid api" + }, + "bucket": { + "description": "Name of the bucket to register notifications for.", + "type": "string" + }, + "events": { + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StorageGridFilter", + "description": "Filter on object key which caused the notification." + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "region": { + "description": "S3 region. Defaults to us-east-1", + "type": "string" + }, + "topicArn": { + "description": "TopicArn", + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook holds configuration for a REST endpoint" + } + }, + "required": [ + "topicArn", + "bucket", + "authToken", + "apiURL" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.StorageGridFilter": { + "description": "StorageGridFilter represents filters to apply to bucket notifications for specifying constraints on objects", + "properties": { + "prefix": { + "type": "string" + }, + "suffix": { + "type": "string" + } + }, + "required": [ + "prefix", + "suffix" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.StripeEventSource": { + "description": "StripeEventSource describes the event source for stripe webhook notifications More info at https://stripe.com/docs/webhooks", + "properties": { + "apiKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled." + }, + "createWebhook": { + "description": "CreateWebhook if specified creates a new webhook programmatically.", + "type": "boolean" + }, + "eventFilter": { + "description": "EventFilter describes the type of events to listen to. If not specified, all types of events will be processed. More info at https://stripe.com/docs/api/events/list", + "items": { + "type": "string" + }, + "type": "array" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "webhook": { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext", + "description": "Webhook holds configuration for a REST endpoint" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.Template": { + "description": "Template holds the information of an EventSource deployment template", + "properties": { + "affinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "container": { + "$ref": "#/definitions/io.k8s.api.core.v1.Container", + "description": "Container is the main container image to run in the event source pod" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "metadata": { + "$ref": "#/definitions/io.argoproj.common.Metadata", + "description": "Metadata sets the pods's metadata, i.e. annotations and labels" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the EventSource pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "If specified, indicates the EventSource pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "type": "string" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run event source pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array" + }, + "volumes": { + "description": "Volumes is a list of volumes that can be mounted by containers in an eventsource.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Volume" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.WatchPathConfig": { + "properties": { + "directory": { + "description": "Directory to watch for events", + "type": "string" + }, + "path": { + "description": "Path is relative path of object to watch with respect to the directory", + "type": "string" + }, + "pathRegexp": { + "description": "PathRegexp is regexp of relative path of object to watch with respect to the directory", + "type": "string" + } + }, + "required": [ + "directory" + ], + "type": "object" + }, + "io.argoproj.eventsource.v1alpha1.WebhookContext": { + "description": "WebhookContext holds a general purpose REST API context", + "properties": { + "authSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AuthSecret holds a secret selector that contains a bearer token for authentication" + }, + "endpoint": { + "description": "REST API endpoint", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata holds the user defined metadata which will passed along the event payload.", + "type": "object" + }, + "method": { + "description": "Method is HTTP request method that indicates the desired action to be performed for a given resource. See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content", + "type": "string" + }, + "port": { + "description": "Port on which HTTP server is listening for incoming events.", + "type": "string" + }, + "serverCertSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "ServerCertPath refers the file that contains the cert." + }, + "serverKeySecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "ServerKeyPath refers the file that contains private key" + }, + "url": { + "description": "URL is the url of the server.", + "type": "string" + } + }, + "required": [ + "endpoint", + "method", + "port", + "url" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.AWSLambdaTrigger": { + "description": "AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function", + "properties": { + "accessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AccessKey refers K8s secret containing aws access key" + }, + "functionName": { + "description": "FunctionName refers to the name of the function to invoke.", + "type": "string" + }, + "invocationType": { + "description": "Choose from the following options.\n\n * RequestResponse (default) - Invoke the function synchronously. Keep\n the connection open until the function returns a response or times out.\n The API response includes the function response and additional data.\n\n * Event - Invoke the function asynchronously. Send events that fail multiple\n times to the function's dead-letter queue (if it's configured). The API\n response only includes a status code.\n\n * DryRun - Validate parameter values and verify that the user or role\n has permission to invoke the function.", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "region": { + "description": "Region is AWS region", + "type": "string" + }, + "secretKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SecretKey refers K8s secret containing aws secret key" + } + }, + "required": [ + "functionName", + "region", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.ArgoWorkflowTrigger": { + "description": "ArgoWorkflowTrigger is the trigger for the Argo Workflow", + "properties": { + "operation": { + "description": "Operation refers to the type of operation performed on the argo workflow resource. Default value is Submit.", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of parameters to pass to resolved Argo Workflow object", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "source": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ArtifactLocation", + "description": "Source of the K8s resource file(s)" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.ArtifactLocation": { + "description": "ArtifactLocation describes the source location for an external artifact", + "properties": { + "configmap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Configmap that stores the artifact" + }, + "file": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.FileArtifact", + "description": "File artifact is artifact stored in a file" + }, + "git": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.GitArtifact", + "description": "Git repository hosting the artifact" + }, + "inline": { + "description": "Inline artifact is embedded in sensor spec as a string", + "type": "string" + }, + "resource": { + "$ref": "#/definitions/io.argoproj.common.Resource", + "description": "Resource is generic template for K8s resource" + }, + "s3": { + "$ref": "#/definitions/io.argoproj.common.S3Artifact", + "description": "S3 compliant artifact" + }, + "url": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.URLArtifact", + "description": "URL to fetch the artifact from" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.AzureEventHubsTrigger": { + "description": "AzureEventHubsTrigger refers to specification of the Azure Event Hubs Trigger", + "properties": { + "fqdn": { + "description": "FQDN refers to the namespace dns of Azure Event Hubs to be used i.e. \u003cnamespace\u003e.servicebus.windows.net", + "type": "string" + }, + "hubName": { + "description": "HubName refers to the Azure Event Hub to send events to", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "sharedAccessKey": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SharedAccessKey refers to a K8s secret containing the primary key for the" + }, + "sharedAccessKeyName": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SharedAccessKeyName refers to the name of the Shared Access Key" + } + }, + "required": [ + "fqdn", + "hubName", + "sharedAccessKeyName", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.ConditionsResetByTime": { + "properties": { + "cron": { + "description": "Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + "type": "string" + }, + "timezone": { + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.ConditionsResetCriteria": { + "properties": { + "byTime": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ConditionsResetByTime", + "description": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.CustomTrigger": { + "description": "CustomTrigger refers to the specification of the custom trigger.", + "properties": { + "certSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "CertSecret refers to the secret that contains cert for secure connection between sensor and custom trigger gRPC server." + }, + "parameters": { + "description": "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "secure": { + "description": "Secure refers to type of the connection between sensor to custom trigger gRPC", + "type": "boolean" + }, + "serverNameOverride": { + "description": "ServerNameOverride for the secure connection between sensor and custom trigger gRPC server.", + "type": "string" + }, + "serverURL": { + "description": "ServerURL is the url of the gRPC server that executes custom trigger", + "type": "string" + }, + "spec": { + "additionalProperties": { + "type": "string" + }, + "description": "Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret.", + "type": "object" + } + }, + "required": [ + "serverURL", + "secure", + "spec", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.DataFilter": { + "description": "DataFilter describes constraints and filters for event data Regular Expressions are purposefully not a feature as they are overkill for our uses here See Rob Pike's Post: https://commandcenter.blogspot.com/2011/08/regular-expressions-in-lexing-and.html", + "properties": { + "comparator": { + "description": "Comparator compares the event data with a user given value. Can be \"\u003e=\", \"\u003e\", \"=\", \"!=\", \"\u003c\", or \"\u003c=\". Is optional, and if left blank treated as equality \"=\".", + "type": "string" + }, + "path": { + "description": "Path is the JSONPath of the event's (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", + "type": "string" + }, + "template": { + "description": "Template is a go-template for extracting a string from the event's data. A Template is evaluated with provided path, type and value. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", + "type": "string" + }, + "type": { + "description": "Type contains the JSON type of the data", + "type": "string" + }, + "value": { + "description": "Value is the allowed string values for this key Booleans are passed using strconv.ParseBool() Numbers are parsed using as float64 using strconv.ParseFloat() Strings are taken as is Nils this value is ignored", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "path", + "type", + "value" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.Event": { + "description": "Event represents the cloudevent received from an event source.", + "properties": { + "context": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EventContext" + }, + "data": { + "format": "byte", + "type": "string" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.EventContext": { + "description": "EventContext holds the context of the cloudevent received from an event source.", + "properties": { + "datacontenttype": { + "description": "DataContentType - A MIME (RFC2046) string describing the media type of `data`.", + "type": "string" + }, + "id": { + "description": "ID of the event; must be non-empty and unique within the scope of the producer.", + "type": "string" + }, + "source": { + "description": "Source - A URI describing the event producer.", + "type": "string" + }, + "specversion": { + "description": "SpecVersion - The version of the CloudEvents specification used by the event.", + "type": "string" + }, + "subject": { + "description": "Subject - The subject of the event in the context of the event producer", + "type": "string" + }, + "time": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time - A Timestamp when the event happened." + }, + "type": { + "description": "Type - The type of the occurrence which has happened.", + "type": "string" + } + }, + "required": [ + "id", + "source", + "specversion", + "type", + "datacontenttype", + "subject", + "time" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.EventDependency": { + "description": "EventDependency describes a dependency", + "properties": { + "eventName": { + "description": "EventName is the name of the event", + "type": "string" + }, + "eventSourceName": { + "description": "EventSourceName is the name of EventSource that Sensor depends on", + "type": "string" + }, + "filters": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EventDependencyFilter", + "description": "Filters and rules governing toleration of success and constraints on the context and data of an event" + }, + "name": { + "description": "Name is a unique name of this dependency", + "type": "string" + } + }, + "required": [ + "name", + "eventSourceName", + "eventName" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.EventDependencyFilter": { + "description": "EventDependencyFilter defines filters and constraints for a event.", + "properties": { + "context": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EventContext", + "description": "Context filter constraints" + }, + "data": { + "description": "Data filter constraints with escalation", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.DataFilter" + }, + "type": "array" + }, + "exprs": { + "description": "Exprs contains the list of expressions evaluated against the event payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ExprFilter" + }, + "type": "array" + }, + "time": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TimeFilter", + "description": "Time filter on the event with escalation" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.ExprFilter": { + "properties": { + "expr": { + "description": "Expr refers to the expression that determines the outcome of the filter.", + "type": "string" + }, + "fields": { + "description": "Fields refers to set of keys that refer to the paths within event payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.PayloadField" + }, + "type": "array" + } + }, + "required": [ + "expr", + "fields" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.FileArtifact": { + "description": "FileArtifact contains information about an artifact in a filesystem", + "properties": { + "path": { + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.GitArtifact": { + "description": "GitArtifact contains information about an artifact stored in git", + "properties": { + "branch": { + "description": "Branch to use to pull trigger resource", + "type": "string" + }, + "cloneDirectory": { + "description": "Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. Hence we don't use any specific git provider client.", + "type": "string" + }, + "creds": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.GitCreds", + "description": "Creds contain reference to git username and password" + }, + "filePath": { + "description": "Path to file that contains trigger resource definition", + "type": "string" + }, + "ref": { + "description": "Ref to use to pull trigger resource. Will result in a shallow clone and fetch.", + "type": "string" + }, + "remote": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.GitRemoteConfig", + "description": "Remote to manage set of tracked repositories. Defaults to \"origin\". Refer https://git-scm.com/docs/git-remote" + }, + "sshKeySecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SSHKeySecret refers to the secret that contains SSH key" + }, + "tag": { + "description": "Tag to use to pull trigger resource", + "type": "string" + }, + "url": { + "description": "Git URL", + "type": "string" + } + }, + "required": [ + "url", + "cloneDirectory", + "filePath" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.GitCreds": { + "description": "GitCreds contain reference to git username and password", + "properties": { + "password": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + }, + "username": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.GitRemoteConfig": { + "description": "GitRemoteConfig contains the configuration of a Git remote", + "properties": { + "name": { + "description": "Name of the remote to fetch from.", + "type": "string" + }, + "urls": { + "description": "URLs the URLs of a remote repository. It must be non-empty. Fetch will always use the first URL, while push will use all of them.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "urls" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.HTTPTrigger": { + "description": "HTTPTrigger is the trigger for the HTTP request", + "properties": { + "basicAuth": { + "$ref": "#/definitions/io.argoproj.common.BasicAuth", + "description": "BasicAuth configuration for the http request." + }, + "headers": { + "additionalProperties": { + "type": "string" + }, + "description": "Headers for the HTTP request.", + "type": "object" + }, + "method": { + "description": "Method refers to the type of the HTTP request. Refer https://golang.org/src/net/http/method.go for more info. Default value is POST.", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "secureHeaders": { + "description": "Secure Headers stored in Kubernetes Secrets for the HTTP requests.", + "items": { + "$ref": "#/definitions/io.argoproj.common.SecureHeader" + }, + "type": "array" + }, + "timeout": { + "description": "Timeout refers to the HTTP request timeout in seconds. Default value is 60 seconds.", + "format": "int64", + "type": "integer" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the HTTP client." + }, + "url": { + "description": "URL refers to the URL to send HTTP request to.", + "type": "string" + } + }, + "required": [ + "url", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.K8SResourcePolicy": { + "description": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using labels", + "properties": { + "backoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff before checking resource state" + }, + "errorOnBackoffTimeout": { + "description": "ErrorOnBackoffTimeout determines whether sensor should transition to error state if the trigger policy is unable to determine the state of the resource", + "type": "boolean" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels required to identify whether a resource is in success state", + "type": "object" + } + }, + "required": [ + "backoff", + "errorOnBackoffTimeout" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.KafkaTrigger": { + "description": "KafkaTrigger refers to the specification of the Kafka trigger.", + "properties": { + "compress": { + "description": "Compress determines whether to compress message or not. Defaults to false. If set to true, compresses message using snappy compression.", + "type": "boolean" + }, + "flushFrequency": { + "description": "FlushFrequency refers to the frequency in milliseconds to flush batches. Defaults to 500 milliseconds.", + "format": "int32", + "type": "integer" + }, + "parameters": { + "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "partition": { + "description": "Partition to write data to.", + "format": "int32", + "type": "integer" + }, + "partitioningKey": { + "description": "The partitioning key for the messages put on the Kafka topic. Defaults to broker url.", + "type": "string" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "requiredAcks": { + "description": "RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack).", + "format": "int32", + "type": "integer" + }, + "sasl": { + "$ref": "#/definitions/io.argoproj.common.SASLConfig", + "description": "SASL configuration for the kafka client" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the Kafka producer." + }, + "topic": { + "description": "Name of the topic. More info at https://kafka.apache.org/documentation/#intro_topics", + "type": "string" + }, + "url": { + "description": "URL of the Kafka broker, multiple URLs separated by comma.", + "type": "string" + }, + "version": { + "description": "Specify what kafka version is being connected to enables certain features in sarama, defaults to 1.0.0", + "type": "string" + } + }, + "required": [ + "url", + "topic", + "partition", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.LogTrigger": { + "properties": { + "intervalSeconds": { + "description": "Only print messages every interval. Useful to prevent logging too much data for busy events.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.NATSTrigger": { + "description": "NATSTrigger refers to the specification of the NATS trigger.", + "properties": { + "parameters": { + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "subject": { + "description": "Name of the subject to put message on.", + "type": "string" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the NATS producer." + }, + "url": { + "description": "URL of the NATS cluster.", + "type": "string" + } + }, + "required": [ + "url", + "subject", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.OpenWhiskTrigger": { + "description": "OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.", + "properties": { + "actionName": { + "description": "Name of the action/function.", + "type": "string" + }, + "authToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "AuthToken for authentication." + }, + "host": { + "description": "Host URL of the OpenWhisk.", + "type": "string" + }, + "namespace": { + "description": "Namespace for the action. Defaults to \"_\".", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "version": { + "description": "Version for the API. Defaults to v1.", + "type": "string" + } + }, + "required": [ + "host", + "actionName", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.PayloadField": { + "description": "PayloadField binds a value at path within the event payload against a name.", + "properties": { + "name": { + "description": "Name acts as key that holds the value at the path.", + "type": "string" + }, + "path": { + "description": "Path is the JSONPath of the event's (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", + "type": "string" + } + }, + "required": [ + "path", + "name" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.PulsarTrigger": { + "description": "PulsarTrigger refers to the specification of the Pulsar trigger.", + "properties": { + "authTokenSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Authentication token for the pulsar client." + }, + "connectionBackoff": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Backoff holds parameters applied to connection." + }, + "parameters": { + "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "payload": { + "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "tls": { + "$ref": "#/definitions/io.argoproj.common.TLSConfig", + "description": "TLS configuration for the pulsar client." + }, + "tlsAllowInsecureConnection": { + "description": "Whether the Pulsar client accept untrusted TLS certificate from broker.", + "type": "boolean" + }, + "tlsTrustCertsSecret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Trusted TLS certificate secret." + }, + "tlsValidateHostname": { + "description": "Whether the Pulsar client verify the validity of the host name from broker.", + "type": "boolean" + }, + "topic": { + "description": "Name of the topic. See https://pulsar.apache.org/docs/en/concepts-messaging/", + "type": "string" + }, + "url": { + "description": "Configure the service URL for the Pulsar service.", + "type": "string" + } + }, + "required": [ + "url", + "topic", + "payload" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.RateLimit": { + "properties": { + "requestsPerUnit": { + "format": "int32", + "type": "integer" + }, + "unit": { + "description": "Defaults to Second", + "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.Sensor": { + "description": "Sensor is the definition of a sensor resource", + "properties": { + "apiVersion": { + "const": "argoproj.io/v1alpha1", + "description": "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", + "type": "string" + }, + "kind": { + "const": "Sensor", + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SensorSpec" + }, + "status": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SensorStatus" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "argoproj.io", + "kind": "Sensor", + "version": "v1alpha1" + } + ] + }, + "io.argoproj.sensor.v1alpha1.SensorList": { + "description": "SensorList is the list of Sensor resources", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Sensor" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "metadata", + "items" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.SensorSpec": { + "description": "SensorSpec represents desired sensor state", + "properties": { + "dependencies": { + "description": "Dependencies is a list of the events that this sensor is dependent on.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EventDependency" + }, + "type": "array" + }, + "errorOnFailedRound": { + "description": "ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed.", + "type": "boolean" + }, + "eventBusName": { + "description": "EventBusName references to a EventBus name. By default the value is \"default\"", + "type": "string" + }, + "replicas": { + "description": "Replicas is the sensor deployment replicas", + "format": "int32", + "type": "integer" + }, + "template": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Template", + "description": "Template is the pod specification for the sensor" + }, + "triggers": { + "description": "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Trigger" + }, + "type": "array" + } + }, + "required": [ + "dependencies", + "triggers" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.SensorStatus": { + "description": "SensorStatus contains information about the status of a sensor.", + "properties": { + "conditions": { + "description": "Conditions are the latest available observations of a resource's current state.", + "items": { + "$ref": "#/definitions/io.argoproj.common.Condition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.SlackTrigger": { + "description": "SlackTrigger refers to the specification of the slack notification trigger.", + "properties": { + "channel": { + "description": "Channel refers to which Slack channel to send slack message.", + "type": "string" + }, + "message": { + "description": "Message refers to the message to send to the Slack channel.", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "slackToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages." + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.StandardK8STrigger": { + "description": "StandardK8STrigger is the standard Kubernetes resource trigger", + "properties": { + "liveObject": { + "description": "LiveObject specifies whether the resource should be directly fetched from K8s instead of being marshaled from the resource artifact. If set to true, the resource artifact must contain the information required to uniquely identify the resource in the cluster, that is, you must specify \"apiVersion\", \"kind\" as well as \"name\" and \"namespace\" meta data. Only valid for operation type `update`", + "type": "boolean" + }, + "operation": { + "description": "Operation refers to the type of operation performed on the k8s resource. Default value is Create.", + "type": "string" + }, + "parameters": { + "description": "Parameters is the list of parameters that is applied to resolved K8s trigger object.", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "patchStrategy": { + "description": "PatchStrategy controls the K8s object patching strategy when the trigger operation is specified as patch. possible values: \"application/json-patch+json\" \"application/merge-patch+json\" \"application/strategic-merge-patch+json\" \"application/apply-patch+yaml\". Defaults to \"application/merge-patch+json\"", + "type": "string" + }, + "source": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ArtifactLocation", + "description": "Source of the K8s resource file(s)" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.StatusPolicy": { + "description": "StatusPolicy refers to the policy used to check the state of the trigger using response status", + "properties": { + "allow": { + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "required": [ + "allow" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.Template": { + "description": "Template holds the information of a sensor deployment template", + "properties": { + "affinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "container": { + "$ref": "#/definitions/io.k8s.api.core.v1.Container", + "description": "Container is the main container image to run in the sensor pod" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "metadata": { + "$ref": "#/definitions/io.argoproj.common.Metadata", + "description": "Metadata sets the pods's metadata, i.e. annotations and labels" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the EventSource pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "If specified, indicates the EventSource pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/", + "type": "string" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run sensor pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array" + }, + "volumes": { + "description": "Volumes is a list of volumes that can be mounted by containers in a workflow.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Volume" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.TimeFilter": { + "description": "TimeFilter describes a window in time. It filters out events that occur outside the time limits. In other words, only events that occur after Start and before Stop will pass this filter.", + "properties": { + "start": { + "description": "Start is the beginning of a time window in UTC. Before this time, events for this dependency are ignored. Format is hh:mm:ss.", + "type": "string" + }, + "stop": { + "description": "Stop is the end of a time window in UTC. After or equal to this time, events for this dependency are ignored and Format is hh:mm:ss. If it is smaller than Start, it is treated as next day of Start (e.g.: 22:00:00-01:00:00 means 22:00:00-25:00:00).", + "type": "string" + } + }, + "required": [ + "start", + "stop" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.Trigger": { + "description": "Trigger is an action taken, output produced, an event created, a message sent", + "properties": { + "parameters": { + "description": "Parameters is the list of parameters applied to the trigger template definition", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter" + }, + "type": "array" + }, + "policy": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerPolicy", + "description": "Policy to configure backoff and execution criteria for the trigger" + }, + "rateLimit": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.RateLimit", + "description": "Rate limit, default unit is Second" + }, + "retryStrategy": { + "$ref": "#/definitions/io.argoproj.common.Backoff", + "description": "Retry strategy, defaults to no retry" + }, + "template": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerTemplate", + "description": "Template describes the trigger specification." + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.TriggerParameter": { + "description": "TriggerParameter indicates a passed parameter to a service template", + "properties": { + "dest": { + "description": "Dest is the JSONPath of a resource key. A path is a series of keys separated by a dot. The colon character can be escaped with '.' The -1 key can be used to append a value to an existing array. See https://github.com/tidwall/sjson#path-syntax for more information about how this is used.", + "type": "string" + }, + "operation": { + "description": "Operation is what to do with the existing value at Dest, whether to 'prepend', 'overwrite', or 'append' it.", + "type": "string" + }, + "src": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameterSource", + "description": "Src contains a source reference to the value of the parameter from a dependency" + } + }, + "required": [ + "dest" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.TriggerParameterSource": { + "description": "TriggerParameterSource defines the source for a parameter from a event event", + "properties": { + "contextKey": { + "description": "ContextKey is the JSONPath of the event's (JSON decoded) context key ContextKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", + "type": "string" + }, + "contextTemplate": { + "description": "ContextTemplate is a go-template for extracting a string from the event's context. If a ContextTemplate is provided with a ContextKey, the template will be evaluated first and fallback to the ContextKey. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", + "type": "string" + }, + "dataKey": { + "description": "DataKey is the JSONPath of the event's (JSON decoded) data key DataKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", + "type": "string" + }, + "dataTemplate": { + "description": "DataTemplate is a go-template for extracting a string from the event's data. If a DataTemplate is provided with a DataKey, the template will be evaluated first and fallback to the DataKey. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", + "type": "string" + }, + "dependencyName": { + "description": "DependencyName refers to the name of the dependency. The event which is stored for this dependency is used as payload for the parameterization. Make sure to refer to one of the dependencies you have defined under Dependencies list.", + "type": "string" + }, + "value": { + "description": "Value is the default literal value to use for this parameter source This is only used if the DataKey is invalid. If the DataKey is invalid and this is not defined, this param source will produce an error.", + "type": "string" + } + }, + "required": [ + "dependencyName" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.TriggerPolicy": { + "description": "TriggerPolicy dictates the policy for the trigger retries", + "properties": { + "k8s": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.K8SResourcePolicy", + "description": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels" + }, + "status": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.StatusPolicy", + "description": "Status refers to the policy used to check the state of the trigger using response status" + } + }, + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.TriggerTemplate": { + "description": "TriggerTemplate is the template that describes trigger specification.", + "properties": { + "argoWorkflow": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ArgoWorkflowTrigger", + "description": "ArgoWorkflow refers to the trigger that can perform various operations on an Argo workflow." + }, + "awsLambda": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.AWSLambdaTrigger", + "description": "AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload." + }, + "azureEventHubs": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.AzureEventHubsTrigger", + "description": "AzureEventHubs refers to the trigger send an event to an Azure Event Hub." + }, + "conditions": { + "description": "Conditions is the conditions to execute the trigger. For example: \"(dep01 || dep02) \u0026\u0026 dep04\"", + "type": "string" + }, + "conditionsReset": { + "description": "Criteria to reset the conditons", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ConditionsResetCriteria" + }, + "type": "array" + }, + "custom": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.CustomTrigger", + "description": "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger." + }, + "http": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.HTTPTrigger", + "description": "HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload." + }, + "k8s": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.StandardK8STrigger", + "description": "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource." + }, + "kafka": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.KafkaTrigger", + "description": "Kafka refers to the trigger designed to place messages on Kafka topic." + }, + "log": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.LogTrigger", + "description": "Log refers to the trigger designed to invoke log the event." + }, + "name": { + "description": "Name is a unique name of the action to take.", + "type": "string" + }, + "nats": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.NATSTrigger", + "description": "NATS refers to the trigger designed to place message on NATS subject." + }, + "openWhisk": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.OpenWhiskTrigger", + "description": "OpenWhisk refers to the trigger designed to invoke OpenWhisk action." + }, + "pulsar": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.PulsarTrigger", + "description": "Pulsar refers to the trigger designed to place messages on Pulsar topic." + }, + "slack": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SlackTrigger", + "description": "Slack refers to the trigger designed to send slack notification message." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.argoproj.sensor.v1alpha1.URLArtifact": { + "description": "URLArtifact contains information about an artifact at an http endpoint.", + "properties": { + "path": { + "description": "Path is the complete URL", + "type": "string" + }, + "verifyCert": { + "description": "VerifyCert decides whether the connection is secure or not", + "type": "boolean" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "preference" + ], + "type": "object" + }, + "type": "array" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object" + } + }, + "type": "object" + }, + "podAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object" + }, + "type": "array" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "podAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object" + }, + "type": "array" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Container": { + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object" + }, + "fieldRef": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": "object" + }, + "resourceFieldRef": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": "object" + }, + "secretKeyRef": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "image": { + "description": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": "string" + }, + "lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "description": "Handler defines a specific action that should be taken", + "properties": { + "exec": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "httpGet": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "tcpSocket": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + } + }, + "type": "object" + }, + "preStop": { + "description": "Handler defines a specific action that should be taken", + "properties": { + "exec": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "httpGet": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "tcpSocket": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "livenessProbe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "httpGet": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "tcpSocket": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", + "items": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": "string" + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": "string" + } + }, + "required": [ + "containerPort" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "httpGet": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "tcpSocket": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "resources": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + }, + "requests": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + } + }, + "type": "object" + }, + "securityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN", + "type": "boolean" + }, + "capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", + "type": "boolean" + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.", + "type": "string" + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false.", + "type": "boolean" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "seccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "windowsOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": "string" + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": "string" + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "startupProbe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "httpGet": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "tcpSocket": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": "string" + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": "string" + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": "string" + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", + "type": "string" + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": "string" + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "seccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array" + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "type": "array" + }, + "windowsOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": "string" + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": "string" + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + }, + "requests": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ServicePort": { + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.", + "type": "string" + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": "string" + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": "integer" + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": "string" + }, + "targetPort": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "format": "int64", + "type": "integer" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + }, + "partition": { + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "boolean" + }, + "volumeID": { + "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "azureDisk": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "Host Caching mode: None, Read Only, Read Write.", + "type": "string" + }, + "diskName": { + "description": "The Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "The URI the data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "kind": { + "description": "Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": "object" + }, + "azureFile": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "Share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "cephfs": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array" + }, + "path": { + "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "user": { + "description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors" + ], + "type": "object" + }, + "cinder": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "volumeID": { + "description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "configMap": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "The key to project.", + "type": "string" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": "object" + }, + "type": "array" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "csi": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": "string" + }, + "fsType": { + "description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": "string" + }, + "nodePublishSecretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "readOnly": { + "description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "downwardAPI": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": "object" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": "object" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "emptyDir": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": "string" + }, + "sizeLimit": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + }, + "type": "object" + }, + "ephemeral": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "readOnly": { + "description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object" + }, + "clusterName": { + "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", + "type": "string" + }, + "creationTimestamp": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": "integer" + }, + "deletionTimestamp": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": "integer" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object" + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "type": "object" + }, + "spec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": "string" + }, + "type": "array" + }, + "dataSource": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "resources": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + }, + "requests": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + "type": "object" + } + }, + "type": "object" + }, + "selector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "storageClassName": { + "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": "string" + }, + "volumeName": { + "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + }, + "type": "object" + } + }, + "required": [ + "spec" + ], + "type": "object" + } + }, + "type": "object" + }, + "fc": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "lun": { + "description": "Optional: FC target lun number", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array" + }, + "wwids": { + "description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "flexVolume": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "Driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional: Extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "flocker": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "Name of the dataset stored as metadata -\u003e name on the dataset for Flocker should be considered as deprecated", + "type": "string" + }, + "datasetUUID": { + "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" + } + }, + "type": "object" + }, + "gcePersistentDisk": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "partition": { + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" + }, + "pdName": { + "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" + } + }, + "required": [ + "pdName" + ], + "type": "object" + }, + "gitRepo": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" + }, + "repository": { + "description": "Repository URL", + "type": "string" + }, + "revision": { + "description": "Commit hash for the specified revision.", + "type": "string" + } + }, + "required": [ + "repository" + ], + "type": "object" + }, + "glusterfs": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "hostPath": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + }, + "type": { + "description": "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "iscsi": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "targetPortal": { + "description": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "nfs": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "boolean" + }, + "server": { + "description": "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + } + }, + "required": [ + "server", + "path" + ], + "type": "object" + }, + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string" + }, + "readOnly": { + "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + }, + "required": [ + "claimName" + ], + "type": "object" + }, + "photonPersistentDisk": { + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "pdID": { + "description": "ID that identifies Photon Controller persistent disk", + "type": "string" + } + }, + "required": [ + "pdID" + ], + "type": "object" + }, + "portworxVolume": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "volumeID": { + "description": "VolumeID uniquely identifies a Portworx volume", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "projected": { + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "sources": { + "description": "list of volume projections", + "items": { + "description": "Projection that may be projected along with other supported volume types", + "properties": { + "configMap": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "The key to project.", + "type": "string" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": "object" + }, + "type": "array" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "downwardAPI": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": "object" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": "object" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "secret": { + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "The key to project.", + "type": "string" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": "object" + }, + "type": "array" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "serviceAccountToken": { + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": "string" + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": "integer" + }, + "path": { + "description": "Path is the path relative to the mount point of the file to project the token into.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "quobyte": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "Group to map volume access to Default is no group", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": "boolean" + }, + "registry": { + "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "tenant": { + "description": "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": "string" + }, + "user": { + "description": "User to map volume access to Defaults to serivceaccount user", + "type": "string" + }, + "volume": { + "description": "Volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + }, + "required": [ + "registry", + "volume" + ], + "type": "object" + }, + "rbd": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": "string" + }, + "image": { + "description": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "monitors": { + "description": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array" + }, + "pool": { + "description": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "user": { + "description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object" + }, + "scaleIO": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": "string" + }, + "gateway": { + "description": "The host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "The name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "sslEnabled": { + "description": "Flag to enable/disable SSL communication with Gateway, default false", + "type": "boolean" + }, + "storageMode": { + "description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": "string" + }, + "storagePool": { + "description": "The ScaleIO Storage Pool associated with the protection domain.", + "type": "string" + }, + "system": { + "description": "The name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object" + }, + "secret": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "The key to project.", + "type": "string" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": "object" + }, + "type": "array" + }, + "optional": { + "description": "Specify whether the Secret or its keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + } + }, + "type": "object" + }, + "storageos": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object" + }, + "volumeName": { + "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": "string" + }, + "volumeNamespace": { + "description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": "string" + } + }, + "type": "object" + }, + "vsphereVolume": { + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "storagePolicyID": { + "description": "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": "string" + }, + "storagePolicyName": { + "description": "Storage Policy Based Management (SPBM) profile name.", + "type": "string" + }, + "volumePath": { + "description": "Path that identifies vSphere volume vmdk", + "type": "string" + } + }, + "required": [ + "volumePath" + ], + "type": "object" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.api.resource.Quantity": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": "integer" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object" + }, + "clusterName": { + "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", + "type": "string" + }, + "creationTimestamp": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": "integer" + }, + "deletionTimestamp": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": "integer" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object" + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + } + }, + "oneOf": [ + { + "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBus" + }, + { + "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSource" + }, + { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Sensor" + } + ], + "type": "object" +} diff --git a/hack/jsonschema/main.go b/hack/jsonschema/main.go new file mode 100644 index 0000000000..ec019630f6 --- /dev/null +++ b/hack/jsonschema/main.go @@ -0,0 +1,81 @@ +package main + +import ( + "encoding/json" + "fmt" + "os" + "strings" +) + +const ( + group = "argoproj.io" + version = "v1alpha1" + eventBusKind = "EventBus" + eventSourceKind = "EventSource" + sensorKind = "Sensor" +) + +type obj = map[string]interface{} + +func main() { + swagger := obj{} + { + f, err := os.Open("api/openapi-spec/swagger.json") + if err != nil { + panic(err) + } + err = json.NewDecoder(f).Decode(&swagger) + if err != nil { + panic(err) + } + } + { + crdKinds := []string{ + eventBusKind, + eventSourceKind, + sensorKind, + } + definitions := swagger["definitions"] + oneOf := make([]obj, 0, len(crdKinds)) + for _, kind := range crdKinds { + lowerCaseKind := strings.ToLower(kind) + definitionKey := fmt.Sprintf("io.argoproj.%s.%s.%s", lowerCaseKind, version, kind) + v := definitions.(obj)[definitionKey].(obj) + v["x-kubernetes-group-version-kind"] = []obj{ + { + "group": group, + "kind": kind, + "version": version, + }, + } + props := v["properties"].(obj) + props["apiVersion"].(obj)["const"] = fmt.Sprintf("%s/%s", group, version) + props["kind"].(obj)["const"] = kind + oneOf = append(oneOf, obj{"$ref": "#/definitions/" + definitionKey}) + } + + schema := obj{ + "$id": "http://events.argoproj.io/events.json", + "$schema": "http://json-schema.org/schema#", + "type": "object", + "oneOf": oneOf, + "definitions": definitions, + } + f, err := os.Create("api/jsonschema/schema.json") + if err != nil { + panic(err) + } + + e := json.NewEncoder(f) + e.SetIndent("", " ") + err = e.Encode(schema) + if err != nil { + panic(err) + } + + err = f.Close() + if err != nil { + panic(err) + } + } +}