From 6450e7895f62b81d03570b4f69835647a589124f Mon Sep 17 00:00:00 2001 From: Marcel Jansen <34770714+Marcel-Jansen@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:23:08 +0200 Subject: [PATCH] Update Strimzi CRDs to version 0.42.0 (#366) --- kafka.strimzi.io/kafka_v1beta2.json | 15068 ++++++++-------- kafka.strimzi.io/kafkabridge_v1beta2.json | 1940 +- kafka.strimzi.io/kafkaconnect_v1beta2.json | 3504 ++-- kafka.strimzi.io/kafkaconnector_v1beta2.json | 156 +- .../kafkamirrormaker2_v1beta2.json | 3390 ++-- .../kafkamirrormaker_v1beta2.json | 1996 +- kafka.strimzi.io/kafkanodepool_v1beta2.json | 1622 +- kafka.strimzi.io/kafkarebalance_v1beta2.json | 160 +- kafka.strimzi.io/kafkatopic_v1alpha1.json | 128 +- kafka.strimzi.io/kafkatopic_v1beta1.json | 128 +- kafka.strimzi.io/kafkatopic_v1beta2.json | 128 +- kafka.strimzi.io/kafkauser_v1alpha1.json | 254 +- kafka.strimzi.io/kafkauser_v1beta1.json | 254 +- kafka.strimzi.io/kafkauser_v1beta2.json | 254 +- kafka.strimzi.io/strimzipodset_v1beta2.json | 106 +- 15 files changed, 14915 insertions(+), 14173 deletions(-) diff --git a/kafka.strimzi.io/kafka_v1beta2.json b/kafka.strimzi.io/kafka_v1beta2.json index 86cf1608..56a04254 100644 --- a/kafka.strimzi.io/kafka_v1beta2.json +++ b/kafka.strimzi.io/kafka_v1beta2.json @@ -1,778 +1,1594 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka and ZooKeeper clusters, and Topic Operator.", + "type": "object", "properties": { - "clientsCa": { - "description": "Configuration of the clients certificate authority.", - "properties": { - "certificateExpirationPolicy": { - "description": "How should CA certificate expiration be handled when `generateCertificateAuthority=true`. The default is for a new CA certificate to be generated reusing the existing private key.", - "enum": [ - "renew-certificate", - "replace-key" - ], - "type": "string" - }, - "generateCertificateAuthority": { - "description": "If true then Certificate Authority certificates will be generated automatically. Otherwise the user will need to provide a Secret with the CA certificate. Default is true.", - "type": "boolean" - }, - "generateSecretOwnerReference": { - "description": "If `true`, the Cluster and Client CA Secrets are configured with the `ownerReference` set to the `Kafka` resource. If the `Kafka` resource is deleted when `true`, the CA Secrets are also deleted. If `false`, the `ownerReference` is disabled. If the `Kafka` resource is deleted when `false`, the CA Secrets are retained and available for reuse. Default is `true`.", - "type": "boolean" - }, - "renewalDays": { - "description": "The number of days in the certificate renewal period. This is the number of days before the a certificate expires during which renewal actions may be performed. When `generateCertificateAuthority` is true, this will cause the generation of a new certificate. When `generateCertificateAuthority` is true, this will cause extra logging at WARN level about the pending certificate expiry. Default is 30.", - "minimum": 1, - "type": "integer" - }, - "validityDays": { - "description": "The number of days generated certificates should be valid for. The default is 365.", - "minimum": 1, - "type": "integer" - } - }, + "kafka": { "type": "object", - "additionalProperties": false - }, - "clusterCa": { - "description": "Configuration of the cluster certificate authority.", "properties": { - "certificateExpirationPolicy": { - "description": "How should CA certificate expiration be handled when `generateCertificateAuthority=true`. The default is for a new CA certificate to be generated reusing the existing private key.", - "enum": [ - "renew-certificate", - "replace-key" - ], - "type": "string" - }, - "generateCertificateAuthority": { - "description": "If true then Certificate Authority certificates will be generated automatically. Otherwise the user will need to provide a Secret with the CA certificate. Default is true.", - "type": "boolean" + "version": { + "type": "string", + "description": "The Kafka broker version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version." }, - "generateSecretOwnerReference": { - "description": "If `true`, the Cluster and Client CA Secrets are configured with the `ownerReference` set to the `Kafka` resource. If the `Kafka` resource is deleted when `true`, the CA Secrets are also deleted. If `false`, the `ownerReference` is disabled. If the `Kafka` resource is deleted when `false`, the CA Secrets are retained and available for reuse. Default is `true`.", - "type": "boolean" + "metadataVersion": { + "type": "string", + "description": "The KRaft metadata version used by the Kafka cluster. This property is ignored when running in ZooKeeper mode. If the property is not set, it defaults to the metadata version that corresponds to the `version` property." }, - "renewalDays": { - "description": "The number of days in the certificate renewal period. This is the number of days before the a certificate expires during which renewal actions may be performed. When `generateCertificateAuthority` is true, this will cause the generation of a new certificate. When `generateCertificateAuthority` is true, this will cause extra logging at WARN level about the pending certificate expiry. Default is 30.", + "replicas": { + "type": "integer", "minimum": 1, - "type": "integer" + "description": "The number of pods in the cluster. This property is required when node pools are not used." }, - "validityDays": { - "description": "The number of days generated certificates should be valid for. The default is 365.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "cruiseControl": { - "description": "Configuration for Cruise Control deployment. Deploys a Cruise Control instance when specified.", - "properties": { - "brokerCapacity": { - "description": "The Cruise Control `brokerCapacity` configuration.", - "properties": { - "cpu": { - "description": "Broker capacity for CPU resource in cores or millicores. For example, 1, 1.500, 1500m. For more information on valid CPU resource units see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", - "pattern": "^[0-9]+([.][0-9]{0,3}|[m]?)$", - "type": "string" - }, - "cpuUtilization": { - "description": "Broker capacity for CPU resource utilization as a percentage (0 - 100).", - "maximum": 100, - "minimum": 0, - "type": "integer" - }, - "disk": { - "description": "Broker capacity for disk in bytes. Use a number value with either standard Kubernetes byte units (K, M, G, or T), their bibyte (power of two) equivalents (Ki, Mi, Gi, or Ti), or a byte value with or without E notation. For example, 100000M, 100000Mi, 104857600000, or 1e+11.", - "pattern": "^[0-9]+([.][0-9]*)?([KMGTPE]i?|e[0-9]+)?$", - "type": "string" - }, - "inboundNetwork": { - "description": "Broker capacity for inbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s.", - "pattern": "^[0-9]+([KMG]i?)?B/s$", - "type": "string" - }, - "outboundNetwork": { - "description": "Broker capacity for outbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s.", - "pattern": "^[0-9]+([KMG]i?)?B/s$", - "type": "string" - }, - "overrides": { - "description": "Overrides for individual brokers. The `overrides` property lets you specify a different capacity configuration for different brokers.", - "items": { + "image": { + "type": "string", + "description": "The container image used for Kafka pods. If the property is not set, the default Kafka image version is determined based on the `version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration. Changing the Kafka image version does not automatically update the image versions for other components, such as Kafka Exporter. " + }, + "listeners": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "pattern": "^[a-z0-9]{1,11}$", + "description": "Name of the listener. The name will be used to identify the listener and the related Kubernetes objects. The name has to be unique within given a Kafka cluster. The name can consist of lowercase characters and numbers and be up to 11 characters long." + }, + "port": { + "type": "integer", + "minimum": 9092, + "description": "Port number used by the listener inside Kafka. The port number has to be unique within a given Kafka cluster. Allowed port numbers are 9092 and higher with the exception of ports 9404 and 9999, which are already used for Prometheus and JMX. Depending on the listener type, the port number might not be the same as the port number that connects Kafka clients." + }, + "type": { + "type": "string", + "enum": [ + "internal", + "route", + "loadbalancer", + "nodeport", + "ingress", + "cluster-ip" + ], + "description": "Type of the listener. The supported types are as follows: \n\n* `internal` type exposes Kafka internally only within the Kubernetes cluster.\n* `route` type uses OpenShift Routes to expose Kafka.\n* `loadbalancer` type uses LoadBalancer type services to expose Kafka.\n* `nodeport` type uses NodePort type services to expose Kafka.\n* `ingress` type uses Kubernetes Nginx Ingress to expose Kafka with TLS passthrough.\n* `cluster-ip` type uses a per-broker `ClusterIP` service.\n" + }, + "tls": { + "type": "boolean", + "description": "Enables TLS encryption on the listener. This is a required property." + }, + "authentication": { + "type": "object", "properties": { - "brokers": { - "description": "List of Kafka brokers (broker identifiers).", + "accessTokenIsJwt": { + "type": "boolean", + "description": "Configure whether the access token is treated as JWT. This must be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." + }, + "checkAccessTokenType": { + "type": "boolean", + "description": "Configure whether the access token type check is performed or not. This should be set to `false` if the authorization server does not include 'typ' claim in JWT token. Defaults to `true`." + }, + "checkAudience": { + "type": "boolean", + "description": "Enable or disable audience checking. Audience checks identify the recipients of tokens. If audience checking is enabled, the OAuth Client ID also has to be configured using the `clientId` property. The Kafka broker will reject tokens that do not have its `clientId` in their `aud` (audience) claim.Default value is `false`." + }, + "checkIssuer": { + "type": "boolean", + "description": "Enable or disable issuer checking. By default issuer is checked using the value configured by `validIssuerUri`. Default value is `true`." + }, + "clientAudience": { + "type": "string", + "description": "The audience to use when making requests to the authorization server's token endpoint. Used for inter-broker authentication and for configuring OAuth 2.0 over PLAIN using the `clientId` and `secret` method." + }, + "clientId": { + "type": "string", + "description": "OAuth Client ID which the Kafka broker can use to authenticate against the authorization server and use the introspect endpoint URI." + }, + "clientScope": { + "type": "string", + "description": "The scope to use when making requests to the authorization server's token endpoint. Used for inter-broker authentication and for configuring OAuth 2.0 over PLAIN using the `clientId` and `secret` method." + }, + "clientSecret": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." + }, + "secretName": { + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." + } + }, + "required": [ + "key", + "secretName" + ], + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka broker can use to authenticate against the authorization server and use the introspect endpoint URI.", + "additionalProperties": false + }, + "connectTimeoutSeconds": { + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." + }, + "customClaimCheck": { + "type": "string", + "description": "JsonPath filter query to be applied to the JWT token or to the response of the introspection endpoint for additional token validation. Not set by default." + }, + "disableTlsHostnameVerification": { + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." + }, + "enableECDSA": { + "type": "boolean", + "description": "Enable or disable ECDSA support by installing BouncyCastle crypto provider. ECDSA support is always enabled. The BouncyCastle libraries are no longer packaged with Strimzi. Value is ignored." + }, + "enableMetrics": { + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." + }, + "enableOauthBearer": { + "type": "boolean", + "description": "Enable or disable OAuth authentication over SASL_OAUTHBEARER. Default value is `true`." + }, + "enablePlain": { + "type": "boolean", + "description": "Enable or disable OAuth authentication over SASL_PLAIN. There is no re-authentication support when this mechanism is used. Default value is `false`." + }, + "failFast": { + "type": "boolean", + "description": "Enable or disable termination of Kafka broker processes due to potentially recoverable runtime errors during startup. Default value is `true`." + }, + "fallbackUserNameClaim": { + "type": "string", + "description": "The fallback username claim to be used for the user id if the claim specified by `userNameClaim` is not present. This is useful when `client_credentials` authentication only results in the client id being provided in another claim. It only takes effect if `userNameClaim` is set." + }, + "fallbackUserNamePrefix": { + "type": "string", + "description": "The prefix to use with the value of `fallbackUserNameClaim` to construct the user id. This only takes effect if `fallbackUserNameClaim` is true, and the value is present for the claim. Mapping usernames and client ids into the same user id space is useful in preventing name collisions." + }, + "groupsClaim": { + "type": "string", + "description": "JsonPath query used to extract groups for the user during authentication. Extracted groups can be used by a custom authorizer. By default no groups are extracted." + }, + "groupsClaimDelimiter": { + "type": "string", + "description": "A delimiter used to parse groups when they are extracted as a single String value rather than a JSON array. Default value is ',' (comma)." + }, + "httpRetries": { + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." + }, + "httpRetryPauseMs": { + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." + }, + "includeAcceptHeader": { + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." + }, + "introspectionEndpointUri": { + "type": "string", + "description": "URI of the token introspection endpoint which can be used to validate opaque non-JWT tokens." + }, + "jwksEndpointUri": { + "type": "string", + "description": "URI of the JWKS certificate endpoint, which can be used for local JWT validation." + }, + "jwksExpirySeconds": { + "type": "integer", + "minimum": 1, + "description": "Configures how often are the JWKS certificates considered valid. The expiry interval has to be at least 60 seconds longer then the refresh interval specified in `jwksRefreshSeconds`. Defaults to 360 seconds." + }, + "jwksIgnoreKeyUse": { + "type": "boolean", + "description": "Flag to ignore the 'use' attribute of `key` declarations in a JWKS endpoint response. Default value is `false`." + }, + "jwksMinRefreshPauseSeconds": { + "type": "integer", + "minimum": 0, + "description": "The minimum pause between two consecutive refreshes. When an unknown signing key is encountered the refresh is scheduled immediately, but will always wait for this minimum pause. Defaults to 1 second." + }, + "jwksRefreshSeconds": { + "type": "integer", + "minimum": 1, + "description": "Configures how often are the JWKS certificates refreshed. The refresh interval has to be at least 60 seconds shorter then the expiry interval specified in `jwksExpirySeconds`. Defaults to 300 seconds." + }, + "listenerConfig": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "Configuration to be used for a specific listener. All values are prefixed with listener.name.__." + }, + "maxSecondsWithoutReauthentication": { + "type": "integer", + "description": "Maximum number of seconds the authenticated session remains valid without re-authentication. This enables Apache Kafka re-authentication feature, and causes sessions to expire when the access token expires. If the access token expires before max time or if max time is reached, the client has to re-authenticate, otherwise the server will drop the connection. Not set by default - the authenticated session does not expire when the access token expires. This option only applies to SASL_OAUTHBEARER authentication mechanism (when `enableOauthBearer` is `true`)." + }, + "readTimeoutSeconds": { + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." + }, + "sasl": { + "type": "boolean", + "description": "Enable or disable SASL on this listener." + }, + "secrets": { + "type": "array", "items": { - "type": "integer" + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." + }, + "secretName": { + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." + } + }, + "required": [ + "key", + "secretName" + ], + "additionalProperties": false }, - "type": "array" + "description": "Secrets to be mounted to /opt/kafka/custom-authn-secrets/custom-listener-_-_/__." }, - "cpu": { - "description": "Broker capacity for CPU resource in cores or millicores. For example, 1, 1.500, 1500m. For more information on valid CPU resource units see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", - "pattern": "^[0-9]+([.][0-9]{0,3}|[m]?)$", - "type": "string" + "tlsTrustedCertificates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the secret." + }, + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." + } + }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], + "required": [ + "secretName" + ], + "additionalProperties": false + }, + "description": "Trusted certificates for TLS connection to the OAuth server." }, - "inboundNetwork": { - "description": "Broker capacity for inbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s.", - "pattern": "^[0-9]+([KMG]i?)?B/s$", - "type": "string" + "tokenEndpointUri": { + "type": "string", + "description": "URI of the Token Endpoint to use with SASL_PLAIN mechanism when the client authenticates with `clientId` and a `secret`. If set, the client can authenticate over SASL_PLAIN by either setting `username` to `clientId`, and setting `password` to client `secret`, or by setting `username` to account username, and `password` to access token prefixed with `$accessToken:`. If this option is not set, the `password` is always interpreted as an access token (without a prefix), and `username` as the account username (a so called 'no-client-credentials' mode)." }, - "outboundNetwork": { - "description": "Broker capacity for outbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s.", - "pattern": "^[0-9]+([KMG]i?)?B/s$", - "type": "string" + "type": { + "type": "string", + "enum": [ + "tls", + "scram-sha-512", + "oauth", + "custom" + ], + "description": "Authentication type. `oauth` type uses SASL OAUTHBEARER Authentication. `scram-sha-512` type uses SASL SCRAM-SHA-512 Authentication. `tls` type uses TLS Client Authentication. `tls` type is supported only on TLS listeners.`custom` type allows for any authentication type to be used." + }, + "userInfoEndpointUri": { + "type": "string", + "description": "URI of the User Info Endpoint to use as a fallback to obtaining the user id when the Introspection Endpoint does not return information that can be used for the user id. " + }, + "userNameClaim": { + "type": "string", + "description": "Name of the claim from the JWT authentication token, Introspection Endpoint response or User Info Endpoint response which will be used to extract the user id. Defaults to `sub`." + }, + "validIssuerUri": { + "type": "string", + "description": "URI of the token issuer used for authentication." + }, + "validTokenType": { + "type": "string", + "description": "Valid value for the `token_type` attribute returned by the Introspection Endpoint. No default value, and not checked by default." } }, "required": [ - "brokers" + "type" ], - "type": "object", + "description": "Authentication configuration for this listener.", "additionalProperties": false }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "config": { - "description": "The Cruise Control configuration. For a full list of configuration options refer to https://github.com/linkedin/cruise-control/wiki/Configurations. Note that properties with the following prefixes cannot be set: bootstrap.servers, client.id, zookeeper., network., security., failed.brokers.zk.path,webserver.http., webserver.api.urlprefix, webserver.session.path, webserver.accesslog., two.step., request.reason.required,metric.reporter.sampler.bootstrap.servers, capacity.config.file, self.healing., ssl., kafka.broker.failure.detection.enable, topic.config.provider.class (with the exception of: ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols, webserver.http.cors.enabled, webserver.http.cors.origin, webserver.http.cors.exposeheaders, webserver.security.enable, webserver.ssl.enable).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "image": { - "description": "The container image used for Cruise Control pods. If no image name is explicitly specified, the image name corresponds to the name specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used.", - "type": "string" - }, - "jvmOptions": { - "description": "JVM Options for the Cruise Control container.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" - }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { + "configuration": { + "type": "object", "properties": { - "name": { - "description": "The system property name.", - "type": "string" + "brokerCertChainAndKey": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the Secret." + }, + "key": { + "type": "string", + "description": "The name of the private key in the Secret." + } + }, + "required": [ + "secretName", + "certificate", + "key" + ], + "description": "Reference to the `Secret` which holds the certificate and private key pair which will be used for this listener. The certificate can optionally contain the whole chain. This field can be used only with listeners with enabled TLS encryption.", + "additionalProperties": false }, - "value": { - "description": "The system property value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "description": "Pod liveness checking for the Cruise Control container.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration (Log4j 2) for Cruise Control.", - "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" - }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" - }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { + "class": { + "type": "string", + "description": "Configures a specific class for `Ingress` and `LoadBalancer` that defines which controller will be used. This field can only be used with `ingress` and `loadbalancer` type listeners. If not specified, the default controller is used. For an `ingress` listener, set the `ingressClassName` property in the `Ingress` resources. For a `loadbalancer` listener, set the `loadBalancerClass` property in the `Service` resources." + }, + "externalTrafficPolicy": { + "type": "string", + "enum": [ + "Local", + "Cluster" + ], + "description": "Specifies whether the service routes external traffic to node-local or cluster-wide endpoints. `Cluster` may cause a second hop to another node and obscures the client source IP. `Local` avoids a second hop for LoadBalancer and Nodeport type services and preserves the client source IP (when supported by the infrastructure). If unspecified, Kubernetes will use `Cluster` as the default.This field can be used only with `loadbalancer` or `nodeport` type listener." + }, + "loadBalancerSourceRanges": { + "type": "array", + "items": { "type": "string" }, - "name": { - "type": "string" + "description": "A list of CIDR ranges (for example `10.0.0.0/8` or `130.211.204.1/32`) from which clients can connect to load balancer type listeners. If supported by the platform, traffic through the loadbalancer is restricted to the specified CIDR ranges. This field is applicable only for loadbalancer type services and is ignored if the cloud provider does not support the feature. This field can be used only with `loadbalancer` type listener." + }, + "bootstrap": { + "type": "object", + "properties": { + "alternativeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional alternative names for the bootstrap service. The alternative names will be added to the list of subject alternative names of the TLS certificates." + }, + "host": { + "type": "string", + "description": "The bootstrap host. This field will be used in the Ingress resource or in the Route resource to specify the desired hostname. This field can be used only with `route` (optional) or `ingress` (required) type listeners." + }, + "nodePort": { + "type": "integer", + "description": "Node port for the bootstrap service. This field can be used only with `nodeport` type listener." + }, + "loadBalancerIP": { + "type": "string", + "description": "The loadbalancer is requested with the IP address specified in this field. This feature depends on whether the underlying cloud provider supports specifying the `loadBalancerIP` when a load balancer is created. This field is ignored if the cloud provider does not support the feature.This field can be used only with `loadbalancer` type listener." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations that will be added to the `Ingress`, `Route`, or `Service` resource. You can use this field to configure DNS providers such as External DNS. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels that will be added to the `Ingress`, `Route`, or `Service` resource. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners." + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "External IPs associated to the nodeport service. These IPs are used by clients external to the Kubernetes cluster to access the Kafka brokers. This field is helpful when `nodeport` without `externalIP` is not sufficient. For example on bare-metal Kubernetes clusters that do not support Loadbalancer service types. This field can only be used with `nodeport` type listener." + } }, - "optional": { - "type": "boolean" - } + "description": "Bootstrap configuration.", + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { - "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", - "enum": [ - "jmxPrometheusExporter" - ], - "type": "string" - }, - "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { - "type": "string" + "brokers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "broker": { + "type": "integer", + "description": "ID of the kafka broker (broker identifier). Broker IDs start from 0 and correspond to the number of broker replicas." + }, + "advertisedHost": { + "type": "string", + "description": "The host name used in the brokers' `advertised.listeners`." + }, + "advertisedPort": { + "type": "integer", + "description": "The port number used in the brokers' `advertised.listeners`." + }, + "host": { + "type": "string", + "description": "The broker host. This field will be used in the Ingress resource or in the Route resource to specify the desired hostname. This field can be used only with `route` (optional) or `ingress` (required) type listeners." + }, + "nodePort": { + "type": "integer", + "description": "Node port for the per-broker service. This field can be used only with `nodeport` type listener." + }, + "loadBalancerIP": { + "type": "string", + "description": "The loadbalancer is requested with the IP address specified in this field. This feature depends on whether the underlying cloud provider supports specifying the `loadBalancerIP` when a load balancer is created. This field is ignored if the cloud provider does not support the feature.This field can be used only with `loadbalancer` type listener." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations that will be added to the `Ingress` or `Service` resource. You can use this field to configure DNS providers such as External DNS. This field can be used only with `loadbalancer`, `nodeport`, or `ingress` type listeners." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels that will be added to the `Ingress`, `Route`, or `Service` resource. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners." + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "External IPs associated to the nodeport service. These IPs are used by clients external to the Kubernetes cluster to access the Kafka brokers. This field is helpful when `nodeport` without `externalIP` is not sufficient. For example on bare-metal Kubernetes clusters that do not support Loadbalancer service types. This field can only be used with `nodeport` type listener." + } + }, + "required": [ + "broker" + ], + "additionalProperties": false }, - "name": { + "description": "Per-broker configurations." + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + }, + "createBootstrapService": { + "type": "boolean", + "description": "Whether to create the bootstrap service or not. The bootstrap service is created by default (if not specified differently). This field can be used with the `loadBalancer` type listener." + }, + "finalizers": { + "type": "array", + "items": { "type": "string" }, - "optional": { - "type": "boolean" - } + "description": "A list of finalizers which will be configured for the `LoadBalancer` type Services created for this listener. If supported by the platform, the finalizer `service.kubernetes.io/load-balancer-cleanup` to make sure that the external load balancer is deleted together with the service.For more information, see https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#garbage-collecting-load-balancers. This field can be used only with `loadbalancer` type listeners." }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type", - "valueFrom" - ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking for the Cruise Control container.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "resources": { - "description": "CPU and memory resources to reserve for the Cruise Control container.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" + "useServiceDnsDomain": { + "type": "boolean", + "description": "Configures whether the Kubernetes service DNS domain should be used or not. If set to `true`, the generated addresses will contain the service DNS domain suffix (by default `.cluster.local`, can be configured using environment variable `KUBERNETES_SERVICE_DNS_DOMAIN`). Defaults to `false`.This field can be used only with `internal` and `cluster-ip` type listeners." }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" + "maxConnections": { + "type": "integer", + "description": "The maximum number of connections we allow for this listener in the broker at any time. New connections are blocked if the limit is reached." }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "template": { - "description": "Template to specify how Cruise Control resources, `Deployments` and `Pods`, are generated.", - "properties": { - "apiService": { - "description": "Template for Cruise Control API `Service`.", - "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { + "maxConnectionCreationRate": { + "type": "integer", + "description": "The maximum connection creation rate we allow in this listener at any time. New connections will be throttled if the limit is reached." + }, + "preferredNodePortAddressType": { + "type": "string", "enum": [ - "IPv4", - "IPv6" + "ExternalIP", + "ExternalDNS", + "InternalIP", + "InternalDNS", + "Hostname" ], - "type": "string" + "description": "Defines which address type should be used as the node address. Available types are: `ExternalDNS`, `ExternalIP`, `InternalDNS`, `InternalIP` and `Hostname`. By default, the addresses will be used in the following order (the first one found will be used):\n\n* `ExternalDNS`\n* `ExternalIP`\n* `InternalDNS`\n* `InternalIP`\n* `Hostname`\n\nThis field is used to select the preferred address type, which is checked first. If no address is found for this address type, the other types are checked in the default order. This field can only be used with `nodeport` type listener." }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" + "publishNotReadyAddresses": { + "type": "boolean", + "description": "Configures whether the service endpoints are considered \"ready\" even if the Pods themselves are not. Defaults to `false`. This field can not be used with `internal` type listeners." + } }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } + "description": "Additional listener configuration.", + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - }, - "cruiseControlContainer": { - "description": "Template for the Cruise Control container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", + "networkPolicyPeers": { + "type": "array", + "items": { + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "ipBlock": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "cidr": { + "type": "string" }, - "drop": { + "except": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { + "namespaceSelector": { + "type": "object", "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } }, - "user": { - "type": "string" + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" } }, - "type": "object", "additionalProperties": false }, - "seccompProfile": { + "podSelector": { + "type": "object", "properties": { - "localhostProfile": { - "type": "string" + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } }, - "type": { - "type": "string" + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" } }, - "type": "object", - "additionalProperties": false - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "deployment": { - "description": "Template for Cruise Control `Deployment`.", - "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "description": "List of peers which should be able to connect to this listener. Peers in this list are combined using a logical OR operation. If this field is empty or missing, all connections will be allowed for this listener. If this field is present and contains at least one item, the listener only allows the traffic which matches at least one item in this list." + } + }, + "required": [ + "name", + "port", + "type", + "tls" + ], + "additionalProperties": false + }, + "description": "Configures listeners of Kafka brokers." + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "Kafka broker config properties with the following prefixes cannot be set: listeners, advertised., broker., listener., host.name, port, inter.broker.listener.name, sasl., ssl., security., password., log.dir, zookeeper.connect, zookeeper.set.acl, zookeeper.ssl, zookeeper.clientCnxnSocket, authorizer., super.user, cruise.control.metrics.topic, cruise.control.metrics.reporter.bootstrap.servers, node.id, process.roles, controller., metadata.log.dir, zookeeper.metadata.migration.enable, client.quota.callback.static.kafka.admin., client.quota.callback.static.produce, client.quota.callback.static.fetch, client.quota.callback.static.storage.per.volume.limit.min.available., client.quota.callback.static.excluded.principal.name.list (with the exception of: zookeeper.connection.timeout.ms, sasl.server.max.receive.size, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols, ssl.secure.random.implementation, cruise.control.metrics.topic.num.partitions, cruise.control.metrics.topic.replication.factor, cruise.control.metrics.topic.retention.ms, cruise.control.metrics.topic.auto.create.retries, cruise.control.metrics.topic.auto.create.timeout.ms, cruise.control.metrics.topic.min.insync.replicas, controller.quorum.election.backoff.max.ms, controller.quorum.election.timeout.ms, controller.quorum.fetch.timeout.ms)." + }, + "storage": { + "type": "object", + "properties": { + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation." + }, + "deleteClaim": { + "type": "boolean", + "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed." + }, + "id": { + "type": "integer", + "minimum": 0, + "description": "Storage identification number. It is mandatory only for storage volumes defined in a storage of type 'jbod'." + }, + "kraftMetadata": { + "type": "string", + "enum": [ + "shared" + ], + "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set." + }, + "overrides": { + "type": "array", + "items": { + "type": "object", + "properties": { + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation for this broker." }, - "type": "object", - "additionalProperties": false - } + "broker": { + "type": "integer", + "description": "Id of the kafka broker (broker identifier)." + } + }, + "additionalProperties": false + }, + "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers." + }, + "selector": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume." }, - "pod": { - "description": "Template for Cruise Control `Pods`.", - "properties": { - "affinity": { - "description": "The pod's affinity rules.", - "properties": { - "nodeAffinity": { + "size": { + "type": "string", + "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`." + }, + "sizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi)." + }, + "type": { + "type": "string", + "enum": [ + "ephemeral", + "persistent-claim", + "jbod" + ], + "description": "Storage type, must be either 'ephemeral', 'persistent-claim', or 'jbod'." + }, + "volumes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation." + }, + "deleteClaim": { + "type": "boolean", + "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed." + }, + "id": { + "type": "integer", + "minimum": 0, + "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration." + }, + "kraftMetadata": { + "type": "string", + "enum": [ + "shared" + ], + "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set." + }, + "overrides": { + "type": "array", + "items": { + "type": "object", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "preference": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation for this broker." }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "properties": { - "nodeSelectorTerms": { - "items": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "broker": { + "type": "integer", + "description": "Id of the kafka broker (broker identifier)." } }, - "type": "object", "additionalProperties": false }, - "podAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, + "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers." + }, + "selector": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume." + }, + "size": { + "type": "string", + "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`." + }, + "sizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi)." + }, + "type": { + "type": "string", + "enum": [ + "ephemeral", + "persistent-claim" + ], + "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'." + } + }, + "required": [ + "type" + ], + "additionalProperties": false + }, + "description": "List of volumes as Storage objects representing the JBOD disks array." + } + }, + "required": [ + "type" + ], + "description": "Storage configuration (disk). Cannot be updated. This property is required when node pools are not used.", + "additionalProperties": false + }, + "authorization": { + "type": "object", + "properties": { + "allowOnError": { + "type": "boolean", + "description": "Defines whether a Kafka client should be allowed or denied by default when the authorizer fails to query the Open Policy Agent, for example, when it is temporarily unavailable). Defaults to `false` - all actions will be denied." + }, + "authorizerClass": { + "type": "string", + "description": "Authorization implementation class, which must be available in classpath." + }, + "clientId": { + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." + }, + "connectTimeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." + }, + "delegateToKafkaAcls": { + "type": "boolean", + "description": "Whether authorization decision should be delegated to the 'Simple' authorizer if DENIED by Keycloak Authorization Services policies. Default value is `false`." + }, + "disableTlsHostnameVerification": { + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." + }, + "enableMetrics": { + "type": "boolean", + "description": "Enable or disable OAuth metrics. The default value is `false`." + }, + "expireAfterMs": { + "type": "integer", + "description": "The expiration of the records kept in the local cache to avoid querying the Open Policy Agent for every request. Defines how often the cached authorization decisions are reloaded from the Open Policy Agent server. In milliseconds. Defaults to `3600000`." + }, + "grantsAlwaysLatest": { + "type": "boolean", + "description": "Controls whether the latest grants are fetched for a new session. When enabled, grants are retrieved from Keycloak and cached for the user. The default value is `false`." + }, + "grantsGcPeriodSeconds": { + "type": "integer", + "minimum": 1, + "description": "The time, in seconds, between consecutive runs of a job that cleans stale grants from the cache. The default value is 300." + }, + "grantsMaxIdleTimeSeconds": { + "type": "integer", + "minimum": 1, + "description": "The time, in seconds, after which an idle grant can be evicted from the cache. The default value is 300." + }, + "grantsRefreshPeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The time between two consecutive grants refresh runs in seconds. The default value is 60." + }, + "grantsRefreshPoolSize": { + "type": "integer", + "minimum": 1, + "description": "The number of threads to use to refresh grants for active sessions. The more threads, the more parallelism, so the sooner the job completes. However, using more threads places a heavier load on the authorization server. The default value is 5." + }, + "httpRetries": { + "type": "integer", + "minimum": 0, + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." + }, + "includeAcceptHeader": { + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." + }, + "initialCacheCapacity": { + "type": "integer", + "description": "Initial capacity of the local cache used by the authorizer to avoid querying the Open Policy Agent for every request Defaults to `5000`." + }, + "maximumCacheSize": { + "type": "integer", + "description": "Maximum capacity of the local cache used by the authorizer to avoid querying the Open Policy Agent for every request. Defaults to `50000`." + }, + "readTimeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." + }, + "superUsers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of super users, which are user principals with unlimited access rights." + }, + "supportsAdminApi": { + "type": "boolean", + "description": "Indicates whether the custom authorizer supports the APIs for managing ACLs using the Kafka Admin API. Defaults to `false`." + }, + "tlsTrustedCertificates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the secret." + }, + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." + } + }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], + "required": [ + "secretName" + ], + "additionalProperties": false + }, + "description": "Trusted certificates for TLS connection to the OAuth server." + }, + "tokenEndpointUri": { + "type": "string", + "description": "Authorization server token endpoint URI." + }, + "type": { + "type": "string", + "enum": [ + "simple", + "opa", + "keycloak", + "custom" + ], + "description": "Authorization type. Currently, the supported types are `simple`, `keycloak`, `opa` and `custom`. `simple` authorization type uses Kafka's built-in authorizer for authorization. `keycloak` authorization type uses Keycloak Authorization Services for authorization. `opa` authorization type uses Open Policy Agent based authorization.`custom` authorization type uses user-provided implementation for authorization." + }, + "url": { + "type": "string", + "example": "http://opa:8181/v1/data/kafka/authz/allow", + "description": "The URL used to connect to the Open Policy Agent server. The URL has to include the policy which will be queried by the authorizer. This option is required." + } + }, + "required": [ + "type" + ], + "description": "Authorization configuration for Kafka brokers.", + "additionalProperties": false + }, + "rack": { + "type": "object", + "properties": { + "topologyKey": { + "type": "string", + "example": "topology.kubernetes.io/zone", + "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2." + } + }, + "required": [ + "topologyKey" + ], + "description": "Configuration of the `broker.rack` broker config.", + "additionalProperties": false + }, + "brokerRackInitImage": { + "type": "string", + "description": "The image of the init container used for initializing the `broker.rack`." + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "jvmOptions": { + "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A map of -XX options to the JVM." + }, + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." + }, + "value": { + "type": "string", + "description": "The system property value." + } + }, + "additionalProperties": false + }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for pods.", + "additionalProperties": false + }, + "jmxOptions": { + "type": "object", + "properties": { + "authentication": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "password" + ], + "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS." + } + }, + "required": [ + "type" + ], + "description": "Authentication configuration for connecting to the JMX port.", + "additionalProperties": false + } + }, + "description": "JMX Options for Kafka brokers.", + "additionalProperties": false + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "metricsConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "jmxPrometheusExporter" + ], + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false + } + }, + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", + "additionalProperties": false + } + }, + "required": [ + "type", + "valueFrom" + ], + "description": "Metrics configuration.", + "additionalProperties": false + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A Map from logger name to logger level." + }, + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false + } + }, + "description": "`ConfigMap` entry where the logging configuration is stored. ", + "additionalProperties": false + } + }, + "required": [ + "type" + ], + "description": "Logging configuration for Kafka.", + "additionalProperties": false + }, + "template": { + "type": "object", + "properties": { + "statefulset": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "podManagementPolicy": { + "type": "string", + "enum": [ + "OrderedReady", + "Parallel" + ], + "description": "PodManagementPolicy which will be used for this StatefulSet. Valid values are `Parallel` and `OrderedReady`. Defaults to `Parallel`." + } + }, + "description": "Template for Kafka `StatefulSet`.", + "additionalProperties": false + }, + "pod": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." + }, + "securityContext": { + "type": "object", + "properties": { + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fsGroup": { + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Configures pod-level security attributes and common container settings.", + "additionalProperties": false + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, + "affinity": { + "type": "object", + "properties": { + "nodeAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "preference": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", + "properties": { + "nodeSelectorTerms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "podAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, "matchLabels": { "additionalProperties": { "type": "string" @@ -780,25 +1596,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -807,16 +1625,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -825,38 +1641,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -865,16 +1682,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -883,25 +1698,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -910,16 +1727,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -928,39 +1743,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -969,16 +1787,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -987,25 +1803,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1014,16 +1832,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1032,38 +1848,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1072,16 +1889,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1090,25 +1905,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1117,16 +1934,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1135,201 +1950,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -1347,19 +1993,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1368,16 +2017,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1386,14 +2033,13 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "maxSkew": { "type": "integer" @@ -1414,5072 +2060,5032 @@ "type": "string" } }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "type": "string" + } + }, "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for Kafka `Pods`.", "additionalProperties": false }, - "podDisruptionBudget": { - "description": "Template for Cruise Control `PodDisruptionBudget`.", + "bootstrapService": { + "type": "object", "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." } }, - "type": "object", + "description": "Template for Kafka bootstrap `Service`.", "additionalProperties": false }, - "serviceAccount": { - "description": "Template for the Cruise Control service account.", + "brokersService": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "tlsSidecarContainer": { - "description": "Template for the Cruise Control TLS sidecar container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "tlsSidecar": { - "description": "TLS sidecar configuration.", - "properties": { - "image": { - "description": "The docker image for the container.", - "type": "string" - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logLevel": { - "description": "The log level for the TLS sidecar. Default value is `notice`.", - "enum": [ - "emerg", - "alert", - "crit", - "err", - "warning", - "notice", - "info", - "debug" - ], - "type": "string" - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." } }, - "type": "object", + "description": "Template for Kafka broker `Service`.", "additionalProperties": false }, - "resources": { - "description": "CPU and memory resources to reserve.", + "externalBootstrapService": { + "type": "object", "properties": { - "claims": { - "items": { - "properties": { - "name": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" }, - { + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } }, - "type": "object" + "description": "Metadata applied to the resource.", + "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka external bootstrap `Service`.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "entityOperator": { - "description": "Configuration of the Entity Operator.", - "properties": { - "template": { - "description": "Template for Entity Operator resources. The template allows users to specify how a `Deployment` and `Pod` is generated.", - "properties": { - "deployment": { - "description": "Template for Entity Operator `Deployment`.", + }, + "perPodService": { + "type": "object", "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka per-pod `Services` used for access from outside of Kubernetes.", "additionalProperties": false }, - "entityOperatorRole": { - "description": "Template for the Entity Operator Role.", + "externalBootstrapRoute": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka external bootstrap `Route`.", "additionalProperties": false }, - "pod": { - "description": "Template for Entity Operator `Pods`.", + "perPodRoute": { + "type": "object", "properties": { - "affinity": { - "description": "The pod's affinity rules.", + "metadata": { + "type": "object", "properties": { - "nodeAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "preference": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "properties": { - "nodeSelectorTerms": { - "items": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "podAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka per-pod `Routes` used for access from outside of OpenShift.", + "additionalProperties": false + }, + "externalBootstrapIngress": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka external bootstrap `Ingress`.", + "additionalProperties": false + }, + "perPodIngress": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka per-pod `Ingress` used for access from outside of Kubernetes.", + "additionalProperties": false + }, + "persistentVolumeClaim": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "podAntiAffinity": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for all Kafka `PersistentVolumeClaims`.", + "additionalProperties": false + }, + "podDisruptionBudget": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." + } + }, + "description": "Template for Kafka `PodDisruptionBudget`.", + "additionalProperties": false + }, + "kafkaContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" } }, + "additionalProperties": false + }, + "windowsOptions": { "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + } + }, + "description": "Template for the Kafka broker container.", + "additionalProperties": false + }, + "initContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", "items": { + "type": "object", "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" + "name": { + "type": "string", + "description": "The environment variable key." }, - "ip": { - "type": "string" + "value": { + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka init container.", + "additionalProperties": false + }, + "clusterCaCert": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { "type": "string" - } + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Secret with Kafka Cluster certificate public key.", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "type": "object", - "additionalProperties": false + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } }, - "type": "array" - }, - "metadata": { "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka service account.", + "additionalProperties": false + }, + "jmxSecret": { + "type": "object", + "properties": { + "metadata": { + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", + } + }, + "description": "Template for Secret of the Kafka Cluster JMX authentication.", + "additionalProperties": false + }, + "clusterRoleBinding": { + "type": "object", + "properties": { + "metadata": { + "type": "object", "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka ClusterRoleBinding.", + "additionalProperties": false + }, + "podSet": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", - "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka `StrimziPodSet` resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka cluster resources. The template allows users to specify how the Kubernetes resources are generated.", + "additionalProperties": false + }, + "tieredStorage": { + "type": "object", + "properties": { + "remoteStorageManager": { + "type": "object", + "properties": { + "className": { + "type": "string", + "description": "The class name for the `RemoteStorageManager` implementation." + }, + "classPath": { + "type": "string", + "description": "The class path for the `RemoteStorageManager` implementation." + }, + "config": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "The additional configuration map for the `RemoteStorageManager` implementation. Keys will be automatically prefixed with `rsm.config.`, and added to Kafka broker configuration." + } + }, + "description": "Configuration for the Remote Storage Manager.", + "additionalProperties": false + }, + "type": { + "type": "string", + "enum": [ + "custom" + ], + "description": "Storage type, only 'custom' is supported at the moment." + } + }, + "required": [ + "type" + ], + "description": "Configure the tiered storage feature for Kafka brokers.", + "additionalProperties": false + }, + "quotas": { + "type": "object", + "properties": { + "consumerByteRate": { + "type": "integer", + "minimum": 0, + "description": "A per-broker byte-rate quota for clients consuming from a broker, independent of their number. If clients consume at maximum speed, the quota is shared equally between all non-excluded consumers. Otherwise, the quota is divided based on each client's consumption rate." + }, + "controllerMutationRate": { + "type": "number", + "minimum": 0, + "description": "The default client quota on the rate at which mutations are accepted per second for create topic requests, create partition requests, and delete topic requests, defined for each broker. The mutations rate is measured by the number of partitions created or deleted. Applied on a per-broker basis." + }, + "excludedPrincipals": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of principals that are excluded from the quota. The principals have to be prefixed with `User:`, for example `User:my-user;User:CN=my-other-user`." + }, + "minAvailableBytesPerVolume": { + "type": "integer", + "minimum": 0, + "description": "Stop message production if the available size (in bytes) of the storage is lower than or equal to this specified value. This condition is mutually exclusive with `minAvailableRatioPerVolume`." + }, + "minAvailableRatioPerVolume": { + "type": "number", + "minimum": 0, + "maximum": 1, + "description": "Stop message production if the percentage of available storage space falls below or equals the specified ratio (set as a decimal representing a percentage). This condition is mutually exclusive with `minAvailableBytesPerVolume`." + }, + "producerByteRate": { + "type": "integer", + "minimum": 0, + "description": "A per-broker byte-rate quota for clients producing to a broker, independent of their number. If clients produce at maximum speed, the quota is shared equally between all non-excluded producers. Otherwise, the quota is divided based on each client's production rate." + }, + "requestPercentage": { + "type": "integer", + "minimum": 0, + "description": "The default client quota limits the maximum CPU utilization of each client as a percentage of the network and I/O threads of each broker. Applied on a per-broker basis." + }, + "type": { + "type": "string", + "enum": [ + "kafka", + "strimzi" + ], + "description": "Quotas plugin type. Currently, the supported types are `kafka` and `strimzi`. `kafka` quotas type uses Kafka's built-in quotas plugin. `strimzi` quotas type uses Strimzi quotas plugin." + } + }, + "required": [ + "type" + ], + "description": "Quotas plugin configuration for Kafka brokers allows setting quotas for disk usage, produce/fetch rates, and more. Supported plugin types include `kafka` (default) and `strimzi`. If not specified, the default `kafka` quotas plugin is used.", + "additionalProperties": false + } + }, + "required": [ + "listeners" + ], + "description": "Configuration of the Kafka cluster.", + "additionalProperties": false + }, + "zookeeper": { + "type": "object", + "properties": { + "replicas": { + "type": "integer", + "minimum": 1, + "description": "The number of pods in the cluster." + }, + "image": { + "type": "string", + "description": "The container image used for ZooKeeper pods. If no image name is explicitly specified, it is determined based on the Kafka version set in `spec.kafka.version`. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration." + }, + "storage": { + "type": "object", + "properties": { + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation." + }, + "deleteClaim": { + "type": "boolean", + "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed." + }, + "id": { + "type": "integer", + "minimum": 0, + "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration." + }, + "kraftMetadata": { + "type": "string", + "enum": [ + "shared" + ], + "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set." + }, + "overrides": { + "type": "array", + "items": { + "type": "object", + "properties": { + "class": { + "type": "string", + "description": "The storage class to use for dynamic volume allocation for this broker." + }, + "broker": { + "type": "integer", + "description": "Id of the kafka broker (broker identifier)." + } }, - "tolerations": { - "description": "The pod's tolerations.", - "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "additionalProperties": false + }, + "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers." + }, + "selector": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume." + }, + "size": { + "type": "string", + "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`." + }, + "sizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi)." + }, + "type": { + "type": "string", + "enum": [ + "ephemeral", + "persistent-claim" + ], + "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'." + } + }, + "required": [ + "type" + ], + "description": "Storage configuration (disk). Cannot be updated.", + "additionalProperties": false + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The ZooKeeper broker config. Properties with the following prefixes cannot be set: server., dataDir, dataLogDir, clientPort, authProvider, quorum.auth, requireClientAuthScheme, snapshot.trust.empty, standaloneEnabled, reconfigEnabled, 4lw.commands.whitelist, secureClientPort, ssl., serverCnxnFactory, sslQuorum (with the exception of: ssl.protocol, ssl.quorum.protocol, ssl.enabledProtocols, ssl.quorum.enabledProtocols, ssl.ciphersuites, ssl.quorum.ciphersuites, ssl.hostnameVerification, ssl.quorum.hostnameVerification)." + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "jvmOptions": { + "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A map of -XX options to the JVM." + }, + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." }, - "type": "array" + "value": { + "type": "string", + "description": "The system property value." + } }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } + "additionalProperties": false }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for pods.", + "additionalProperties": false + }, + "jmxOptions": { + "type": "object", + "properties": { + "authentication": { "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "password" + ], + "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS." + } + }, + "required": [ + "type" + ], + "description": "Authentication configuration for connecting to the JMX port.", "additionalProperties": false + } + }, + "description": "JMX Options for Zookeeper nodes.", + "additionalProperties": false + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } }, - "serviceAccount": { - "description": "Template for the Entity Operator service account.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "type": "object", - "additionalProperties": false - } + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "object", - "additionalProperties": false + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "metricsConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "jmxPrometheusExporter" + ], + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." }, - "tlsSidecarContainer": { - "description": "Template for the Entity Operator TLS sidecar container.", + "valueFrom": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", + "configMapKeyRef": { + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { + "key": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" + "name": { + "type": "string" }, - "runAsNonRoot": { + "optional": { "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", "additionalProperties": false + } + }, + "required": [ + "type", + "valueFrom" + ], + "description": "Metrics configuration.", + "additionalProperties": false + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A Map from logger name to logger level." }, - "topicOperatorContainer": { - "description": "Template for the Entity Topic Operator container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false - }, - "topicOperatorRoleBinding": { - "description": "Template for the Entity Topic Operator RoleBinding.", + } + }, + "required": [ + "type" + ], + "description": "Logging configuration for ZooKeeper.", + "additionalProperties": false + }, + "template": { + "type": "object", + "properties": { + "statefulset": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "podManagementPolicy": { + "type": "string", + "enum": [ + "OrderedReady", + "Parallel" + ], + "description": "PodManagementPolicy which will be used for this StatefulSet. Valid values are `Parallel` and `OrderedReady`. Defaults to `Parallel`." } }, - "type": "object", + "description": "Template for ZooKeeper `StatefulSet`.", "additionalProperties": false }, - "userOperatorContainer": { - "description": "Template for the Entity User Operator container.", + "podSet": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", + "metadata": { + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for ZooKeeper `StrimziPodSet` resource.", "additionalProperties": false }, - "userOperatorRoleBinding": { - "description": "Template for the Entity Topic Operator RoleBinding.", + "pod": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "tlsSidecar": { - "description": "TLS sidecar configuration.", - "properties": { - "image": { - "description": "The docker image for the container.", - "type": "string" - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logLevel": { - "description": "The log level for the TLS sidecar. Default value is `notice`.", - "enum": [ - "emerg", - "alert", - "crit", - "err", - "warning", - "notice", - "info", - "debug" - ], - "type": "string" - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" + "securityContext": { + "type": "object", + "properties": { + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" + "additionalProperties": false + }, + "fsGroup": { + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } }, - { - "type": "string" + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "topicOperator": { - "description": "Configuration of the Topic Operator.", - "properties": { - "image": { - "description": "The image to use for the Topic Operator.", - "type": "string" - }, - "jvmOptions": { - "description": "JVM Options for pods.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "Configures pod-level security attributes and common container settings.", + "additionalProperties": false }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { - "properties": { - "name": { - "description": "The system property name.", - "type": "string" + "affinity": { + "type": "object", + "properties": { + "nodeAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "preference": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", + "properties": { + "nodeSelectorTerms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } }, - "value": { - "description": "The system property value.", - "type": "string" - } + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration.", - "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" - }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" - }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "podAffinity": { + "type": "object", "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } }, - "optional": { - "type": "boolean" + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + } } }, - "type": "object", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "reconciliationIntervalSeconds": { - "description": "Interval between periodic reconciliations.", - "minimum": 0, - "type": "integer" - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" + "podAntiAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + } + } }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "startupProbe": { - "description": "Pod startup checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "topicMetadataMaxAttempts": { - "description": "The number of attempts at getting topic metadata.", - "minimum": 0, - "type": "integer" - }, - "watchedNamespace": { - "description": "The namespace the Topic Operator should watch.", - "type": "string" - }, - "zookeeperSessionTimeoutSeconds": { - "description": "Timeout for the ZooKeeper session.", - "minimum": 0, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "userOperator": { - "description": "Configuration of the User Operator.", - "properties": { - "image": { - "description": "The image to use for the User Operator.", - "type": "string" - }, - "jvmOptions": { - "description": "JVM Options for pods.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" + "additionalProperties": false + } }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" + "description": "The pod's affinity rules.", + "additionalProperties": false }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", + "tolerations": { + "type": "array", "items": { + "type": "object", "properties": { - "name": { - "description": "The system property name.", + "effect": { + "type": "string" + }, + "key": { "type": "string" }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, "value": { - "description": "The system property value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration.", - "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" - }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" + "description": "The pod's tolerations." }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { - "type": "string" + "topologySpreadConstraints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } }, - "name": { + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { "type": "string" - }, - "optional": { - "type": "boolean" } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "reconciliationIntervalSeconds": { - "description": "Interval between periodic reconciliations.", - "minimum": 0, - "type": "integer" - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { + "maxSkew": { "type": "integer" }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { + "minDomains": { "type": "integer" }, - { + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { "type": "string" } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true + }, + "additionalProperties": false }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "secretPrefix": { - "description": "The prefix that will be added to the KafkaUser name to be used as the Secret name.", - "type": "string" - }, - "watchedNamespace": { - "description": "The namespace the User Operator should watch.", - "type": "string" - }, - "zookeeperSessionTimeoutSeconds": { - "description": "Timeout for the ZooKeeper session.", - "minimum": 0, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "jmxTrans": { - "description": "As of Strimzi 0.35.0, JMXTrans is not supported anymore and this option is ignored.", - "properties": { - "image": { - "description": "The image to use for the JmxTrans.", - "type": "string" - }, - "kafkaQueries": { - "description": "Queries to send to the Kafka brokers to define what data should be read from each broker. For more information on these properties see, xref:type-JmxTransQueryTemplate-reference[`JmxTransQueryTemplate` schema reference].", - "items": { - "properties": { - "attributes": { - "description": "Determine which attributes of the targeted MBean should be included.", - "items": { - "type": "string" - }, - "type": "array" - }, - "outputs": { - "description": "List of the names of output definitions specified in the spec.kafka.jmxTrans.outputDefinitions that have defined where JMX metrics are pushed to, and in which data format.", - "items": { - "type": "string" + "description": "The pod's topology spread constraints." }, - "type": "array" - }, - "targetMBean": { - "description": "If using wildcards instead of a specific MBean then the data is gathered from multiple MBeans. Otherwise if specifying an MBean then data is gathered from that specified MBean.", - "type": "string" - } - }, - "required": [ - "targetMBean", - "attributes", - "outputs" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "logLevel": { - "description": "Sets the logging level of the JmxTrans deployment.For more information see, https://github.com/jmxtrans/jmxtrans-agent/wiki/Troubleshooting[JmxTrans Logging Level].", - "type": "string" - }, - "outputDefinitions": { - "description": "Defines the output hosts that will be referenced later on. For more information on these properties see, xref:type-JmxTransOutputDefinitionTemplate-reference[`JmxTransOutputDefinitionTemplate` schema reference].", - "items": { - "properties": { - "flushDelayInSeconds": { - "description": "How many seconds the JmxTrans waits before pushing a new set of data out.", - "type": "integer" - }, - "host": { - "description": "The DNS/hostname of the remote host that the data is pushed to.", - "type": "string" - }, - "name": { - "description": "Template for setting the name of the output definition. This is used to identify where to send the results of queries should be sent.", - "type": "string" - }, - "outputType": { - "description": "Template for setting the format of the data that will be pushed.For more information see https://github.com/jmxtrans/jmxtrans/wiki/OutputWriters[JmxTrans OutputWriters].", - "type": "string" - }, - "port": { - "description": "The port of the remote host that the data is pushed to.", - "type": "integer" - }, - "typeNames": { - "description": "Template for filtering data to be included in response to a wildcard query. For more information see https://github.com/jmxtrans/jmxtrans/wiki/Queries[JmxTrans queries].", - "items": { - "type": "string" + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " }, - "type": "array" - } - }, - "required": [ - "outputType", - "name" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "template": { - "description": "Template for JmxTrans resources.", - "properties": { - "container": { - "description": "Template for JmxTrans container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "hostAliases": { + "type": "array", "items": { + "type": "object", "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" + "hostnames": { + "type": "array", + "items": { + "type": "string" + } }, - "value": { - "description": "The environment variable value.", + "ip": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." }, - "securityContext": { - "description": "Security context for the container.", + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for ZooKeeper `Pods`.", + "additionalProperties": false + }, + "clientService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" + "description": "Labels added to the Kubernetes resource." }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + } + }, + "description": "Template for ZooKeeper client `Service`.", + "additionalProperties": false + }, + "nodesService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + } + }, + "description": "Template for ZooKeeper nodes `Service`.", + "additionalProperties": false + }, + "persistentVolumeClaim": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for all ZooKeeper `PersistentVolumeClaims`.", "additionalProperties": false }, - "deployment": { - "description": "Template for JmxTrans `Deployment`.", + "podDisruptionBudget": { + "type": "object", "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." } }, - "type": "object", + "description": "Template for ZooKeeper `PodDisruptionBudget`.", "additionalProperties": false }, - "pod": { - "description": "Template for JmxTrans `Pods`.", + "zookeeperContainer": { + "type": "object", "properties": { - "affinity": { - "description": "The pod's affinity rules.", + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", "properties": { - "nodeAffinity": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", "items": { - "properties": { - "preference": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "type": "string" + } }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "properties": { - "nodeSelectorTerms": { - "items": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" } }, + "additionalProperties": false + }, + "seccompProfile": { "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, "additionalProperties": false }, - "podAffinity": { + "windowsOptions": { + "type": "object", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "gmsaCredentialSpec": { + "type": "string" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" } }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } + }, + "description": "Template for the ZooKeeper container.", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "podAntiAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the ZooKeeper service account.", + "additionalProperties": false + }, + "jmxSecret": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Secret of the Zookeeper Cluster JMX authentication.", + "additionalProperties": false + } + }, + "description": "Template for ZooKeeper cluster resources. The template allows users to specify how the Kubernetes resources are generated.", + "additionalProperties": false + } + }, + "required": [ + "replicas", + "storage" + ], + "description": "Configuration of the ZooKeeper cluster. This section is required when running a ZooKeeper-based Apache Kafka cluster.", + "additionalProperties": false + }, + "entityOperator": { + "type": "object", + "properties": { + "topicOperator": { + "type": "object", + "properties": { + "watchedNamespace": { + "type": "string", + "description": "The namespace the Topic Operator should watch." + }, + "image": { + "type": "string", + "description": "The image to use for the Topic Operator." + }, + "reconciliationIntervalSeconds": { + "type": "integer", + "minimum": 0, + "description": "Interval between periodic reconciliations in seconds. Ignored if reconciliationIntervalMs is set." + }, + "reconciliationIntervalMs": { + "type": "integer", + "minimum": 0, + "description": "Interval between periodic reconciliations in milliseconds." + }, + "zookeeperSessionTimeoutSeconds": { + "type": "integer", + "minimum": 0, + "description": "Timeout for the ZooKeeper session." + }, + "startupProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod startup checking.", + "additionalProperties": false + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "topicMetadataMaxAttempts": { + "type": "integer", + "minimum": 0, + "description": "The number of attempts at getting topic metadata." + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A Map from logger name to logger level." + }, + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "mismatchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "namespaceSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "namespaces": { - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false + } + }, + "required": [ + "type" + ], + "description": "Logging configuration.", + "additionalProperties": false + }, + "jvmOptions": { + "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A map of -XX options to the JVM." }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." + }, + "value": { + "type": "string", + "description": "The system property value." + } + }, + "additionalProperties": false + }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for pods.", + "additionalProperties": false + } + }, + "description": "Configuration of the Topic Operator.", + "additionalProperties": false + }, + "userOperator": { + "type": "object", + "properties": { + "watchedNamespace": { + "type": "string", + "description": "The namespace the User Operator should watch." + }, + "image": { + "type": "string", + "description": "The image to use for the User Operator." + }, + "reconciliationIntervalSeconds": { + "type": "integer", + "minimum": 0, + "description": "Interval between periodic reconciliations in seconds. Ignored if reconciliationIntervalMs is set." + }, + "reconciliationIntervalMs": { + "type": "integer", + "minimum": 0, + "description": "Interval between periodic reconciliations in milliseconds." + }, + "zookeeperSessionTimeoutSeconds": { + "type": "integer", + "minimum": 0, + "description": "Timeout for the ZooKeeper session." + }, + "secretPrefix": { + "type": "string", + "description": "The prefix that will be added to the KafkaUser name to be used as the Secret name." + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", "items": { + "type": "object", "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { + "name": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { "type": "string" } - }, - "type": "object", - "additionalProperties": false + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "array" + "type": "object" }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + { "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" + "description": "A Map from logger name to logger level." }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", + "valueFrom": { + "type": "object", "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, + "configMapKeyRef": { "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { "properties": { - "gmsaCredentialSpec": { + "key": { "type": "string" }, - "gmsaCredentialSpecName": { + "name": { "type": "string" }, - "hostProcess": { + "optional": { "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", - "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" + } + }, + "required": [ + "type" + ], + "description": "Logging configuration.", + "additionalProperties": false + }, + "jvmOptions": { + "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A map of -XX options to the JVM." + }, + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." }, - "whenUnsatisfiable": { - "type": "string" + "value": { + "type": "string", + "description": "The system property value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." } }, - "type": "object", + "description": "JVM Options for pods.", "additionalProperties": false + } + }, + "description": "Configuration of the User Operator.", + "additionalProperties": false + }, + "tlsSidecar": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The docker image for the container." }, - "serviceAccount": { - "description": "Template for the JmxTrans service account.", + "resources": { + "type": "object", "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + } }, - "labels": { - "additionalProperties": { + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "object", - "additionalProperties": false + "type": "object" } }, - "type": "object", + "description": "CPU and memory resources to reserve.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "outputDefinitions", - "kafkaQueries" - ], - "type": "object", - "additionalProperties": false - }, - "kafka": { - "description": "Configuration of the Kafka cluster.", - "properties": { - "authorization": { - "description": "Authorization configuration for Kafka brokers.", - "properties": { - "allowOnError": { - "description": "Defines whether a Kafka client should be allowed or denied by default when the authorizer fails to query the Open Policy Agent, for example, when it is temporarily unavailable). Defaults to `false` - all actions will be denied.", - "type": "boolean" - }, - "authorizerClass": { - "description": "Authorization implementation class, which must be available in classpath.", - "type": "string" - }, - "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" - }, - "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "minimum": 1, - "type": "integer" - }, - "delegateToKafkaAcls": { - "description": "Whether authorization decision should be delegated to the 'Simple' authorizer if DENIED by Keycloak Authorization Services policies. Default value is `false`.", - "type": "boolean" - }, - "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" - }, - "enableMetrics": { - "description": "Enable or disable OAuth metrics. The default value is `false`.", - "type": "boolean" - }, - "expireAfterMs": { - "description": "The expiration of the records kept in the local cache to avoid querying the Open Policy Agent for every request. Defines how often the cached authorization decisions are reloaded from the Open Policy Agent server. In milliseconds. Defaults to `3600000`.", - "type": "integer" - }, - "grantsAlwaysLatest": { - "description": "Controls whether the latest grants are fetched for a new session. When enabled, grants are retrieved from Keycloak and cached for the user. The default value is `false`.", - "type": "boolean" - }, - "grantsGcPeriodSeconds": { - "description": "The time, in seconds, between consecutive runs of a job that cleans stale grants from the cache. The default value is 300.", - "minimum": 1, - "type": "integer" }, - "grantsMaxIdleTimeSeconds": { - "description": "The time, in seconds, after which an idle grant can be evicted from the cache. The default value is 300.", - "minimum": 1, - "type": "integer" - }, - "grantsRefreshPeriodSeconds": { - "description": "The time between two consecutive grants refresh runs in seconds. The default value is 60.", - "minimum": 0, - "type": "integer" - }, - "grantsRefreshPoolSize": { - "description": "The number of threads to use to refresh grants for active sessions. The more threads, the more parallelism, so the sooner the job completes. However, using more threads places a heavier load on the authorization server. The default value is 5.", - "minimum": 1, - "type": "integer" - }, - "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "minimum": 0, - "type": "integer" - }, - "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" - }, - "initialCacheCapacity": { - "description": "Initial capacity of the local cache used by the authorizer to avoid querying the Open Policy Agent for every request Defaults to `5000`.", - "type": "integer" - }, - "maximumCacheSize": { - "description": "Maximum capacity of the local cache used by the authorizer to avoid querying the Open Policy Agent for every request. Defaults to `50000`.", - "type": "integer" - }, - "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "minimum": 1, - "type": "integer" - }, - "superUsers": { - "description": "List of super users, which are user principals with unlimited access rights.", - "items": { - "type": "string" - }, - "type": "array" - }, - "supportsAdminApi": { - "description": "Indicates whether the custom authorizer supports the APIs for managing ACLs using the Kafka Admin API. Defaults to `false`.", - "type": "boolean" - }, - "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", - "items": { - "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" - } + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "required": [ - "secretName", - "certificate" - ], - "type": "object", - "additionalProperties": false + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } }, - "type": "array" - }, - "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" - }, - "type": { - "description": "Authorization type. Currently, the supported types are `simple`, `keycloak`, `opa` and `custom`. `simple` authorization type uses Kafka's built-in authorizer for authorization. `keycloak` authorization type uses Keycloak Authorization Services for authorization. `opa` authorization type uses Open Policy Agent based authorization.`custom` authorization type uses user-provided implementation for authorization.", - "enum": [ - "simple", - "opa", - "keycloak", - "custom" - ], - "type": "string" + "description": "Pod liveness checking.", + "additionalProperties": false }, - "url": { - "description": "The URL used to connect to the Open Policy Agent server. The URL has to include the policy which will be queried by the authorizer. This option is required.", - "example": "http://opa:8181/v1/data/kafka/authz/allow", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "brokerRackInitImage": { - "description": "The image of the init container used for initializing the `broker.rack`.", - "type": "string" - }, - "config": { - "description": "Kafka broker config properties with the following prefixes cannot be set: listeners, advertised., broker., listener., host.name, port, inter.broker.listener.name, sasl., ssl., security., password., log.dir, zookeeper.connect, zookeeper.set.acl, zookeeper.ssl, zookeeper.clientCnxnSocket, authorizer., super.user, cruise.control.metrics.topic, cruise.control.metrics.reporter.bootstrap.servers, node.id, process.roles, controller., metadata.log.dir, zookeeper.metadata.migration.enable (with the exception of: zookeeper.connection.timeout.ms, sasl.server.max.receive.size, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols, ssl.secure.random.implementation, cruise.control.metrics.topic.num.partitions, cruise.control.metrics.topic.replication.factor, cruise.control.metrics.topic.retention.ms, cruise.control.metrics.topic.auto.create.retries, cruise.control.metrics.topic.auto.create.timeout.ms, cruise.control.metrics.topic.min.insync.replicas, controller.quorum.election.backoff.max.ms, controller.quorum.election.timeout.ms, controller.quorum.fetch.timeout.ms).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "image": { - "description": "The container image used for Kafka pods. If the property is not set, the default Kafka image version is determined based on the `version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration. Changing the Kafka image version does not automatically update the image versions for other components, such as Kafka Exporter. ", - "type": "string" - }, - "jmxOptions": { - "description": "JMX Options for Kafka brokers.", - "properties": { - "authentication": { - "description": "Authentication configuration for connecting to the JMX port.", + "readinessProbe": { + "type": "object", "properties": { - "type": { - "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS.", - "enum": [ - "password" - ], - "type": "string" + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "required": [ - "type" + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "logLevel": { + "type": "string", + "enum": [ + "emerg", + "alert", + "crit", + "err", + "warning", + "notice", + "info", + "debug" ], - "type": "object", - "additionalProperties": false + "description": "The log level for the TLS sidecar. Default value is `notice`." } }, - "type": "object", + "description": "TLS sidecar configuration.", "additionalProperties": false }, - "jvmOptions": { - "description": "JVM Options for pods.", + "template": { + "type": "object", "properties": { - "-XX": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" - }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { - "properties": { - "name": { - "description": "The system property name.", - "type": "string" + "deployment": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } }, - "value": { - "description": "The system property value.", - "type": "string" - } + "description": "Metadata applied to the resource.", + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." + } }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "listeners": { - "description": "Configures listeners of Kafka brokers.", - "items": { - "properties": { - "authentication": { - "description": "Authentication configuration for this listener.", - "properties": { - "accessTokenIsJwt": { - "description": "Configure whether the access token is treated as JWT. This must be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" - }, - "checkAccessTokenType": { - "description": "Configure whether the access token type check is performed or not. This should be set to `false` if the authorization server does not include 'typ' claim in JWT token. Defaults to `true`.", - "type": "boolean" - }, - "checkAudience": { - "description": "Enable or disable audience checking. Audience checks identify the recipients of tokens. If audience checking is enabled, the OAuth Client ID also has to be configured using the `clientId` property. The Kafka broker will reject tokens that do not have its `clientId` in their `aud` (audience) claim.Default value is `false`.", - "type": "boolean" - }, - "checkIssuer": { - "description": "Enable or disable issuer checking. By default issuer is checked using the value configured by `validIssuerUri`. Default value is `true`.", - "type": "boolean" - }, - "clientAudience": { - "description": "The audience to use when making requests to the authorization server's token endpoint. Used for inter-broker authentication and for configuring OAuth 2.0 over PLAIN using the `clientId` and `secret` method.", - "type": "string" - }, - "clientId": { - "description": "OAuth Client ID which the Kafka broker can use to authenticate against the authorization server and use the introspect endpoint URI.", - "type": "string" - }, - "clientScope": { - "description": "The scope to use when making requests to the authorization server's token endpoint. Used for inter-broker authentication and for configuring OAuth 2.0 over PLAIN using the `clientId` and `secret` method.", - "type": "string" - }, - "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka broker can use to authenticate against the authorization server and use the introspect endpoint URI.", - "properties": { - "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", + "description": "Template for Entity Operator `Deployment`.", + "additionalProperties": false + }, + "pod": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { "type": "string" }, - "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" } }, - "required": [ - "key", - "secretName" - ], - "type": "object", "additionalProperties": false }, - "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" - }, - "customClaimCheck": { - "description": "JsonPath filter query to be applied to the JWT token or to the response of the introspection endpoint for additional token validation. Not set by default.", - "type": "string" - }, - "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" - }, - "enableECDSA": { - "description": "Enable or disable ECDSA support by installing BouncyCastle crypto provider. ECDSA support is always enabled. The BouncyCastle libraries are no longer packaged with Strimzi. Value is ignored.", - "type": "boolean" - }, - "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" - }, - "enableOauthBearer": { - "description": "Enable or disable OAuth authentication over SASL_OAUTHBEARER. Default value is `true`.", - "type": "boolean" - }, - "enablePlain": { - "description": "Enable or disable OAuth authentication over SASL_PLAIN. There is no re-authentication support when this mechanism is used. Default value is `false`.", - "type": "boolean" - }, - "failFast": { - "description": "Enable or disable termination of Kafka broker processes due to potentially recoverable runtime errors during startup. Default value is `true`.", - "type": "boolean" - }, - "fallbackUserNameClaim": { - "description": "The fallback username claim to be used for the user id if the claim specified by `userNameClaim` is not present. This is useful when `client_credentials` authentication only results in the client id being provided in another claim. It only takes effect if `userNameClaim` is set.", - "type": "string" - }, - "fallbackUserNamePrefix": { - "description": "The prefix to use with the value of `fallbackUserNameClaim` to construct the user id. This only takes effect if `fallbackUserNameClaim` is true, and the value is present for the claim. Mapping usernames and client ids into the same user id space is useful in preventing name collisions.", - "type": "string" - }, - "groupsClaim": { - "description": "JsonPath query used to extract groups for the user during authentication. Extracted groups can be used by a custom authorizer. By default no groups are extracted.", - "type": "string" - }, - "groupsClaimDelimiter": { - "description": "A delimiter used to parse groups when they are extracted as a single String value rather than a JSON array. Default value is ',' (comma).", - "type": "string" - }, - "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" - }, - "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" - }, - "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" - }, - "introspectionEndpointUri": { - "description": "URI of the token introspection endpoint which can be used to validate opaque non-JWT tokens.", - "type": "string" - }, - "jwksEndpointUri": { - "description": "URI of the JWKS certificate endpoint, which can be used for local JWT validation.", - "type": "string" - }, - "jwksExpirySeconds": { - "description": "Configures how often are the JWKS certificates considered valid. The expiry interval has to be at least 60 seconds longer then the refresh interval specified in `jwksRefreshSeconds`. Defaults to 360 seconds.", - "minimum": 1, - "type": "integer" - }, - "jwksIgnoreKeyUse": { - "description": "Flag to ignore the 'use' attribute of `key` declarations in a JWKS endpoint response. Default value is `false`.", - "type": "boolean" - }, - "jwksMinRefreshPauseSeconds": { - "description": "The minimum pause between two consecutive refreshes. When an unknown signing key is encountered the refresh is scheduled immediately, but will always wait for this minimum pause. Defaults to 1 second.", - "minimum": 0, - "type": "integer" - }, - "jwksRefreshSeconds": { - "description": "Configures how often are the JWKS certificates refreshed. The refresh interval has to be at least 60 seconds shorter then the expiry interval specified in `jwksExpirySeconds`. Defaults to 300 seconds.", - "minimum": 1, - "type": "integer" - }, - "listenerConfig": { - "description": "Configuration to be used for a specific listener. All values are prefixed with listener.name.__.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "maxSecondsWithoutReauthentication": { - "description": "Maximum number of seconds the authenticated session remains valid without re-authentication. This enables Apache Kafka re-authentication feature, and causes sessions to expire when the access token expires. If the access token expires before max time or if max time is reached, the client has to re-authenticate, otherwise the server will drop the connection. Not set by default - the authenticated session does not expire when the access token expires. This option only applies to SASL_OAUTHBEARER authentication mechanism (when `enableOauthBearer` is `true`).", - "type": "integer" - }, - "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" - }, - "sasl": { - "description": "Enable or disable SASL on this listener.", - "type": "boolean" - }, - "secrets": { - "description": "Secrets to be mounted to /opt/kafka/custom-authn-secrets/custom-listener-_-_/__.", - "items": { + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." + }, + "securityContext": { + "type": "object", + "properties": { + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fsGroup": { + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", "properties": { - "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", + "gmsaCredentialSpec": { "type": "string" }, - "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { "type": "string" } }, - "required": [ - "key", - "secretName" - ], - "type": "object", + "additionalProperties": false + } + }, + "description": "Configures pod-level security attributes and common container settings.", + "additionalProperties": false + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, + "affinity": { + "type": "object", + "properties": { + "nodeAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "preference": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", + "properties": { + "nodeSelectorTerms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "podAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, "additionalProperties": false }, - "type": "array" - }, - "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", - "items": { + "podAntiAffinity": { + "type": "object", "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "namespaceSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false + } } }, - "required": [ - "secretName", - "certificate" - ], - "type": "object", "additionalProperties": false - }, - "type": "array" - }, - "tokenEndpointUri": { - "description": "URI of the Token Endpoint to use with SASL_PLAIN mechanism when the client authenticates with `clientId` and a `secret`. If set, the client can authenticate over SASL_PLAIN by either setting `username` to `clientId`, and setting `password` to client `secret`, or by setting `username` to account username, and `password` to access token prefixed with `$accessToken:`. If this option is not set, the `password` is always interpreted as an access token (without a prefix), and `username` as the account username (a so called 'no-client-credentials' mode).", - "type": "string" - }, - "type": { - "description": "Authentication type. `oauth` type uses SASL OAUTHBEARER Authentication. `scram-sha-512` type uses SASL SCRAM-SHA-512 Authentication. `tls` type uses TLS Client Authentication. `tls` type is supported only on TLS listeners.`custom` type allows for any authentication type to be used.", - "enum": [ - "tls", - "scram-sha-512", - "oauth", - "custom" - ], - "type": "string" - }, - "userInfoEndpointUri": { - "description": "URI of the User Info Endpoint to use as a fallback to obtaining the user id when the Introspection Endpoint does not return information that can be used for the user id. ", - "type": "string" - }, - "userNameClaim": { - "description": "Name of the claim from the JWT authentication token, Introspection Endpoint response or User Info Endpoint response which will be used to extract the user id. Defaults to `sub`.", - "type": "string" - }, - "validIssuerUri": { - "description": "URI of the token issuer used for authentication.", - "type": "string" + } }, - "validTokenType": { - "description": "Valid value for the `token_type` attribute returned by the Introspection Endpoint. No default value, and not checked by default.", - "type": "string" - } + "description": "The pod's affinity rules.", + "additionalProperties": false }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "configuration": { - "description": "Additional listener configuration.", - "properties": { - "bootstrap": { - "description": "Bootstrap configuration.", + "tolerations": { + "type": "array", + "items": { + "type": "object", "properties": { - "alternativeNames": { - "description": "Additional alternative names for the bootstrap service. The alternative names will be added to the list of subject alternative names of the TLS certificates.", - "items": { - "type": "string" - }, - "type": "array" - }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations that will be added to the `Ingress`, `Route`, or `Service` resource. You can use this field to configure DNS providers such as External DNS. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners.", - "type": "object" - }, - "externalIPs": { - "description": "External IPs associated to the nodeport service. These IPs are used by clients external to the Kubernetes cluster to access the Kafka brokers. This field is helpful when `nodeport` without `externalIP` is not sufficient. For example on bare-metal Kubernetes clusters that do not support Loadbalancer service types. This field can only be used with `nodeport` type listener.", - "items": { - "type": "string" - }, - "type": "array" - }, - "host": { - "description": "The bootstrap host. This field will be used in the Ingress resource or in the Route resource to specify the desired hostname. This field can be used only with `route` (optional) or `ingress` (required) type listeners.", + "effect": { "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels that will be added to the `Ingress`, `Route`, or `Service` resource. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners.", - "type": "object" + "key": { + "type": "string" }, - "loadBalancerIP": { - "description": "The loadbalancer is requested with the IP address specified in this field. This feature depends on whether the underlying cloud provider supports specifying the `loadBalancerIP` when a load balancer is created. This field is ignored if the cloud provider does not support the feature.This field can be used only with `loadbalancer` type listener.", + "operator": { "type": "string" }, - "nodePort": { - "description": "Node port for the bootstrap service. This field can be used only with `nodeport` type listener.", + "tolerationSeconds": { "type": "integer" + }, + "value": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "brokerCertChainAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair which will be used for this listener. The certificate can optionally contain the whole chain. This field can be used only with listeners with enabled TLS encryption.", + "description": "The pod's tolerations." + }, + "topologySpreadConstraints": { + "type": "array", + "items": { + "type": "object", "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { "type": "string" }, - "key": { - "description": "The name of the private key in the Secret.", + "nodeTaintsPolicy": { "type": "string" }, - "secretName": { - "description": "The name of the Secret containing the certificate.", + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { "type": "string" } }, - "required": [ - "key", - "secretName", - "certificate" - ], - "type": "object", "additionalProperties": false }, - "brokers": { - "description": "Per-broker configurations.", - "items": { - "properties": { - "advertisedHost": { - "description": "The host name used in the brokers' `advertised.listeners`.", - "type": "string" - }, - "advertisedPort": { - "description": "The port number used in the brokers' `advertised.listeners`.", - "type": "integer" - }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations that will be added to the `Ingress` or `Service` resource. You can use this field to configure DNS providers such as External DNS. This field can be used only with `loadbalancer`, `nodeport`, or `ingress` type listeners.", - "type": "object" - }, - "broker": { - "description": "ID of the kafka broker (broker identifier). Broker IDs start from 0 and correspond to the number of broker replicas.", - "type": "integer" - }, - "externalIPs": { - "description": "External IPs associated to the nodeport service. These IPs are used by clients external to the Kubernetes cluster to access the Kafka brokers. This field is helpful when `nodeport` without `externalIP` is not sufficient. For example on bare-metal Kubernetes clusters that do not support Loadbalancer service types. This field can only be used with `nodeport` type listener.", - "items": { - "type": "string" - }, - "type": "array" - }, - "host": { - "description": "The broker host. This field will be used in the Ingress resource or in the Route resource to specify the desired hostname. This field can be used only with `route` (optional) or `ingress` (required) type listeners.", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels that will be added to the `Ingress`, `Route`, or `Service` resource. This field can be used only with `loadbalancer`, `nodeport`, `route`, or `ingress` type listeners.", - "type": "object" - }, - "loadBalancerIP": { - "description": "The loadbalancer is requested with the IP address specified in this field. This feature depends on whether the underlying cloud provider supports specifying the `loadBalancerIP` when a load balancer is created. This field is ignored if the cloud provider does not support the feature.This field can be used only with `loadbalancer` type listener.", + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { + "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { "type": "string" - }, - "nodePort": { - "description": "Node port for the per-broker service. This field can be used only with `nodeport` type listener.", - "type": "integer" } }, - "required": [ - "broker" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "class": { - "description": "Configures a specific class for `Ingress` and `LoadBalancer` that defines which controller will be used. This field can only be used with `ingress` and `loadbalancer` type listeners. If not specified, the default controller is used. For an `ingress` listener, set the `ingressClassName` property in the `Ingress` resources. For a `loadbalancer` listener, set the `loadBalancerClass` property in the `Service` resources.", - "type": "string" - }, - "createBootstrapService": { - "description": "Whether to create the bootstrap service or not. The bootstrap service is created by default (if not specified differently). This field can be used with the `loadBalancer` type listener.", - "type": "boolean" - }, - "externalTrafficPolicy": { - "description": "Specifies whether the service routes external traffic to node-local or cluster-wide endpoints. `Cluster` may cause a second hop to another node and obscures the client source IP. `Local` avoids a second hop for LoadBalancer and Nodeport type services and preserves the client source IP (when supported by the infrastructure). If unspecified, Kubernetes will use `Cluster` as the default.This field can be used only with `loadbalancer` or `nodeport` type listener.", - "enum": [ - "Local", - "Cluster" - ], - "type": "string" - }, - "finalizers": { - "description": "A list of finalizers which will be configured for the `LoadBalancer` type Services created for this listener. If supported by the platform, the finalizer `service.kubernetes.io/load-balancer-cleanup` to make sure that the external load balancer is deleted together with the service.For more information, see https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#garbage-collecting-load-balancers. This field can be used only with `loadbalancer` type listeners.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" + "ip": { + "type": "string" + } }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" + "additionalProperties": false }, - "loadBalancerSourceRanges": { - "description": "A list of CIDR ranges (for example `10.0.0.0/8` or `130.211.204.1/32`) from which clients can connect to load balancer type listeners. If supported by the platform, traffic through the loadbalancer is restricted to the specified CIDR ranges. This field is applicable only for loadbalancer type services and is ignored if the cloud provider does not support the feature. This field can be used only with `loadbalancer` type listener.", - "items": { - "type": "string" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Entity Operator `Pods`.", + "additionalProperties": false + }, + "topicOperatorContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } }, - "type": "array" - }, - "maxConnectionCreationRate": { - "description": "The maximum connection creation rate we allow in this listener at any time. New connections will be throttled if the limit is reached.", - "type": "integer" - }, - "maxConnections": { - "description": "The maximum number of connections we allow for this listener in the broker at any time. New connections are blocked if the limit is reached.", - "type": "integer" - }, - "preferredNodePortAddressType": { - "description": "Defines which address type should be used as the node address. Available types are: `ExternalDNS`, `ExternalIP`, `InternalDNS`, `InternalIP` and `Hostname`. By default, the addresses will be used in the following order (the first one found will be used):\n\n* `ExternalDNS`\n* `ExternalIP`\n* `InternalDNS`\n* `InternalIP`\n* `Hostname`\n\nThis field is used to select the preferred address type, which is checked first. If no address is found for this address type, the other types are checked in the default order. This field can only be used with `nodeport` type listener.", - "enum": [ - "ExternalIP", - "ExternalDNS", - "InternalIP", - "InternalDNS", - "Hostname" - ], - "type": "string" + "additionalProperties": false }, - "useServiceDnsDomain": { - "description": "Configures whether the Kubernetes service DNS domain should be used or not. If set to `true`, the generated addresses will contain the service DNS domain suffix (by default `.cluster.local`, can be configured using environment variable `KUBERNETES_SERVICE_DNS_DOMAIN`). Defaults to `false`.This field can be used only with `internal` and `cluster-ip` type listeners.", - "type": "boolean" - } + "description": "Environment variables which should be applied to the container." }, - "type": "object", - "additionalProperties": false - }, - "name": { - "description": "Name of the listener. The name will be used to identify the listener and the related Kubernetes objects. The name has to be unique within given a Kafka cluster. The name can consist of lowercase characters and numbers and be up to 11 characters long.", - "pattern": "^[a-z0-9]{1,11}$", - "type": "string" - }, - "networkPolicyPeers": { - "description": "List of peers which should be able to connect to this listener. Peers in this list are combined using a logical OR operation. If this field is empty or missing, all connections will be allowed for this listener. If this field is present and contains at least one item, the listener only allows the traffic which matches at least one item in this list.", - "items": { + "securityContext": { + "type": "object", "properties": { - "ipBlock": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", "properties": { - "cidr": { + "localhostProfile": { "type": "string" }, - "except": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "namespaceSelector": { + "capabilities": { + "type": "object", "properties": { - "matchExpressions": { + "add": { + "type": "array", "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "type": "string" + } }, - "matchLabels": { - "additionalProperties": { + "drop": { + "type": "array", + "items": { "type": "string" - }, - "type": "object" + } } }, - "type": "object", "additionalProperties": false }, - "podSelector": { + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "level": { + "type": "string" }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" } }, - "type": "object", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "port": { - "description": "Port number used by the listener inside Kafka. The port number has to be unique within a given Kafka cluster. Allowed port numbers are 9092 and higher with the exception of ports 9404 and 9999, which are already used for Prometheus and JMX. Depending on the listener type, the port number might not be the same as the port number that connects Kafka clients.", - "minimum": 9092, - "type": "integer" - }, - "tls": { - "description": "Enables TLS encryption on the listener. This is a required property.", - "type": "boolean" - }, - "type": { - "description": "Type of the listener. The supported types are as follows: \n\n* `internal` type exposes Kafka internally only within the Kubernetes cluster.\n* `route` type uses OpenShift Routes to expose Kafka.\n* `loadbalancer` type uses LoadBalancer type services to expose Kafka.\n* `nodeport` type uses NodePort type services to expose Kafka.\n* `ingress` type uses Kubernetes Nginx Ingress to expose Kafka with TLS passthrough.\n* `cluster-ip` type uses a per-broker `ClusterIP` service.\n", - "enum": [ - "internal", - "route", - "loadbalancer", - "nodeport", - "ingress", - "cluster-ip" - ], - "type": "string" - } - }, - "required": [ - "name", - "port", - "type", - "tls" - ], - "type": "object", - "additionalProperties": false - }, - "minItems": 1, - "type": "array" - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration for Kafka.", - "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" - }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" - }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "metadataVersion": { - "description": "The KRaft metadata version used by the Kafka cluster. This property is ignored when running in ZooKeeper mode. If the property is not set, it defaults to the metadata version that corresponds to the `version` property.", - "type": "string" - }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { - "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", - "enum": [ - "jmxPrometheusExporter" - ], - "type": "string" - }, - "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { - "type": "string" }, - "name": { - "type": "string" + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false }, - "optional": { - "type": "boolean" + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Entity Topic Operator container.", "additionalProperties": false - } - }, - "required": [ - "type", - "valueFrom" - ], - "type": "object", - "additionalProperties": false - }, - "rack": { - "description": "Configuration of the `broker.rack` broker config.", - "properties": { - "topologyKey": { - "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2.", - "example": "topology.kubernetes.io/zone", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "replicas": { - "description": "The number of pods in the cluster. This property is required when node pools are not used.", - "minimum": 1, - "type": "integer" - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "storage": { - "description": "Storage configuration (disk). Cannot be updated. This property is required when node pools are not used.", - "properties": { - "class": { - "description": "The storage class to use for dynamic volume allocation.", - "type": "string" - }, - "deleteClaim": { - "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.", - "type": "boolean" - }, - "id": { - "description": "Storage identification number. It is mandatory only for storage volumes defined in a storage of type 'jbod'.", - "minimum": 0, - "type": "integer" - }, - "kraftMetadata": { - "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set.", - "enum": [ - "shared" - ], - "type": "string" }, - "overrides": { - "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers.", - "items": { - "properties": { - "broker": { - "description": "Id of the kafka broker (broker identifier).", - "type": "integer" + "userOperatorContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false }, - "class": { - "description": "The storage class to use for dynamic volume allocation for this broker.", - "type": "string" - } + "description": "Environment variables which should be applied to the container." }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "selector": { - "additionalProperties": { - "type": "string" - }, - "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.", - "type": "object" - }, - "size": { - "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`.", - "type": "string" - }, - "sizeLimit": { - "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi).", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "type": { - "description": "Storage type, must be either 'ephemeral', 'persistent-claim', or 'jbod'.", - "enum": [ - "ephemeral", - "persistent-claim", - "jbod" - ], - "type": "string" - }, - "volumes": { - "description": "List of volumes as Storage objects representing the JBOD disks array.", - "items": { - "properties": { - "class": { - "description": "The storage class to use for dynamic volume allocation.", - "type": "string" - }, - "deleteClaim": { - "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.", - "type": "boolean" - }, - "id": { - "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration.", - "minimum": 0, - "type": "integer" - }, - "kraftMetadata": { - "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set.", - "enum": [ - "shared" - ], - "type": "string" - }, - "overrides": { - "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers.", - "items": { + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", "properties": { - "broker": { - "description": "Id of the kafka broker (broker identifier).", - "type": "integer" + "level": { + "type": "string" }, - "class": { - "description": "The storage class to use for dynamic volume allocation for this broker.", + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "selector": { - "additionalProperties": { - "type": "string" + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false }, - "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.", - "type": "object" - }, - "size": { - "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`.", - "type": "string" - }, - "sizeLimit": { - "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi).", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } }, - "type": { - "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'.", - "enum": [ - "ephemeral", - "persistent-claim" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false + "description": "Security context for the container.", + "additionalProperties": false + } }, - "type": "array" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "template": { - "description": "Template for Kafka cluster resources. The template allows users to specify how the Kubernetes resources are generated.", - "properties": { - "bootstrapService": { - "description": "Template for Kafka bootstrap `Service`.", + "description": "Template for the Entity User Operator container.", + "additionalProperties": false + }, + "tlsSidecarContainer": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", + "env": { + "type": "array", "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" + "description": "Environment variables which should be applied to the container." }, - "metadata": { - "description": "Metadata applied to the resource.", + "securityContext": { + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Entity Operator TLS sidecar container.", "additionalProperties": false }, - "brokersService": { - "description": "Template for Kafka broker `Service`.", + "serviceAccount": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Entity Operator service account.", + "additionalProperties": false + }, + "entityOperatorRole": { + "type": "object", + "properties": { + "metadata": { + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Entity Operator Role.", "additionalProperties": false }, - "clusterCaCert": { - "description": "Template for Secret with Kafka Cluster certificate public key.", + "topicOperatorRoleBinding": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Entity Topic Operator RoleBinding.", "additionalProperties": false }, - "clusterRoleBinding": { - "description": "Template for the Kafka ClusterRoleBinding.", + "userOperatorRoleBinding": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false + "description": "Template for the Entity Topic Operator RoleBinding.", + "additionalProperties": false + } + }, + "description": "Template for Entity Operator resources. The template allows users to specify how a `Deployment` and `Pod` is generated.", + "additionalProperties": false + } + }, + "description": "Configuration of the Entity Operator.", + "additionalProperties": false + }, + "clusterCa": { + "type": "object", + "properties": { + "generateCertificateAuthority": { + "type": "boolean", + "description": "If true then Certificate Authority certificates will be generated automatically. Otherwise the user will need to provide a Secret with the CA certificate. Default is true." + }, + "generateSecretOwnerReference": { + "type": "boolean", + "description": "If `true`, the Cluster and Client CA Secrets are configured with the `ownerReference` set to the `Kafka` resource. If the `Kafka` resource is deleted when `true`, the CA Secrets are also deleted. If `false`, the `ownerReference` is disabled. If the `Kafka` resource is deleted when `false`, the CA Secrets are retained and available for reuse. Default is `true`." + }, + "validityDays": { + "type": "integer", + "minimum": 1, + "description": "The number of days generated certificates should be valid for. The default is 365." + }, + "renewalDays": { + "type": "integer", + "minimum": 1, + "description": "The number of days in the certificate renewal period. This is the number of days before the a certificate expires during which renewal actions may be performed. When `generateCertificateAuthority` is true, this will cause the generation of a new certificate. When `generateCertificateAuthority` is true, this will cause extra logging at WARN level about the pending certificate expiry. Default is 30." + }, + "certificateExpirationPolicy": { + "type": "string", + "enum": [ + "renew-certificate", + "replace-key" + ], + "description": "How should CA certificate expiration be handled when `generateCertificateAuthority=true`. The default is for a new CA certificate to be generated reusing the existing private key." + } + }, + "description": "Configuration of the cluster certificate authority.", + "additionalProperties": false + }, + "clientsCa": { + "type": "object", + "properties": { + "generateCertificateAuthority": { + "type": "boolean", + "description": "If true then Certificate Authority certificates will be generated automatically. Otherwise the user will need to provide a Secret with the CA certificate. Default is true." + }, + "generateSecretOwnerReference": { + "type": "boolean", + "description": "If `true`, the Cluster and Client CA Secrets are configured with the `ownerReference` set to the `Kafka` resource. If the `Kafka` resource is deleted when `true`, the CA Secrets are also deleted. If `false`, the `ownerReference` is disabled. If the `Kafka` resource is deleted when `false`, the CA Secrets are retained and available for reuse. Default is `true`." + }, + "validityDays": { + "type": "integer", + "minimum": 1, + "description": "The number of days generated certificates should be valid for. The default is 365." + }, + "renewalDays": { + "type": "integer", + "minimum": 1, + "description": "The number of days in the certificate renewal period. This is the number of days before the a certificate expires during which renewal actions may be performed. When `generateCertificateAuthority` is true, this will cause the generation of a new certificate. When `generateCertificateAuthority` is true, this will cause extra logging at WARN level about the pending certificate expiry. Default is 30." + }, + "certificateExpirationPolicy": { + "type": "string", + "enum": [ + "renew-certificate", + "replace-key" + ], + "description": "How should CA certificate expiration be handled when `generateCertificateAuthority=true`. The default is for a new CA certificate to be generated reusing the existing private key." + } + }, + "description": "Configuration of the clients certificate authority.", + "additionalProperties": false + }, + "cruiseControl": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The container image used for Cruise Control pods. If no image name is explicitly specified, the image name corresponds to the name specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used." + }, + "tlsSidecar": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The docker image for the container." + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false + }, + "logLevel": { + "type": "string", + "enum": [ + "emerg", + "alert", + "crit", + "err", + "warning", + "notice", + "info", + "debug" + ], + "description": "The log level for the TLS sidecar. Default value is `notice`." + } + }, + "description": "TLS sidecar configuration.", + "additionalProperties": false + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" }, - "externalBootstrapIngress": { - "description": "Template for Kafka external bootstrap `Ingress`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "type": "object", - "additionalProperties": false - } + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "object", - "additionalProperties": false + "type": "object" + } + }, + "description": "CPU and memory resources to reserve for the Cruise Control container.", + "additionalProperties": false + }, + "livenessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "externalBootstrapRoute": { - "description": "Template for Kafka external bootstrap `Route`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness checking for the Cruise Control container.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking for the Cruise Control container.", + "additionalProperties": false + }, + "jvmOptions": { + "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "A map of -XX options to the JVM." }, - "externalBootstrapService": { - "description": "Template for Kafka external bootstrap `Service`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." }, - "type": "object", - "additionalProperties": false - } + "value": { + "type": "string", + "description": "The system property value." + } + }, + "additionalProperties": false + }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for the Cruise Control container.", + "additionalProperties": false + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "A Map from logger name to logger level." }, - "initContainer": { - "description": "Template for the Kafka init container.", + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." + }, + "valueFrom": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", + "configMapKeyRef": { + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { + "key": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" + "name": { + "type": "string" }, - "runAsNonRoot": { + "optional": { "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } + } + }, + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false + } + }, + "description": "`ConfigMap` entry where the logging configuration is stored. ", + "additionalProperties": false + } + }, + "required": [ + "type" + ], + "description": "Logging configuration (Log4j 2) for Cruise Control.", + "additionalProperties": false + }, + "template": { + "type": "object", + "properties": { + "deployment": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." } }, - "type": "object", + "description": "Template for Cruise Control `Deployment`.", "additionalProperties": false }, - "jmxSecret": { - "description": "Template for Secret of the Kafka Cluster JMX authentication.", + "pod": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "kafkaContainer": { - "description": "Template for the Kafka broker container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -6490,6 +7096,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -6504,10 +7111,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -6516,10 +7123,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -6534,144 +7162,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodIngress": { - "description": "Template for Kafka per-pod `Ingress` used for access from outside of Kubernetes.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodRoute": { - "description": "Template for Kafka per-pod `Routes` used for access from outside of OpenShift.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodService": { - "description": "Template for Kafka per-pod `Services` used for access from outside of Kubernetes.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "persistentVolumeClaim": { - "description": "Template for all Kafka `PersistentVolumeClaims`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka `Pods`.", - "properties": { + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6680,19 +7199,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6701,37 +7220,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6740,19 +7259,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6761,42 +7280,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6805,16 +7325,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -6823,25 +7341,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6850,16 +7370,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -6868,38 +7386,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6908,16 +7427,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -6926,25 +7443,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -6953,16 +7472,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -6971,39 +7488,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7012,16 +7532,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -7030,25 +7548,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7057,16 +7577,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -7075,38 +7593,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7115,16 +7634,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -7133,25 +7650,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7160,16 +7679,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -7178,106 +7695,307 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" + "tolerations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "effect": { + "type": "string" + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's tolerations." }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "topologySpreadConstraints": { + "type": "array", "items": { + "type": "object", "properties": { - "hostnames": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, - "ip": { + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's topology spread constraints." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", "items": { + "type": "object", "properties": { - "name": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Cruise Control `Pods`.", + "additionalProperties": false + }, + "apiService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + } + }, + "description": "Template for Cruise Control API `Service`.", + "additionalProperties": false + }, + "podDisruptionBudget": { + "type": "object", + "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." + } + }, + "description": "Template for Cruise Control `PodDisruptionBudget`.", + "additionalProperties": false + }, + "cruiseControlContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." }, "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", + "type": "object", "properties": { - "fsGroup": { - "type": "integer" + "allowPrivilegeEscalation": { + "type": "boolean" }, - "fsGroupChangePolicy": { + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { "type": "string" }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, "runAsGroup": { "type": "integer" }, @@ -7288,6 +8006,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -7302,10 +8021,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -7314,31 +8033,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -7353,399 +8051,396 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", + } + }, + "description": "Template for the Cruise Control container.", + "additionalProperties": false + }, + "tlsSidecarContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", "items": { + "type": "object", "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" + "name": { + "type": "string", + "description": "The environment variable key." }, "value": { - "type": "string" + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { "type": "string" }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" + "type": { + "type": "string" + } }, - "whenUnsatisfiable": { - "type": "string" - } + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "podDisruptionBudget": { - "description": "Template for Kafka `PodDisruptionBudget`.", - "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, - "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" }, - "labels": { - "additionalProperties": { - "type": "string" + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "podSet": { - "description": "Template for Kafka `StrimziPodSet` resource.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Cruise Control TLS sidecar container.", "additionalProperties": false }, "serviceAccount": { - "description": "Template for the Kafka service account.", + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Cruise Control service account.", "additionalProperties": false + } + }, + "description": "Template to specify how Cruise Control resources, `Deployments` and `Pods`, are generated.", + "additionalProperties": false + }, + "brokerCapacity": { + "type": "object", + "properties": { + "disk": { + "type": "string", + "pattern": "^[0-9]+([.][0-9]*)?([KMGTPE]i?|e[0-9]+)?$", + "description": "Broker capacity for disk in bytes. Use a number value with either standard Kubernetes byte units (K, M, G, or T), their bibyte (power of two) equivalents (Ki, Mi, Gi, or Ti), or a byte value with or without E notation. For example, 100000M, 100000Mi, 104857600000, or 1e+11." }, - "statefulset": { - "description": "Template for Kafka `StatefulSet`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "cpuUtilization": { + "type": "integer", + "minimum": 0, + "maximum": 100, + "description": "Broker capacity for CPU resource utilization as a percentage (0 - 100)." + }, + "cpu": { + "type": "string", + "pattern": "^[0-9]+([.][0-9]{0,3}|[m]?)$", + "description": "Broker capacity for CPU resource in cores or millicores. For example, 1, 1.500, 1500m. For more information on valid CPU resource units see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu." + }, + "inboundNetwork": { + "type": "string", + "pattern": "^[0-9]+([KMG]i?)?B/s$", + "description": "Broker capacity for inbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s." + }, + "outboundNetwork": { + "type": "string", + "pattern": "^[0-9]+([KMG]i?)?B/s$", + "description": "Broker capacity for outbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s." + }, + "overrides": { + "type": "array", + "items": { + "type": "object", + "properties": { + "brokers": { + "type": "array", + "items": { + "type": "integer" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "description": "List of Kafka brokers (broker identifiers)." }, - "type": "object", - "additionalProperties": false + "cpu": { + "type": "string", + "pattern": "^[0-9]+([.][0-9]{0,3}|[m]?)$", + "description": "Broker capacity for CPU resource in cores or millicores. For example, 1, 1.500, 1500m. For more information on valid CPU resource units see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu." + }, + "inboundNetwork": { + "type": "string", + "pattern": "^[0-9]+([KMG]i?)?B/s$", + "description": "Broker capacity for inbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s." + }, + "outboundNetwork": { + "type": "string", + "pattern": "^[0-9]+([KMG]i?)?B/s$", + "description": "Broker capacity for outbound network throughput in bytes per second. Use an integer value with standard Kubernetes byte units (K, M, G) or their bibyte (power of two) equivalents (Ki, Mi, Gi) per second. For example, 10000KiB/s." + } }, - "podManagementPolicy": { - "description": "PodManagementPolicy which will be used for this StatefulSet. Valid values are `Parallel` and `OrderedReady`. Defaults to `Parallel`.", - "enum": [ - "OrderedReady", - "Parallel" - ], - "type": "string" - } + "required": [ + "brokers" + ], + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "Overrides for individual brokers. The `overrides` property lets you specify a different capacity configuration for different brokers." } }, - "type": "object", + "description": "The Cruise Control `brokerCapacity` configuration.", "additionalProperties": false }, - "tieredStorage": { - "description": "Configure the tiered storage feature for Kafka brokers.", + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Cruise Control configuration. For a full list of configuration options refer to https://github.com/linkedin/cruise-control/wiki/Configurations. Note that properties with the following prefixes cannot be set: bootstrap.servers, client.id, zookeeper., network., security., failed.brokers.zk.path,webserver.http., webserver.api.urlprefix, webserver.session.path, webserver.accesslog., two.step., request.reason.required,metric.reporter.sampler.bootstrap.servers, capacity.config.file, self.healing., ssl., kafka.broker.failure.detection.enable, topic.config.provider.class (with the exception of: ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols, webserver.http.cors.enabled, webserver.http.cors.origin, webserver.http.cors.exposeheaders, webserver.security.enable, webserver.ssl.enable)." + }, + "metricsConfig": { + "type": "object", "properties": { - "remoteStorageManager": { - "description": "Configuration for the Remote Storage Manager.", + "type": { + "type": "string", + "enum": [ + "jmxPrometheusExporter" + ], + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." + }, + "valueFrom": { + "type": "object", "properties": { - "className": { - "description": "The class name for the `RemoteStorageManager` implementation.", - "type": "string" - }, - "classPath": { - "description": "The class path for the `RemoteStorageManager` implementation.", - "type": "string" - }, - "config": { - "additionalProperties": { - "type": "string" + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } }, - "description": "The additional configuration map for the `RemoteStorageManager` implementation. Keys will be automatically prefixed with `rsm.config.`, and added to Kafka broker configuration.", - "type": "object" + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false } }, - "type": "object", + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", "additionalProperties": false - }, - "type": { - "description": "Storage type, only 'custom' is supported at the moment.", - "enum": [ - "custom" - ], - "type": "string" } }, "required": [ - "type" + "type", + "valueFrom" ], - "type": "object", + "description": "Metrics configuration.", "additionalProperties": false - }, - "version": { - "description": "The Kafka broker version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version.", - "type": "string" } }, - "required": [ - "listeners" - ], - "type": "object", + "description": "Configuration for Cruise Control deployment. Deploys a Cruise Control instance when specified.", "additionalProperties": false }, - "kafkaExporter": { - "description": "Configuration of the Kafka Exporter. Kafka Exporter can provide additional metrics, for example lag of consumer group at topic/partition.", + "jmxTrans": { + "type": "object", "properties": { - "enableSaramaLogging": { - "description": "Enable Sarama logging, a Go client library used by the Kafka Exporter.", - "type": "boolean" - }, - "groupExcludeRegex": { - "description": "Regular expression to specify which consumer groups to exclude.", - "type": "string" - }, - "groupRegex": { - "description": "Regular expression to specify which consumer groups to collect. Default value is `.*`.", - "type": "string" - }, "image": { - "description": "The container image used for the Kafka Exporter pods. If no image name is explicitly specified, the image name corresponds to the version specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used.", - "type": "string" + "type": "string", + "description": "The image to use for the JmxTrans." }, - "livenessProbe": { - "description": "Pod liveness check.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "outputDefinitions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "outputType": { + "type": "string", + "description": "Template for setting the format of the data that will be pushed.For more information see https://github.com/jmxtrans/jmxtrans/wiki/OutputWriters[JmxTrans OutputWriters]." + }, + "host": { + "type": "string", + "description": "The DNS/hostname of the remote host that the data is pushed to." + }, + "port": { + "type": "integer", + "description": "The port of the remote host that the data is pushed to." + }, + "flushDelayInSeconds": { + "type": "integer", + "description": "How many seconds the JmxTrans waits before pushing a new set of data out." + }, + "typeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Template for filtering data to be included in response to a wildcard query. For more information see https://github.com/jmxtrans/jmxtrans/wiki/Queries[JmxTrans queries]." + }, + "name": { + "type": "string", + "description": "Template for setting the name of the output definition. This is used to identify where to send the results of queries should be sent." + } }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } + "required": [ + "outputType", + "name" + ], + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "Defines the output hosts that will be referenced later on. For more information on these properties see, xref:type-JmxTransOutputDefinitionTemplate-reference[`JmxTransOutputDefinitionTemplate` schema reference]." }, - "logging": { - "description": "Only log messages with the given severity or above. Valid levels: [`info`, `debug`, `trace`]. Default log level is `info`.", - "type": "string" + "logLevel": { + "type": "string", + "description": "Sets the logging level of the JmxTrans deployment.For more information see, https://github.com/jmxtrans/jmxtrans-agent/wiki/Troubleshooting[JmxTrans Logging Level]." }, - "readinessProbe": { - "description": "Pod readiness check.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "kafkaQueries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "targetMBean": { + "type": "string", + "description": "If using wildcards instead of a specific MBean then the data is gathered from multiple MBeans. Otherwise if specifying an MBean then data is gathered from that specified MBean." + }, + "attributes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Determine which attributes of the targeted MBean should be included." + }, + "outputs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of the names of output definitions specified in the spec.kafka.jmxTrans.outputDefinitions that have defined where JMX metrics are pushed to, and in which data format." + } }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } + "required": [ + "targetMBean", + "attributes", + "outputs" + ], + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "Queries to send to the Kafka brokers to define what data should be read from each broker. For more information on these properties see, xref:type-JmxTransQueryTemplate-reference[`JmxTransQueryTemplate` schema reference]." }, "resources": { - "description": "CPU and memory resources to reserve.", + "type": "object", "properties": { "claims": { + "type": "array", "items": { + "type": "object", "properties": { "name": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "limits": { "additionalProperties": { @@ -7778,70 +8473,106 @@ "type": "object" } }, - "type": "object", + "description": "CPU and memory resources to reserve.", "additionalProperties": false }, - "showAllOffsets": { - "description": "Whether show the offset/lag for all consumer group, otherwise, only show connected consumer groups.", - "type": "boolean" - }, "template": { - "description": "Customization of deployment templates and pods.", + "type": "object", "properties": { - "container": { - "description": "Template for the Kafka Exporter container.", + "deployment": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." + } + }, + "description": "Template for JmxTrans `Deployment`.", + "additionalProperties": false + }, + "pod": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -7852,6 +8583,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -7866,10 +8598,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -7878,10 +8610,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -7896,68 +8649,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "deployment": { - "description": "Template for Kafka Exporter `Deployment`.", - "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka Exporter `Pods`.", - "properties": { + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7966,19 +8686,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -7987,37 +8707,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8026,19 +8746,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8047,42 +8767,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8091,16 +8812,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8109,25 +8828,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8136,16 +8857,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8154,38 +8873,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8194,16 +8914,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8212,25 +8930,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8239,16 +8959,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8257,39 +8975,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8298,16 +9019,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8316,25 +9035,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8343,16 +9064,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8361,38 +9080,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8401,16 +9121,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8419,25 +9137,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8446,16 +9166,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8464,201 +9182,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -8676,19 +9225,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -8697,16 +9249,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -8715,14 +9265,13 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "maxSkew": { "type": "integer" @@ -8743,348 +9292,258 @@ "type": "string" } }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "type": "string" + } + }, "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for JmxTrans `Pods`.", "additionalProperties": false }, - "service": { - "description": "Template for Kafka Exporter `Service`.", + "container": { + "type": "object", "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "value": { + "type": "string", + "description": "The environment variable value." + } }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "additionalProperties": false }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "description": "Template for the Kafka Exporter service account.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "topicExcludeRegex": { - "description": "Regular expression to specify which topics to exclude.", - "type": "string" - }, - "topicRegex": { - "description": "Regular expression to specify which topics to collect. Default value is `.*`.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "maintenanceTimeWindows": { - "description": "A list of time windows for maintenance tasks (that is, certificates renewal). Each time window is defined by a cron expression.", - "items": { - "type": "string" - }, - "type": "array" - }, - "zookeeper": { - "description": "Configuration of the ZooKeeper cluster. This section is required when running a ZooKeeper-based Apache Kafka cluster.", - "properties": { - "config": { - "description": "The ZooKeeper broker config. Properties with the following prefixes cannot be set: server., dataDir, dataLogDir, clientPort, authProvider, quorum.auth, requireClientAuthScheme, snapshot.trust.empty, standaloneEnabled, reconfigEnabled, 4lw.commands.whitelist, secureClientPort, ssl., serverCnxnFactory, sslQuorum (with the exception of: ssl.protocol, ssl.quorum.protocol, ssl.enabledProtocols, ssl.quorum.enabledProtocols, ssl.ciphersuites, ssl.quorum.ciphersuites, ssl.hostnameVerification, ssl.quorum.hostnameVerification).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "image": { - "description": "The container image used for ZooKeeper pods. If no image name is explicitly specified, it is determined based on the Kafka version set in `spec.kafka.version`. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration.", - "type": "string" - }, - "jmxOptions": { - "description": "JMX Options for Zookeeper nodes.", - "properties": { - "authentication": { - "description": "Authentication configuration for connecting to the JMX port.", - "properties": { - "type": { - "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS.", - "enum": [ - "password" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "jvmOptions": { - "description": "JVM Options for pods.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" - }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { - "properties": { - "name": { - "description": "The system property name.", - "type": "string" - }, - "value": { - "description": "The system property value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration for ZooKeeper.", - "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" - }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" - }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { "type": "string" }, - "name": { - "type": "string" + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false }, - "optional": { - "type": "boolean" + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for JmxTrans container.", "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { - "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", - "enum": [ - "jmxPrometheusExporter" - ], - "type": "string" }, - "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", + "serviceAccount": { + "type": "object", "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "metadata": { + "type": "object", "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "optional": { - "type": "boolean" + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the JmxTrans service account.", "additionalProperties": false } }, - "required": [ - "type", - "valueFrom" - ], - "type": "object", + "description": "Template for JmxTrans resources.", "additionalProperties": false + } + }, + "required": [ + "outputDefinitions", + "kafkaQueries" + ], + "description": "As of Strimzi 0.35.0, JMXTrans is not supported anymore and this option is ignored.", + "additionalProperties": false + }, + "kafkaExporter": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The container image used for the Kafka Exporter pods. If no image name is explicitly specified, the image name corresponds to the version specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used." }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false + "groupRegex": { + "type": "string", + "description": "Regular expression to specify which consumer groups to collect. Default value is `.*`." }, - "replicas": { - "description": "The number of pods in the cluster.", - "minimum": 1, - "type": "integer" + "topicRegex": { + "type": "string", + "description": "Regular expression to specify which topics to collect. Default value is `.*`." + }, + "groupExcludeRegex": { + "type": "string", + "description": "Regular expression to specify which consumer groups to exclude." + }, + "topicExcludeRegex": { + "type": "string", + "description": "Regular expression to specify which topics to exclude." }, "resources": { - "description": "CPU and memory resources to reserve.", + "type": "object", "properties": { "claims": { + "type": "array", "items": { + "type": "object", "properties": { "name": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "limits": { "additionalProperties": { @@ -9117,251 +9576,287 @@ "type": "object" } }, - "type": "object", + "description": "CPU and memory resources to reserve.", "additionalProperties": false }, - "storage": { - "description": "Storage configuration (disk). Cannot be updated.", + "logging": { + "type": "string", + "description": "Only log messages with the given severity or above. Valid levels: [`info`, `debug`, `trace`]. Default log level is `info`." + }, + "livenessProbe": { + "type": "object", "properties": { - "class": { - "description": "The storage class to use for dynamic volume allocation.", - "type": "string" + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "deleteClaim": { - "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.", - "type": "boolean" + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." }, - "id": { - "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration.", - "minimum": 0, - "type": "integer" + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, - "kraftMetadata": { - "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set.", - "enum": [ - "shared" - ], - "type": "string" + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." }, - "overrides": { - "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers.", - "items": { - "properties": { - "broker": { - "description": "Id of the kafka broker (broker identifier).", - "type": "integer" - }, - "class": { - "description": "The storage class to use for dynamic volume allocation for this broker.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod liveness check.", + "additionalProperties": false + }, + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "selector": { - "additionalProperties": { - "type": "string" - }, - "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.", - "type": "object" + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." }, - "size": { - "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`.", - "type": "string" + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, - "sizeLimit": { - "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi).", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." }, - "type": { - "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'.", - "enum": [ - "ephemeral", - "persistent-claim" - ], - "type": "string" + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "required": [ - "type" - ], - "type": "object", + "description": "Pod readiness check.", "additionalProperties": false }, + "enableSaramaLogging": { + "type": "boolean", + "description": "Enable Sarama logging, a Go client library used by the Kafka Exporter." + }, + "showAllOffsets": { + "type": "boolean", + "description": "Whether show the offset/lag for all consumer group, otherwise, only show connected consumer groups." + }, "template": { - "description": "Template for ZooKeeper cluster resources. The template allows users to specify how the Kubernetes resources are generated.", - "properties": { - "clientService": { - "description": "Template for ZooKeeper client `Service`.", - "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, + "type": "object", + "properties": { + "deployment": { + "type": "object", + "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." } }, - "type": "object", + "description": "Template for Kafka Exporter `Deployment`.", "additionalProperties": false }, - "jmxSecret": { - "description": "Template for Secret of the Zookeeper Cluster JMX authentication.", + "pod": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "nodesService": { - "description": "Template for ZooKeeper nodes `Service`.", - "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", + }, + "imagePullSecrets": { + "type": "array", "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, - "metadata": { - "description": "Metadata applied to the resource.", + "securityContext": { + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "fsGroup": { + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "persistentVolumeClaim": { - "description": "Template for all ZooKeeper `PersistentVolumeClaims`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false } }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for ZooKeeper `Pods`.", - "properties": { + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9370,19 +9865,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9391,37 +9886,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9430,19 +9925,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9451,42 +9946,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9495,16 +9991,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9513,25 +10007,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9540,16 +10036,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9558,38 +10052,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9598,16 +10093,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9616,25 +10109,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9643,16 +10138,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9661,39 +10154,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9702,16 +10198,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9720,25 +10214,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9747,16 +10243,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9765,38 +10259,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9805,16 +10300,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9823,25 +10316,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -9850,16 +10345,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -9868,201 +10361,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -10080,19 +10404,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -10101,16 +10428,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -10119,14 +10444,13 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "maxSkew": { "type": "integer" @@ -10137,193 +10461,143 @@ "nodeAffinityPolicy": { "type": "string" }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "podDisruptionBudget": { - "description": "Template for ZooKeeper `PodDisruptionBudget`.", - "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, - "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + "nodeTaintsPolicy": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "podSet": { - "description": "Template for ZooKeeper `StrimziPodSet` resource.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { + "topologyKey": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + "whenUnsatisfiable": { "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + } + }, + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "description": "Template for the ZooKeeper service account.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { + "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + "ip": { "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + } + }, + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for Kafka Exporter `Pods`.", "additionalProperties": false }, - "statefulset": { - "description": "Template for ZooKeeper `StatefulSet`.", + "service": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - }, - "podManagementPolicy": { - "description": "PodManagementPolicy which will be used for this StatefulSet. Valid values are `Parallel` and `OrderedReady`. Defaults to `Parallel`.", - "enum": [ - "OrderedReady", - "Parallel" - ], - "type": "string" } }, - "type": "object", + "description": "Template for Kafka Exporter `Service`.", "additionalProperties": false }, - "zookeeperContainer": { - "description": "Template for the ZooKeeper container.", + "container": { + "type": "object", "properties": { "env": { - "description": "Environment variables which should be applied to the container.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" + "type": "string", + "description": "The environment variable key." }, "value": { - "description": "The environment variable value.", - "type": "string" + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, "capabilities": { + "type": "object", "properties": { "add": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "privileged": { @@ -10345,6 +10619,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -10359,10 +10634,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -10371,10 +10646,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -10389,166 +10664,195 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, + "description": "Template for the Kafka Exporter container.", + "additionalProperties": false + }, + "serviceAccount": { "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Exporter service account.", "additionalProperties": false } }, - "type": "object", + "description": "Customization of deployment templates and pods.", "additionalProperties": false } }, - "required": [ - "replicas", - "storage" - ], - "type": "object", + "description": "Configuration of the Kafka Exporter. Kafka Exporter can provide additional metrics, for example lag of consumer group at topic/partition.", "additionalProperties": false + }, + "maintenanceTimeWindows": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of time windows for maintenance tasks (that is, certificates renewal). Each time window is defined by a cron expression." } }, "required": [ "kafka" ], - "type": "object", + "description": "The specification of the Kafka and ZooKeeper clusters, and Topic Operator.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka and ZooKeeper clusters, and Topic Operator.", + "type": "object", "properties": { - "clusterId": { - "description": "Kafka cluster Id.", - "type": "string" - }, "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "kafkaMetadataState": { - "description": "Defines where cluster metadata are stored. Possible values are: ZooKeeper if the metadata are stored in ZooKeeper; KRaftMigration if the controllers are connected to ZooKeeper, brokers are being rolled with Zookeeper migration enabled and connection information to controllers, and the metadata migration process is running; KRaftDualWriting if the metadata migration process finished and the cluster is in dual-write mode; KRaftPostMigration if the brokers are fully KRaft-based but controllers being rolled to disconnect from ZooKeeper; PreKRaft if brokers and controller are fully KRaft-based, metadata are stored in KRaft, but ZooKeeper must be deleted; KRaft if the metadata are stored in KRaft.", - "enum": [ - "ZooKeeper", - "KRaftMigration", - "KRaftDualWriting", - "KRaftPostMigration", - "PreKRaft", - "KRaft" - ], - "type": "string" - }, - "kafkaMetadataVersion": { - "description": "The KRaft metadata.version currently used by the Kafka cluster.", - "type": "string" - }, - "kafkaNodePools": { - "description": "List of the KafkaNodePools used by this Kafka cluster.", - "items": { - "properties": { - "name": { - "description": "The name of the KafkaNodePool used by this Kafka resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, - "kafkaVersion": { - "description": "The version of Kafka currently deployed in the cluster.", - "type": "string" + "observedGeneration": { + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "listeners": { - "description": "Addresses of the internal and external listeners.", + "type": "array", "items": { + "type": "object", "properties": { + "type": { + "type": "string", + "description": "The name of the listener." + }, + "name": { + "type": "string", + "description": "The name of the listener." + }, "addresses": { - "description": "A list of the addresses for this listener.", + "type": "array", "items": { + "type": "object", "properties": { "host": { - "description": "The DNS name or IP address of the Kafka bootstrap service.", - "type": "string" + "type": "string", + "description": "The DNS name or IP address of the Kafka bootstrap service." }, "port": { - "description": "The port of the Kafka bootstrap service.", - "type": "integer" + "type": "integer", + "description": "The port of the Kafka bootstrap service." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "A list of the addresses for this listener." }, "bootstrapServers": { - "description": "A comma-separated list of `host:port` pairs for connecting to the Kafka cluster using this listener.", - "type": "string" + "type": "string", + "description": "A comma-separated list of `host:port` pairs for connecting to the Kafka cluster using this listener." }, "certificates": { - "description": "A list of TLS certificates which can be used to verify the identity of the server when connecting to the given listener. Set only for `tls` and `external` listeners.", + "type": "array", "items": { "type": "string" }, - "type": "array" - }, - "name": { - "description": "The name of the listener.", - "type": "string" - }, - "type": { - "description": "The name of the listener.", - "type": "string" + "description": "A list of TLS certificates which can be used to verify the identity of the server when connecting to the given listener. Set only for `tls` and `external` listeners." } }, + "additionalProperties": false + }, + "description": "Addresses of the internal and external listeners." + }, + "kafkaNodePools": { + "type": "array", + "items": { "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the KafkaNodePool used by this Kafka resource." + } + }, "additionalProperties": false }, - "type": "array" + "description": "List of the KafkaNodePools used by this Kafka cluster." }, - "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "clusterId": { + "type": "string", + "description": "Kafka cluster Id." }, "operatorLastSuccessfulVersion": { - "description": "The version of the Strimzi Cluster Operator which performed the last successful reconciliation.", - "type": "string" + "type": "string", + "description": "The version of the Strimzi Cluster Operator which performed the last successful reconciliation." + }, + "kafkaVersion": { + "type": "string", + "description": "The version of Kafka currently deployed in the cluster." + }, + "kafkaMetadataVersion": { + "type": "string", + "description": "The KRaft metadata.version currently used by the Kafka cluster." + }, + "kafkaMetadataState": { + "type": "string", + "enum": [ + "ZooKeeper", + "KRaftMigration", + "KRaftDualWriting", + "KRaftPostMigration", + "PreKRaft", + "KRaft" + ], + "description": "Defines where cluster metadata are stored. Possible values are: ZooKeeper if the metadata are stored in ZooKeeper; KRaftMigration if the controllers are connected to ZooKeeper, brokers are being rolled with Zookeeper migration enabled and connection information to controllers, and the metadata migration process is running; KRaftDualWriting if the metadata migration process finished and the cluster is in dual-write mode; KRaftPostMigration if the brokers are fully KRaft-based but controllers being rolled to disconnect from ZooKeeper; PreKRaft if brokers and controller are fully KRaft-based, metadata are stored in KRaft, but ZooKeeper must be deleted; KRaft if the metadata are stored in KRaft." } }, - "type": "object", + "description": "The status of the Kafka and ZooKeeper clusters, and Topic Operator.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkabridge_v1beta2.json b/kafka.strimzi.io/kafkabridge_v1beta2.json index dc36d46b..bcadc325 100644 --- a/kafka.strimzi.io/kafkabridge_v1beta2.json +++ b/kafka.strimzi.io/kafkabridge_v1beta2.json @@ -1,210 +1,283 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka Bridge.", + "type": "object", "properties": { - "adminClient": { - "description": "Kafka AdminClient related configuration.", + "replicas": { + "type": "integer", + "minimum": 0, + "description": "The number of pods in the `Deployment`. Defaults to `1`." + }, + "image": { + "type": "string", + "description": "The container image used for Kafka Bridge pods. If no image name is explicitly specified, the image name corresponds to the image specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used." + }, + "bootstrapServers": { + "type": "string", + "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster." + }, + "tls": { + "type": "object", "properties": { - "config": { - "description": "The Kafka AdminClient configuration used for AdminClient instances created by the bridge.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "trustedCertificates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the secret." + }, + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." + } + }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], + "required": [ + "secretName" + ], + "additionalProperties": false + }, + "description": "Trusted certificates for TLS connection." } }, - "type": "object", + "description": "TLS configuration for connecting Kafka Bridge to the cluster.", "additionalProperties": false }, "authentication": { - "description": "Authentication configuration for connecting to the cluster.", + "type": "object", "properties": { "accessToken": { - "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", "additionalProperties": false }, "accessTokenIsJwt": { - "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" + "type": "boolean", + "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." }, "audience": { - "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request." }, "certificateAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair.", + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the Secret." }, "key": { - "description": "The name of the private key in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "type": "string", + "description": "The name of the private key in the Secret." } }, "required": [ - "key", "secretName", - "certificate" + "certificate", + "key" ], - "type": "object", + "description": "Reference to the `Secret` which holds the certificate and private key pair.", "additionalProperties": false }, "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." }, "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", "additionalProperties": false }, "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." }, "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." }, "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." }, "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." }, "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." }, "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." }, "maxTokenExpirySeconds": { - "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens.", - "type": "integer" + "type": "integer", + "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens." }, "passwordSecret": { - "description": "Reference to the `Secret` which holds the password.", + "type": "object", "properties": { - "password": { - "description": "The name of the key in the Secret under which the password is stored.", - "type": "string" - }, "secretName": { - "description": "The name of the Secret containing the password.", - "type": "string" + "type": "string", + "description": "The name of the Secret containing the password." + }, + "password": { + "type": "string", + "description": "The name of the key in the Secret under which the password is stored." } }, "required": [ "secretName", "password" ], - "type": "object", + "description": "Reference to the `Secret` which holds the password.", "additionalProperties": false }, "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." }, "refreshToken": { - "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", "additionalProperties": false }, "scope": { - "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request." }, "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection to the OAuth server." }, "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" + "type": "string", + "description": "Authorization server token endpoint URI." }, "type": { - "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections.", + "type": "string", "enum": [ "tls", "scram-sha-256", @@ -212,185 +285,222 @@ "plain", "oauth" ], - "type": "string" + "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections." }, "username": { - "description": "Username used for the authentication.", - "type": "string" + "type": "string", + "description": "Username used for the authentication." } }, "required": [ "type" ], - "type": "object", - "additionalProperties": false - }, - "bootstrapServers": { - "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster.", - "type": "string" - }, - "clientRackInitImage": { - "description": "The image of the init container used for initializing the `client.rack`.", - "type": "string" - }, - "consumer": { - "description": "Kafka consumer related configuration.", - "properties": { - "config": { - "description": "The Kafka consumer configuration used for consumer instances created by the bridge. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, group.id, sasl., security. (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - } - }, - "type": "object", + "description": "Authentication configuration for connecting to the cluster.", "additionalProperties": false }, - "enableMetrics": { - "description": "Enable the metrics for the Kafka Bridge. Default is false.", - "type": "boolean" - }, "http": { - "description": "The HTTP related configuration.", + "type": "object", "properties": { + "port": { + "type": "integer", + "minimum": 1023, + "description": "The port which is the server listening on." + }, "cors": { - "description": "CORS configuration for the HTTP Bridge.", + "type": "object", "properties": { - "allowedMethods": { - "description": "List of allowed HTTP methods.", + "allowedOrigins": { + "type": "array", "items": { "type": "string" }, - "type": "array" + "description": "List of allowed origins. Java regular expressions can be used." }, - "allowedOrigins": { - "description": "List of allowed origins. Java regular expressions can be used.", + "allowedMethods": { + "type": "array", "items": { "type": "string" }, - "type": "array" + "description": "List of allowed HTTP methods." } }, "required": [ "allowedOrigins", "allowedMethods" ], - "type": "object", + "description": "CORS configuration for the HTTP Bridge.", "additionalProperties": false + } + }, + "description": "The HTTP related configuration.", + "additionalProperties": false + }, + "adminClient": { + "type": "object", + "properties": { + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka AdminClient configuration used for AdminClient instances created by the bridge." + } + }, + "description": "Kafka AdminClient related configuration.", + "additionalProperties": false + }, + "consumer": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether the HTTP consumer should be enabled or disabled, default is enabled." }, - "port": { - "description": "The port which is the server listening on.", - "minimum": 1023, - "type": "integer" + "timeoutSeconds": { + "type": "integer", + "description": "The timeout in seconds for deleting inactive consumers, default is -1 (disabled)." + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka consumer configuration used for consumer instances created by the bridge. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, group.id, sasl., security. (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." } }, + "description": "Kafka consumer related configuration.", + "additionalProperties": false + }, + "producer": { "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether the HTTP producer should be enabled or disabled, default is enabled." + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka producer configuration used for producer instances created by the bridge. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, sasl., security. (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." + } + }, + "description": "Kafka producer related configuration.", "additionalProperties": false }, - "image": { - "description": "The container image used for Kafka Bridge pods. If no image name is explicitly specified, the image name corresponds to the image specified in the Cluster Operator configuration. If an image name is not defined in the Cluster Operator configuration, a default value is used.", - "type": "string" + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false }, "jvmOptions": { - "description": "**Currently not supported** JVM Options for pods.", + "type": "object", "properties": { "-XX": { "additionalProperties": { "type": "string" }, - "description": "A map of -XX options to the JVM.", - "type": "object" + "type": "object", + "description": "A map of -XX options to the JVM." }, - "-Xms": { - "description": "-Xms option to to the JVM.", + "-Xmx": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xmx option to to the JVM." }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", + "-Xms": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xms option to to the JVM." }, "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." }, "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The system property name.", - "type": "string" + "type": "string", + "description": "The system property name." }, "value": { - "description": "The system property value.", - "type": "string" + "type": "string", + "description": "The system property value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." } }, - "type": "object", + "description": "**Currently not supported** JVM Options for pods.", "additionalProperties": false }, "logging": { - "description": "Logging configuration for Kafka Bridge.", + "type": "object", "properties": { "loggers": { "additionalProperties": { "type": "string" }, - "description": "A Map from logger name to logger level.", - "type": "object" + "type": "object", + "description": "A Map from logger name to logger level." }, "type": { - "description": "Logging type, must be either 'inline' or 'external'.", + "type": "string", "enum": [ "inline", "external" ], - "type": "string" + "description": "Logging type, must be either 'inline' or 'external'." }, "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", + "type": "object", "properties": { "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "type": "object", "properties": { "key": { "type": "string" @@ -402,238 +512,204 @@ "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false } }, "required": [ "type" ], - "type": "object", + "description": "Logging configuration for Kafka Bridge.", "additionalProperties": false }, - "producer": { - "description": "Kafka producer related configuration.", - "properties": { - "config": { - "description": "The Kafka producer configuration used for producer instances created by the bridge. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, sasl., security. (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - } - }, - "type": "object", - "additionalProperties": false + "clientRackInitImage": { + "type": "string", + "description": "The image of the init container used for initializing the `client.rack`." }, "rack": { - "description": "Configuration of the node label which will be used as the client.rack consumer configuration.", + "type": "object", "properties": { "topologyKey": { - "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2.", + "type": "string", "example": "topology.kubernetes.io/zone", - "type": "string" + "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2." } }, "required": [ "topologyKey" ], - "type": "object", + "description": "Configuration of the node label which will be used as the client.rack consumer configuration.", "additionalProperties": false }, - "readinessProbe": { - "description": "Pod readiness checking.", + "enableMetrics": { + "type": "boolean", + "description": "Enable the metrics for the Kafka Bridge. Default is false." + }, + "livenessProbe": { + "type": "object", "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", + "type": "integer", "minimum": 0, - "type": "integer" + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." }, "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", "minimum": 1, - "type": "integer" + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", + "type": "integer", "minimum": 1, - "type": "integer" + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", + "failureThreshold": { + "type": "integer", "minimum": 1, - "type": "integer" + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "type": "object", + "description": "Pod liveness checking.", "additionalProperties": false }, - "replicas": { - "description": "The number of pods in the `Deployment`. Defaults to `1`.", - "minimum": 0, - "type": "integer" - }, - "resources": { - "description": "CPU and memory resources to reserve.", + "readinessProbe": { + "type": "object", "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "type": "object", + "description": "Pod readiness checking.", "additionalProperties": false }, "template": { - "description": "Template for Kafka Bridge resources. The template allows users to specify how a `Deployment` and `Pod` is generated.", + "type": "object", "properties": { - "apiService": { - "description": "Template for Kafka Bridge API `Service`.", + "deployment": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." } }, - "type": "object", + "description": "Template for Kafka Bridge `Deployment`.", "additionalProperties": false }, - "bridgeContainer": { - "description": "Template for the Kafka Bridge container.", + "pod": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -644,6 +720,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -658,10 +735,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -670,10 +747,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -688,215 +786,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "clusterRoleBinding": { - "description": "Template for the Kafka Bridge ClusterRoleBinding.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "deployment": { - "description": "Template for Kafka Bridge `Deployment`.", - "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "initContainer": { - "description": "Template for the Kafka Bridge init container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka Bridge `Pods`.", - "properties": { - "affinity": { - "description": "The pod's affinity rules.", + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, + "affinity": { + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -905,19 +823,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -926,37 +844,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -965,19 +883,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -986,42 +904,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1030,16 +949,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1048,25 +965,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1075,16 +994,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1093,38 +1010,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1133,16 +1051,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1151,25 +1067,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1178,16 +1096,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1196,39 +1112,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1237,16 +1156,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1255,25 +1172,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1282,16 +1201,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1300,38 +1217,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1340,16 +1258,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1358,25 +1274,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1385,16 +1303,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1403,201 +1319,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -1615,19 +1362,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1636,16 +1386,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1654,14 +1402,13 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "maxSkew": { "type": "integer" @@ -1682,187 +1429,530 @@ "type": "string" } }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "type": "string" + } + }, "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for Kafka Bridge `Pods`.", "additionalProperties": false }, - "podDisruptionBudget": { - "description": "Template for Kafka Bridge `PodDisruptionBudget`.", + "apiService": { + "type": "object", "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." } }, - "type": "object", + "description": "Template for Kafka Bridge API `Service`.", "additionalProperties": false }, - "serviceAccount": { - "description": "Template for the Kafka Bridge service account.", + "podDisruptionBudget": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." } }, - "type": "object", + "description": "Template for Kafka Bridge `PodDisruptionBudget`.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "tls": { - "description": "TLS configuration for connecting Kafka Bridge to the cluster.", - "properties": { - "trustedCertificates": { - "description": "Trusted certificates for TLS connection.", - "items": { - "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" - } - }, - "required": [ - "secretName", - "certificate" - ], - "type": "object", - "additionalProperties": false + }, + "bridgeContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Bridge container.", + "additionalProperties": false + }, + "clusterRoleBinding": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Bridge ClusterRoleBinding.", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Bridge service account.", + "additionalProperties": false + }, + "initContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } }, - "type": "array" + "description": "Template for the Kafka Bridge init container.", + "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka Bridge resources. The template allows users to specify how a `Deployment` and `Pod` is generated.", "additionalProperties": false }, "tracing": { - "description": "The configuration of tracing in Kafka Bridge.", + "type": "object", "properties": { "type": { - "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored.", + "type": "string", "enum": [ "jaeger", "opentelemetry" ], - "type": "string" + "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored." } }, "required": [ "type" ], - "type": "object", + "description": "The configuration of tracing in Kafka Bridge.", "additionalProperties": false } }, "required": [ "bootstrapServers" ], - "type": "object", + "description": "The specification of the Kafka Bridge.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka Bridge.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "labelSelector": { - "description": "Label selector for pods providing this resource.", - "type": "string" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "url": { + "type": "string", + "description": "The URL at which external client applications can access the Kafka Bridge." }, "replicas": { - "description": "The current number of pods being used to provide this resource.", - "type": "integer" + "type": "integer", + "description": "The current number of pods being used to provide this resource." }, - "url": { - "description": "The URL at which external client applications can access the Kafka Bridge.", - "type": "string" + "labelSelector": { + "type": "string", + "description": "Label selector for pods providing this resource." } }, - "type": "object", + "description": "The status of the Kafka Bridge.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkaconnect_v1beta2.json b/kafka.strimzi.io/kafkaconnect_v1beta2.json index 88565c16..0dde3d31 100644 --- a/kafka.strimzi.io/kafkaconnect_v1beta2.json +++ b/kafka.strimzi.io/kafkaconnect_v1beta2.json @@ -1,198 +1,286 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka Connect cluster.", + "type": "object", "properties": { + "version": { + "type": "string", + "description": "The Kafka Connect version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version." + }, + "replicas": { + "type": "integer", + "description": "The number of pods in the Kafka Connect group. Defaults to `3`." + }, + "image": { + "type": "string", + "description": "The container image used for Kafka Connect pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration." + }, + "bootstrapServers": { + "type": "string", + "description": "Bootstrap servers to connect to. This should be given as a comma separated list of __:__ pairs." + }, + "tls": { + "type": "object", + "properties": { + "trustedCertificates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the secret." + }, + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." + } + }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], + "required": [ + "secretName" + ], + "additionalProperties": false + }, + "description": "Trusted certificates for TLS connection." + } + }, + "description": "TLS configuration.", + "additionalProperties": false + }, "authentication": { - "description": "Authentication configuration for Kafka Connect.", + "type": "object", "properties": { "accessToken": { - "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", "additionalProperties": false }, "accessTokenIsJwt": { - "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" + "type": "boolean", + "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." }, "audience": { - "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request." }, "certificateAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair.", + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the Secret." }, "key": { - "description": "The name of the private key in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "type": "string", + "description": "The name of the private key in the Secret." } }, "required": [ - "key", "secretName", - "certificate" + "certificate", + "key" ], - "type": "object", + "description": "Reference to the `Secret` which holds the certificate and private key pair.", "additionalProperties": false }, "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." }, "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", "additionalProperties": false }, "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." }, "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." }, "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." }, "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." }, "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." }, "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." }, "maxTokenExpirySeconds": { - "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens.", - "type": "integer" + "type": "integer", + "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens." }, "passwordSecret": { - "description": "Reference to the `Secret` which holds the password.", + "type": "object", "properties": { - "password": { - "description": "The name of the key in the Secret under which the password is stored.", - "type": "string" - }, "secretName": { - "description": "The name of the Secret containing the password.", - "type": "string" + "type": "string", + "description": "The name of the Secret containing the password." + }, + "password": { + "type": "string", + "description": "The name of the key in the Secret under which the password is stored." } }, "required": [ "secretName", "password" ], - "type": "object", + "description": "Reference to the `Secret` which holds the password.", "additionalProperties": false }, "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." }, "refreshToken": { - "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", "additionalProperties": false }, "scope": { - "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request." }, "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection to the OAuth server." }, "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" + "type": "string", + "description": "Authorization server token endpoint URI." }, "type": { - "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections.", + "type": "string", "enum": [ "tls", "scram-sha-256", @@ -200,480 +288,230 @@ "plain", "oauth" ], - "type": "string" + "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections." }, "username": { - "description": "Username used for the authentication.", - "type": "string" + "type": "string", + "description": "Username used for the authentication." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication configuration for Kafka Connect.", "additionalProperties": false }, - "bootstrapServers": { - "description": "Bootstrap servers to connect to. This should be given as a comma separated list of __:__ pairs.", - "type": "string" + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka Connect configuration. Properties with the following prefixes cannot be set: ssl., sasl., security., listeners, plugin.path, rest., bootstrap.servers, consumer.interceptor.classes, producer.interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." }, - "build": { - "description": "Configures how the Connect container image should be built. Optional.", + "resources": { + "type": "object", "properties": { - "output": { - "description": "Configures where should the newly built image be stored. Required.", - "properties": { - "additionalKanikoOptions": { - "description": "Configures additional options which will be passed to the Kaniko executor when building the new Connect image. Allowed options are: --customPlatform, --insecure, --insecure-pull, --insecure-registry, --log-format, --log-timestamp, --registry-mirror, --reproducible, --single-snapshot, --skip-tls-verify, --skip-tls-verify-pull, --skip-tls-verify-registry, --verbosity, --snapshotMode, --use-new-run. These options will be used only on Kubernetes where the Kaniko executor is used. They will be ignored on OpenShift. The options are described in the link:https://github.com/GoogleContainerTools/kaniko[Kaniko GitHub repository^]. Changing this field does not trigger new build of the Kafka Connect image.", - "items": { - "type": "string" - }, - "type": "array" - }, - "image": { - "description": "The name of the image which will be built. Required.", - "type": "string" - }, - "pushSecret": { - "description": "Container Registry Secret with the credentials for pushing the newly built image.", - "type": "string" - }, - "type": { - "description": "Output type. Must be either `docker` for pushing the newly build image to Docker compatible registry or `imagestream` for pushing the image to OpenShift ImageStream. Required.", - "enum": [ - "docker", - "imagestream" - ], - "type": "string" - } - }, - "required": [ - "image", - "type" - ], - "type": "object", - "additionalProperties": false - }, - "plugins": { - "description": "List of connector plugins which should be added to the Kafka Connect. Required.", + "claims": { + "type": "array", "items": { + "type": "object", "properties": { - "artifacts": { - "description": "List of artifacts which belong to this connector plugin. Required.", - "items": { - "properties": { - "artifact": { - "description": "Maven artifact id. Applicable to the `maven` artifact type only.", - "type": "string" - }, - "fileName": { - "description": "Name under which the artifact will be stored.", - "type": "string" - }, - "group": { - "description": "Maven group id. Applicable to the `maven` artifact type only.", - "type": "string" - }, - "insecure": { - "description": "By default, connections using TLS are verified to check they are secure. The server certificate used must be valid, trusted, and contain the server name. By setting this option to `true`, all TLS verification is disabled and the artifact will be downloaded, even when the server is considered insecure.", - "type": "boolean" - }, - "repository": { - "description": "Maven repository to download the artifact from. Applicable to the `maven` artifact type only.", - "type": "string" - }, - "sha512sum": { - "description": "SHA512 checksum of the artifact. Optional. If specified, the checksum will be verified while building the new container. If not specified, the downloaded artifact will not be verified. Not applicable to the `maven` artifact type. ", - "type": "string" - }, - "type": { - "description": "Artifact type. Currently, the supported artifact types are `tgz`, `jar`, `zip`, `other` and `maven`.", - "enum": [ - "jar", - "tgz", - "zip", - "maven", - "other" - ], - "type": "string" - }, - "url": { - "description": "URL of the artifact which will be downloaded. Strimzi does not do any security scanning of the downloaded artifacts. For security reasons, you should first verify the artifacts manually and configure the checksum verification to make sure the same artifact is used in the automated build. Required for `jar`, `zip`, `tgz` and `other` artifacts. Not applicable to the `maven` artifact type.", - "pattern": "^(https?|ftp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]$", - "type": "string" - }, - "version": { - "description": "Maven version number. Applicable to the `maven` artifact type only.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, "name": { - "description": "The unique name of the connector plugin. Will be used to generate the path where the connector artifacts will be stored. The name has to be unique within the KafkaConnect resource. The name has to follow the following pattern: `^[a-z][-_a-z0-9]*[a-z]$`. Required.", - "pattern": "^[a-z0-9][-_a-z0-9]*[a-z0-9]$", "type": "string" } }, - "required": [ - "name", - "artifacts" - ], - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, - "resources": { - "description": "CPU and memory resources to reserve for the build.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "type": "object" - } + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "object", - "additionalProperties": false + "type": "object" } }, - "required": [ - "output", - "plugins" - ], - "type": "object", + "description": "The maximum limits for CPU and memory resources and the requested initial resources.", "additionalProperties": false }, - "clientRackInitImage": { - "description": "The image of the init container used for initializing the `client.rack`.", - "type": "string" - }, - "config": { - "description": "The Kafka Connect configuration. Properties with the following prefixes cannot be set: ssl., sasl., security., listeners, plugin.path, rest., bootstrap.servers, consumer.interceptor.classes, producer.interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", + "livenessProbe": { "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "externalConfiguration": { - "description": "Pass data from Secrets or ConfigMaps to the Kafka Connect pods and use them to configure connectors.", "properties": { - "env": { - "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as environment variables.", - "items": { - "properties": { - "name": { - "description": "Name of the environment variable which will be passed to the Kafka Connect pods. The name of the environment variable cannot start with `KAFKA_` or `STRIMZI_`.", - "type": "string" - }, - "valueFrom": { - "description": "Value of the environment variable which will be passed to the Kafka Connect pods. It can be passed either as a reference to Secret or ConfigMap field. The field has to specify exactly one Secret or ConfigMap.", - "properties": { - "configMapKeyRef": { - "description": "Reference to a key in a ConfigMap.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false - }, - "secretKeyRef": { - "description": "Reference to a key in a Secret.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "name", - "valueFrom" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." }, - "volumes": { - "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as volumes.", - "items": { - "properties": { - "configMap": { - "description": "Reference to a key in a ConfigMap. Exactly one Secret or ConfigMap has to be specified.", - "properties": { - "defaultMode": { - "type": "integer" - }, - "items": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "mode": { - "type": "integer" - }, - "path": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false - }, - "name": { - "description": "Name of the volume which will be added to the Kafka Connect pods.", - "type": "string" - }, - "secret": { - "description": "Reference to a key in a Secret. Exactly one Secret or ConfigMap has to be specified.", - "properties": { - "defaultMode": { - "type": "integer" - }, - "items": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "mode": { - "type": "integer" - }, - "path": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "optional": { - "type": "boolean" - }, - "secretName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "name" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "type": "object", + "description": "Pod liveness checking.", "additionalProperties": false }, - "image": { - "description": "The container image used for Kafka Connect pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration.", - "type": "string" - }, - "jmxOptions": { - "description": "JMX Options.", + "readinessProbe": { + "type": "object", "properties": { - "authentication": { - "description": "Authentication configuration for connecting to the JMX port.", - "properties": { - "type": { - "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS.", - "enum": [ - "password" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "type": "object", + "description": "Pod readiness checking.", "additionalProperties": false }, "jvmOptions": { - "description": "JVM Options for pods.", + "type": "object", "properties": { "-XX": { "additionalProperties": { "type": "string" }, - "description": "A map of -XX options to the JVM.", - "type": "object" + "type": "object", + "description": "A map of -XX options to the JVM." }, - "-Xms": { - "description": "-Xms option to to the JVM.", + "-Xmx": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xmx option to to the JVM." }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", + "-Xms": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xms option to to the JVM." }, "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." }, "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The system property name.", - "type": "string" + "type": "string", + "description": "The system property name." }, "value": { - "description": "The system property value.", - "type": "string" + "type": "string", + "description": "The system property value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." } }, - "type": "object", + "description": "JVM Options for pods.", "additionalProperties": false }, - "livenessProbe": { - "description": "Pod liveness checking.", + "jmxOptions": { + "type": "object", "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "authentication": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "password" + ], + "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS." + } + }, + "required": [ + "type" + ], + "description": "Authentication configuration for connecting to the JMX port.", + "additionalProperties": false } }, - "type": "object", + "description": "JMX Options.", "additionalProperties": false }, "logging": { - "description": "Logging configuration for Kafka Connect.", + "type": "object", "properties": { "loggers": { "additionalProperties": { "type": "string" }, - "description": "A Map from logger name to logger level.", - "type": "object" + "type": "object", + "description": "A Map from logger name to logger level." }, "type": { - "description": "Logging type, must be either 'inline' or 'external'.", + "type": "string", "enum": [ "inline", "external" ], - "type": "string" + "description": "Logging type, must be either 'inline' or 'external'." }, "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", + "type": "object", "properties": { "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "type": "object", "properties": { "key": { "type": "string" @@ -685,35 +523,54 @@ "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false } }, "required": [ "type" ], - "type": "object", + "description": "Logging configuration for Kafka Connect.", "additionalProperties": false }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { - "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", + "clientRackInitImage": { + "type": "string", + "description": "The image of the init container used for initializing the `client.rack`." + }, + "rack": { + "type": "object", + "properties": { + "topologyKey": { + "type": "string", + "example": "topology.kubernetes.io/zone", + "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2." + } + }, + "required": [ + "topologyKey" + ], + "description": "Configuration of the node label which will be used as the `client.rack` consumer configuration.", + "additionalProperties": false + }, + "metricsConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", "enum": [ "jmxPrometheusExporter" ], - "type": "string" + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." }, "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", + "type": "object", "properties": { "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "type": "object", "properties": { "key": { "type": "string" @@ -725,11 +582,11 @@ "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", "additionalProperties": false } }, @@ -737,246 +594,152 @@ "type", "valueFrom" ], - "type": "object", + "description": "Metrics configuration.", "additionalProperties": false }, - "rack": { - "description": "Configuration of the node label which will be used as the `client.rack` consumer configuration.", + "tracing": { + "type": "object", "properties": { - "topologyKey": { - "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2.", - "example": "topology.kubernetes.io/zone", - "type": "string" + "type": { + "type": "string", + "enum": [ + "jaeger", + "opentelemetry" + ], + "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored." } }, "required": [ - "topologyKey" + "type" ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "replicas": { - "description": "The number of pods in the Kafka Connect group. Defaults to `3`.", - "type": "integer" - }, - "resources": { - "description": "The maximum limits for CPU and memory resources and the requested initial resources.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", + "description": "The configuration of tracing in Kafka Connect.", "additionalProperties": false }, "template": { - "description": "Template for Kafka Connect and Kafka Mirror Maker 2 resources. The template allows users to specify how the `Pods`, `Service`, and other services are generated.", + "type": "object", "properties": { - "apiService": { - "description": "Template for Kafka Connect API `Service`.", + "deployment": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." } }, - "type": "object", + "description": "Template for Kafka Connect `Deployment`.", "additionalProperties": false }, - "buildConfig": { - "description": "Template for the Kafka Connect BuildConfig used to build new container images. The BuildConfig is used only on OpenShift.", + "podSet": { + "type": "object", "properties": { "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - }, - "pullSecret": { - "description": "Container Registry Secret with the credentials for pulling the base image.", - "type": "string" } }, - "type": "object", + "description": "Template for Kafka Connect `StrimziPodSet` resource.", "additionalProperties": false }, - "buildContainer": { - "description": "Template for the Kafka Connect Build container. The build container is used only on Kubernetes.", + "pod": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -987,6 +750,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -1001,10 +765,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -1013,13 +777,34 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" }, "gmsaCredentialSpecName": { "type": "string" @@ -1031,32 +816,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "buildPod": { - "description": "Template for Kafka Connect Build `Pods`. The build pod is used only on Kubernetes.", - "properties": { + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1065,19 +853,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1086,37 +874,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1125,19 +913,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1146,42 +934,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1190,16 +979,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1208,25 +995,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1235,16 +1024,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1253,38 +1040,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1293,16 +1081,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1311,25 +1097,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1338,16 +1126,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1356,39 +1142,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1397,16 +1186,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1415,25 +1202,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1442,16 +1231,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1460,38 +1247,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1500,16 +1288,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1518,25 +1304,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1545,16 +1333,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1563,393 +1349,311 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "tolerations": { + "type": "array", "items": { + "type": "object", "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" + "effect": { + "type": "string" }, - "ip": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, + "value": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", + "topologySpreadConstraints": { + "type": "array", "items": { + "type": "object", "properties": { - "name": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { + }, + "nodeTaintsPolicy": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + "topologyKey": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "whenUnsatisfiable": { + "type": "string" + } + }, + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "The pod's topology spread constraints." }, "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " }, "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", + "hostAliases": { + "type": "array", "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } - }, "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { + "hostnames": { + "type": "array", "items": { "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" + } }, - "whenUnsatisfiable": { + "ip": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for Kafka Connect `Pods`.", "additionalProperties": false }, - "buildServiceAccount": { - "description": "Template for the Kafka Connect Build service account.", + "apiService": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." } }, - "type": "object", + "description": "Template for Kafka Connect API `Service`.", "additionalProperties": false }, - "clusterRoleBinding": { - "description": "Template for the Kafka Connect ClusterRoleBinding.", + "headlessService": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." } }, - "type": "object", + "description": "Template for Kafka Connect headless `Service`.", "additionalProperties": false }, "connectContainer": { - "description": "Template for the Kafka Connect container.", + "type": "object", "properties": { "env": { - "description": "Environment variables which should be applied to the container.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" + "type": "string", + "description": "The environment variable key." }, "value": { - "description": "The environment variable value.", - "type": "string" + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, "capabilities": { + "type": "object", "properties": { "add": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "privileged": { @@ -1971,6 +1675,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -1985,10 +1690,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -1997,10 +1702,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -2015,144 +1720,71 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "deployment": { - "description": "Template for Kafka Connect `Deployment`.", - "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "headlessService": { - "description": "Template for Kafka Connect headless `Service`.", - "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka Connect container.", "additionalProperties": false }, "initContainer": { - "description": "Template for the Kafka init container.", + "type": "object", "properties": { "env": { - "description": "Environment variables which should be applied to the container.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" + "type": "string", + "description": "The environment variable key." }, "value": { - "description": "The environment variable value.", - "type": "string" + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, "capabilities": { + "type": "object", "properties": { "add": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "privileged": { @@ -2174,6 +1806,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -2188,10 +1821,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -2200,10 +1833,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -2218,185 +1851,394 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka init container.", "additionalProperties": false }, - "jmxSecret": { - "description": "Template for Secret of the Kafka Connect Cluster JMX authentication.", + "podDisruptionBudget": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." } }, - "type": "object", + "description": "Template for Kafka Connect `PodDisruptionBudget`.", "additionalProperties": false }, - "pod": { - "description": "Template for Kafka Connect `Pods`.", + "serviceAccount": { + "type": "object", "properties": { - "affinity": { - "description": "The pod's affinity rules.", + "metadata": { + "type": "object", "properties": { - "nodeAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "preference": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "weight": { - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "properties": { - "nodeSelectorTerms": { - "items": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchFields": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } + "labels": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "Labels added to the Kubernetes resource." }, - "podAffinity": { - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "items": { - "properties": { - "podAffinityTerm": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Connect service account.", + "additionalProperties": false + }, + "clusterRoleBinding": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Connect ClusterRoleBinding.", + "additionalProperties": false + }, + "buildPod": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." + }, + "securityContext": { + "type": "object", + "properties": { + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fsGroup": { + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Configures pod-level security attributes and common container settings.", + "additionalProperties": false + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, + "affinity": { + "type": "object", + "properties": { + "nodeAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "preference": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "weight": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", + "properties": { + "nodeSelectorTerms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "podAffinity": { + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", + "items": { + "type": "object", + "properties": { + "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2405,16 +2247,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2423,25 +2263,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2450,16 +2292,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2468,38 +2308,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2508,16 +2349,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2526,25 +2365,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2553,16 +2394,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2571,39 +2410,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2612,16 +2454,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2630,25 +2470,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2657,16 +2499,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2675,38 +2515,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2715,16 +2556,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2733,25 +2572,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2760,16 +2601,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2778,106 +2617,226 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" + "tolerations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "effect": { + "type": "string" + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's tolerations." + }, + "topologySpreadConstraints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." }, "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "type": "array", "items": { + "type": "object", "properties": { "hostnames": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "ip": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Kafka Connect Build `Pods`. The build pod is used only on Kubernetes.", + "additionalProperties": false + }, + "buildContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "type": "string" + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "metadata": { - "description": "Metadata applied to the resource.", + "securityContext": { + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" + "additionalProperties": false }, - "fsGroupChangePolicy": { + "privileged": { + "type": "boolean" + }, + "procMount": { "type": "string" }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, "runAsGroup": { "type": "integer" }, @@ -2888,6 +2847,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -2902,43 +2862,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } + "type": "string" }, - "type": "object", - "additionalProperties": false + "type": { + "type": "string" + } }, - "type": "array" + "additionalProperties": false }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -2953,345 +2892,508 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", - "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { + } + }, + "description": "Template for the Kafka Connect Build container. The build container is used only on Kubernetes.", + "additionalProperties": false + }, + "buildConfig": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { "type": "string" }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { + "annotations": { + "additionalProperties": { "type": "string" }, - "whenUnsatisfiable": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } }, - "type": "array" + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "additionalProperties": false + }, + "pullSecret": { + "type": "string", + "description": "Container Registry Secret with the credentials for pulling the base image." } }, - "type": "object", + "description": "Template for the Kafka Connect BuildConfig used to build new container images. The BuildConfig is used only on OpenShift.", "additionalProperties": false }, - "podDisruptionBudget": { - "description": "Template for Kafka Connect `PodDisruptionBudget`.", + "buildServiceAccount": { + "type": "object", "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka Connect Build service account.", "additionalProperties": false }, - "podSet": { - "description": "Template for Kafka Connect `StrimziPodSet` resource.", + "jmxSecret": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, "annotations": { "additionalProperties": { "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Secret of the Kafka Connect Cluster JMX authentication.", + "additionalProperties": false + } + }, + "description": "Template for Kafka Connect and Kafka Mirror Maker 2 resources. The template allows users to specify how the `Pods`, `Service`, and other services are generated.", + "additionalProperties": false + }, + "externalConfiguration": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment variable which will be passed to the Kafka Connect pods. The name of the environment variable cannot start with `KAFKA_` or `STRIMZI_`." + }, + "valueFrom": { + "type": "object", + "properties": { + "secretKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a Secret.", + "additionalProperties": false + }, + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a ConfigMap.", + "additionalProperties": false + } + }, + "description": "Value of the environment variable which will be passed to the Kafka Connect pods. It can be passed either as a reference to Secret or ConfigMap field. The field has to specify exactly one Secret or ConfigMap.", + "additionalProperties": false + } + }, + "required": [ + "name", + "valueFrom" + ], + "additionalProperties": false + }, + "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as environment variables." + }, + "volumes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the volume which will be added to the Kafka Connect pods." + }, + "secret": { + "type": "object", + "properties": { + "defaultMode": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "mode": { + "type": "integer" + }, + "path": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "optional": { + "type": "boolean" + }, + "secretName": { + "type": "string" + } }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } + "description": "Reference to a key in a Secret. Exactly one Secret or ConfigMap has to be specified.", + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "description": "Template for the Kafka Connect service account.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "configMap": { + "type": "object", + "properties": { + "defaultMode": { + "type": "integer" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "mode": { + "type": "integer" + }, + "path": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "name": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a ConfigMap. Exactly one Secret or ConfigMap has to be specified.", + "additionalProperties": false + } + }, + "required": [ + "name" + ], + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as volumes." } }, - "type": "object", + "description": "Pass data from Secrets or ConfigMaps to the Kafka Connect pods and use them to configure connectors.", "additionalProperties": false }, - "tls": { - "description": "TLS configuration.", + "build": { + "type": "object", "properties": { - "trustedCertificates": { - "description": "Trusted certificates for TLS connection.", + "output": { + "type": "object", + "properties": { + "additionalKanikoOptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Configures additional options which will be passed to the Kaniko executor when building the new Connect image. Allowed options are: --customPlatform, --insecure, --insecure-pull, --insecure-registry, --log-format, --log-timestamp, --registry-mirror, --reproducible, --single-snapshot, --skip-tls-verify, --skip-tls-verify-pull, --skip-tls-verify-registry, --verbosity, --snapshotMode, --use-new-run. These options will be used only on Kubernetes where the Kaniko executor is used. They will be ignored on OpenShift. The options are described in the link:https://github.com/GoogleContainerTools/kaniko[Kaniko GitHub repository^]. Changing this field does not trigger new build of the Kafka Connect image." + }, + "image": { + "type": "string", + "description": "The name of the image which will be built. Required." + }, + "pushSecret": { + "type": "string", + "description": "Container Registry Secret with the credentials for pushing the newly built image." + }, + "type": { + "type": "string", + "enum": [ + "docker", + "imagestream" + ], + "description": "Output type. Must be either `docker` for pushing the newly build image to Docker compatible registry or `imagestream` for pushing the image to OpenShift ImageStream. Required." + } + }, + "required": [ + "image", + "type" + ], + "description": "Configures where should the newly built image be stored. Required.", + "additionalProperties": false + }, + "plugins": { + "type": "array", "items": { + "type": "object", "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "name": { + "type": "string", + "pattern": "^[a-z0-9][-_a-z0-9]*[a-z0-9]$", + "description": "The unique name of the connector plugin. Will be used to generate the path where the connector artifacts will be stored. The name has to be unique within the KafkaConnect resource. The name has to follow the following pattern: `^[a-z][-_a-z0-9]*[a-z]$`. Required." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "artifacts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "artifact": { + "type": "string", + "description": "Maven artifact id. Applicable to the `maven` artifact type only." + }, + "fileName": { + "type": "string", + "description": "Name under which the artifact will be stored." + }, + "group": { + "type": "string", + "description": "Maven group id. Applicable to the `maven` artifact type only." + }, + "insecure": { + "type": "boolean", + "description": "By default, connections using TLS are verified to check they are secure. The server certificate used must be valid, trusted, and contain the server name. By setting this option to `true`, all TLS verification is disabled and the artifact will be downloaded, even when the server is considered insecure." + }, + "repository": { + "type": "string", + "description": "Maven repository to download the artifact from. Applicable to the `maven` artifact type only." + }, + "sha512sum": { + "type": "string", + "description": "SHA512 checksum of the artifact. Optional. If specified, the checksum will be verified while building the new container. If not specified, the downloaded artifact will not be verified. Not applicable to the `maven` artifact type. " + }, + "type": { + "type": "string", + "enum": [ + "jar", + "tgz", + "zip", + "maven", + "other" + ], + "description": "Artifact type. Currently, the supported artifact types are `tgz`, `jar`, `zip`, `other` and `maven`." + }, + "url": { + "type": "string", + "pattern": "^(https?|ftp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]$", + "description": "URL of the artifact which will be downloaded. Strimzi does not do any security scanning of the downloaded artifacts. For security reasons, you should first verify the artifacts manually and configure the checksum verification to make sure the same artifact is used in the automated build. Required for `jar`, `zip`, `tgz` and `other` artifacts. Not applicable to the `maven` artifact type." + }, + "version": { + "type": "string", + "description": "Maven version number. Applicable to the `maven` artifact type only." + } + }, + "required": [ + "type" + ], + "additionalProperties": false + }, + "description": "List of artifacts which belong to this connector plugin. Required." } }, "required": [ - "secretName", - "certificate" + "name", + "artifacts" ], - "type": "object", "additionalProperties": false }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "tracing": { - "description": "The configuration of tracing in Kafka Connect.", - "properties": { - "type": { - "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored.", - "enum": [ - "jaeger", - "opentelemetry" - ], - "type": "string" + "description": "List of connector plugins which should be added to the Kafka Connect. Required." + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve for the build.", + "additionalProperties": false } }, "required": [ - "type" + "output", + "plugins" ], - "type": "object", + "description": "Configures how the Connect container image should be built. Optional.", "additionalProperties": false - }, - "version": { - "description": "The Kafka Connect version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version.", - "type": "string" } }, "required": [ "bootstrapServers" ], - "type": "object", + "description": "The specification of the Kafka Connect cluster.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka Connect cluster.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." + }, + "observedGeneration": { + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "url": { + "type": "string", + "description": "The URL of the REST API endpoint for managing and monitoring Kafka Connect connectors." }, "connectorPlugins": { - "description": "The list of connector plugins available in this Kafka Connect deployment.", + "type": "array", "items": { + "type": "object", "properties": { "class": { - "description": "The class of the connector plugin.", - "type": "string" + "type": "string", + "description": "The class of the connector plugin." }, "type": { - "description": "The type of the connector plugin. The available types are `sink` and `source`.", - "type": "string" + "type": "string", + "description": "The type of the connector plugin. The available types are `sink` and `source`." }, "version": { - "description": "The version of the connector plugin.", - "type": "string" + "type": "string", + "description": "The version of the connector plugin." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "labelSelector": { - "description": "Label selector for pods providing this resource.", - "type": "string" - }, - "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "description": "The list of connector plugins available in this Kafka Connect deployment." }, "replicas": { - "description": "The current number of pods being used to provide this resource.", - "type": "integer" + "type": "integer", + "description": "The current number of pods being used to provide this resource." }, - "url": { - "description": "The URL of the REST API endpoint for managing and monitoring Kafka Connect connectors.", - "type": "string" + "labelSelector": { + "type": "string", + "description": "Label selector for pods providing this resource." } }, - "type": "object", + "description": "The status of the Kafka Connect cluster.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkaconnector_v1beta2.json b/kafka.strimzi.io/kafkaconnector_v1beta2.json index c6b7cfb0..e139d8a3 100644 --- a/kafka.strimzi.io/kafkaconnector_v1beta2.json +++ b/kafka.strimzi.io/kafkaconnector_v1beta2.json @@ -1,141 +1,141 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka Connector.", + "type": "object", "properties": { + "class": { + "type": "string", + "description": "The Class for the Kafka Connector." + }, + "tasksMax": { + "type": "integer", + "minimum": 1, + "description": "The maximum number of tasks for the Kafka Connector." + }, "autoRestart": { - "description": "Automatic restart of connector and tasks configuration.", + "type": "object", "properties": { "enabled": { - "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled.", - "type": "boolean" + "type": "boolean", + "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled." }, "maxRestarts": { - "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts.", - "type": "integer" + "type": "integer", + "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts." } }, - "type": "object", + "description": "Automatic restart of connector and tasks configuration.", "additionalProperties": false }, - "class": { - "description": "The Class for the Kafka Connector.", - "type": "string" - }, "config": { - "description": "The Kafka Connector configuration. The following properties cannot be set: connector.class, tasks.max.", + "x-kubernetes-preserve-unknown-fields": true, "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "description": "The Kafka Connector configuration. The following properties cannot be set: name, connector.class, tasks.max." }, "pause": { - "description": "Whether the connector should be paused. Defaults to false.", - "type": "boolean" + "type": "boolean", + "description": "Whether the connector should be paused. Defaults to false." }, "state": { - "description": "The state the connector should be in. Defaults to running.", + "type": "string", "enum": [ "paused", "stopped", "running" ], - "type": "string" - }, - "tasksMax": { - "description": "The maximum number of tasks for the Kafka Connector.", - "minimum": 1, - "type": "integer" + "description": "The state the connector should be in. Defaults to running." } }, - "type": "object", + "description": "The specification of the Kafka Connector.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka Connector.", + "type": "object", "properties": { - "autoRestart": { - "description": "The auto restart status.", - "properties": { - "connectorName": { - "description": "The name of the connector being restarted.", - "type": "string" - }, - "count": { - "description": "The number of times the connector or task is restarted.", - "type": "integer" - }, - "lastRestartTimestamp": { - "description": "The last time the automatic restart was attempted. The required format is 'yyyy-MM-ddTHH:mm:ssZ' in the UTC time zone.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, - "connectorStatus": { - "description": "The connector status, as reported by the Kafka Connect REST API.", + "observedGeneration": { + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "autoRestart": { "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "properties": { + "count": { + "type": "integer", + "description": "The number of times the connector or task is restarted." + }, + "connectorName": { + "type": "string", + "description": "The name of the connector being restarted." + }, + "lastRestartTimestamp": { + "type": "string", + "description": "The last time the automatic restart was attempted. The required format is 'yyyy-MM-ddTHH:mm:ssZ' in the UTC time zone." + } + }, + "description": "The auto restart status.", + "additionalProperties": false }, - "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "connectorStatus": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The connector status, as reported by the Kafka Connect REST API." }, "tasksMax": { - "description": "The maximum number of tasks for the Kafka Connector.", - "type": "integer" + "type": "integer", + "description": "The maximum number of tasks for the Kafka Connector." }, "topics": { - "description": "The list of topics used by the Kafka Connector.", + "type": "array", "items": { "type": "string" }, - "type": "array" + "description": "The list of topics used by the Kafka Connector." } }, - "type": "object", + "description": "The status of the Kafka Connector.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkamirrormaker2_v1beta2.json b/kafka.strimzi.io/kafkamirrormaker2_v1beta2.json index a9b8579b..9de070c3 100644 --- a/kafka.strimzi.io/kafkamirrormaker2_v1beta2.json +++ b/kafka.strimzi.io/kafkamirrormaker2_v1beta2.json @@ -1,211 +1,300 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka MirrorMaker 2 cluster.", + "type": "object", "properties": { - "clientRackInitImage": { - "description": "The image of the init container used for initializing the `client.rack`.", - "type": "string" + "version": { + "type": "string", + "description": "The Kafka Connect version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version." + }, + "replicas": { + "type": "integer", + "description": "The number of pods in the Kafka Connect group. Defaults to `3`." + }, + "image": { + "type": "string", + "description": "The container image used for Kafka Connect pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration." + }, + "connectCluster": { + "type": "string", + "description": "The cluster alias used for Kafka Connect. The value must match the alias of the *target* Kafka cluster as specified in the `spec.clusters` configuration. The target Kafka cluster is used by the underlying Kafka Connect framework for its internal topics." }, "clusters": { - "description": "Kafka clusters for mirroring.", + "type": "array", "items": { + "type": "object", "properties": { "alias": { - "description": "Alias used to reference the Kafka cluster.", + "type": "string", "pattern": "^[a-zA-Z0-9\\._\\-]{1,100}$", - "type": "string" + "description": "Alias used to reference the Kafka cluster." + }, + "bootstrapServers": { + "type": "string", + "description": "A comma-separated list of `host:port` pairs for establishing the connection to the Kafka cluster." + }, + "tls": { + "type": "object", + "properties": { + "trustedCertificates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the secret." + }, + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." + } + }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], + "required": [ + "secretName" + ], + "additionalProperties": false + }, + "description": "Trusted certificates for TLS connection." + } + }, + "description": "TLS configuration for connecting MirrorMaker 2 connectors to a cluster.", + "additionalProperties": false }, "authentication": { - "description": "Authentication configuration for connecting to the cluster.", + "type": "object", "properties": { "accessToken": { - "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", "additionalProperties": false }, "accessTokenIsJwt": { - "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" + "type": "boolean", + "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." }, "audience": { - "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request." }, "certificateAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair.", + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the Secret." }, "key": { - "description": "The name of the private key in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "type": "string", + "description": "The name of the private key in the Secret." } }, "required": [ - "key", "secretName", - "certificate" + "certificate", + "key" ], - "type": "object", + "description": "Reference to the `Secret` which holds the certificate and private key pair.", "additionalProperties": false }, "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." }, "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", "additionalProperties": false }, "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." }, "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." }, "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." }, "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." }, "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." }, "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." }, "maxTokenExpirySeconds": { - "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens.", - "type": "integer" + "type": "integer", + "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens." }, "passwordSecret": { - "description": "Reference to the `Secret` which holds the password.", + "type": "object", "properties": { - "password": { - "description": "The name of the key in the Secret under which the password is stored.", - "type": "string" - }, "secretName": { - "description": "The name of the Secret containing the password.", - "type": "string" + "type": "string", + "description": "The name of the Secret containing the password." + }, + "password": { + "type": "string", + "description": "The name of the key in the Secret under which the password is stored." } }, "required": [ "secretName", "password" ], - "type": "object", + "description": "Reference to the `Secret` which holds the password.", "additionalProperties": false }, "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." }, "refreshToken": { - "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", "additionalProperties": false }, "scope": { - "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request." }, "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection to the OAuth server." }, "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" + "type": "string", + "description": "Authorization server token endpoint URI." }, "type": { - "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections.", + "type": "string", "enum": [ "tls", "scram-sha-256", @@ -213,349 +302,420 @@ "plain", "oauth" ], - "type": "string" + "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections." }, "username": { - "description": "Username used for the authentication.", - "type": "string" + "type": "string", + "description": "Username used for the authentication." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication configuration for connecting to the cluster.", "additionalProperties": false }, - "bootstrapServers": { - "description": "A comma-separated list of `host:port` pairs for establishing the connection to the Kafka cluster.", - "type": "string" - }, "config": { - "description": "The MirrorMaker 2 cluster config. Properties with the following prefixes cannot be set: ssl., sasl., security., listeners, plugin.path, rest., bootstrap.servers, consumer.interceptor.classes, producer.interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "tls": { - "description": "TLS configuration for connecting MirrorMaker 2 connectors to a cluster.", - "properties": { - "trustedCertificates": { - "description": "Trusted certificates for TLS connection.", - "items": { - "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" - } - }, - "required": [ - "secretName", - "certificate" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, + "x-kubernetes-preserve-unknown-fields": true, "type": "object", - "additionalProperties": false + "description": "The MirrorMaker 2 cluster config. Properties with the following prefixes cannot be set: ssl., sasl., security., listeners, plugin.path, rest., bootstrap.servers, consumer.interceptor.classes, producer.interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." } }, "required": [ "alias", "bootstrapServers" ], - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "connectCluster": { - "description": "The cluster alias used for Kafka Connect. The value must match the alias of the *target* Kafka cluster as specified in the `spec.clusters` configuration. The target Kafka cluster is used by the underlying Kafka Connect framework for its internal topics.", - "type": "string" + "description": "Kafka clusters for mirroring." }, - "externalConfiguration": { - "description": "Pass data from Secrets or ConfigMaps to the Kafka Connect pods and use them to configure connectors.", - "properties": { - "env": { - "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as environment variables.", - "items": { + "mirrors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sourceCluster": { + "type": "string", + "description": "The alias of the source cluster used by the Kafka MirrorMaker 2 connectors. The alias must match a cluster in the list at `spec.clusters`." + }, + "targetCluster": { + "type": "string", + "description": "The alias of the target cluster used by the Kafka MirrorMaker 2 connectors. The alias must match a cluster in the list at `spec.clusters`." + }, + "sourceConnector": { + "type": "object", "properties": { - "name": { - "description": "Name of the environment variable which will be passed to the Kafka Connect pods. The name of the environment variable cannot start with `KAFKA_` or `STRIMZI_`.", - "type": "string" + "tasksMax": { + "type": "integer", + "minimum": 1, + "description": "The maximum number of tasks for the Kafka Connector." }, - "valueFrom": { - "description": "Value of the environment variable which will be passed to the Kafka Connect pods. It can be passed either as a reference to Secret or ConfigMap field. The field has to specify exactly one Secret or ConfigMap.", + "pause": { + "type": "boolean", + "description": "Whether the connector should be paused. Defaults to false." + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka Connector configuration. The following properties cannot be set: name, connector.class, tasks.max." + }, + "state": { + "type": "string", + "enum": [ + "paused", + "stopped", + "running" + ], + "description": "The state the connector should be in. Defaults to running." + }, + "autoRestart": { + "type": "object", "properties": { - "configMapKeyRef": { - "description": "Reference to a key in a ConfigMap.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false + "enabled": { + "type": "boolean", + "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled." }, - "secretKeyRef": { - "description": "Reference to a key in a Secret.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false + "maxRestarts": { + "type": "integer", + "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts." } }, - "type": "object", + "description": "Automatic restart of connector and tasks configuration.", "additionalProperties": false } }, - "required": [ - "name", - "valueFrom" - ], - "type": "object", + "description": "The specification of the Kafka MirrorMaker 2 source connector.", "additionalProperties": false }, - "type": "array" - }, - "volumes": { - "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as volumes.", - "items": { + "heartbeatConnector": { + "type": "object", "properties": { - "configMap": { - "description": "Reference to a key in a ConfigMap. Exactly one Secret or ConfigMap has to be specified.", + "tasksMax": { + "type": "integer", + "minimum": 1, + "description": "The maximum number of tasks for the Kafka Connector." + }, + "pause": { + "type": "boolean", + "description": "Whether the connector should be paused. Defaults to false." + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka Connector configuration. The following properties cannot be set: name, connector.class, tasks.max." + }, + "state": { + "type": "string", + "enum": [ + "paused", + "stopped", + "running" + ], + "description": "The state the connector should be in. Defaults to running." + }, + "autoRestart": { + "type": "object", "properties": { - "defaultMode": { - "type": "integer" + "enabled": { + "type": "boolean", + "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled." }, - "items": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "mode": { - "type": "integer" - }, - "path": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" + "maxRestarts": { + "type": "integer", + "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts." } }, - "type": "object", + "description": "Automatic restart of connector and tasks configuration.", "additionalProperties": false + } + }, + "description": "The specification of the Kafka MirrorMaker 2 heartbeat connector.", + "additionalProperties": false + }, + "checkpointConnector": { + "type": "object", + "properties": { + "tasksMax": { + "type": "integer", + "minimum": 1, + "description": "The maximum number of tasks for the Kafka Connector." }, - "name": { - "description": "Name of the volume which will be added to the Kafka Connect pods.", - "type": "string" + "pause": { + "type": "boolean", + "description": "Whether the connector should be paused. Defaults to false." }, - "secret": { - "description": "Reference to a key in a Secret. Exactly one Secret or ConfigMap has to be specified.", + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The Kafka Connector configuration. The following properties cannot be set: name, connector.class, tasks.max." + }, + "state": { + "type": "string", + "enum": [ + "paused", + "stopped", + "running" + ], + "description": "The state the connector should be in. Defaults to running." + }, + "autoRestart": { + "type": "object", "properties": { - "defaultMode": { - "type": "integer" - }, - "items": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "mode": { - "type": "integer" - }, - "path": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "optional": { - "type": "boolean" + "enabled": { + "type": "boolean", + "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled." }, - "secretName": { - "type": "string" + "maxRestarts": { + "type": "integer", + "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts." } }, - "type": "object", + "description": "Automatic restart of connector and tasks configuration.", "additionalProperties": false } }, - "required": [ - "name" - ], + "description": "The specification of the Kafka MirrorMaker 2 checkpoint connector.", + "additionalProperties": false + }, + "topicsPattern": { + "type": "string", + "description": "A regular expression matching the topics to be mirrored, for example, \"topic1\\|topic2\\|topic3\". Comma-separated lists are also supported." + }, + "topicsBlacklistPattern": { + "type": "string", + "description": "A regular expression matching the topics to exclude from mirroring. Comma-separated lists are also supported." + }, + "topicsExcludePattern": { + "type": "string", + "description": "A regular expression matching the topics to exclude from mirroring. Comma-separated lists are also supported." + }, + "groupsPattern": { + "type": "string", + "description": "A regular expression matching the consumer groups to be mirrored. Comma-separated lists are also supported." + }, + "groupsBlacklistPattern": { + "type": "string", + "description": "A regular expression matching the consumer groups to exclude from mirroring. Comma-separated lists are also supported." + }, + "groupsExcludePattern": { + "type": "string", + "description": "A regular expression matching the consumer groups to exclude from mirroring. Comma-separated lists are also supported." + } + }, + "required": [ + "sourceCluster", + "targetCluster" + ], + "additionalProperties": false + }, + "description": "Configuration of the MirrorMaker 2 connectors." + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { "type": "object", + "properties": { + "name": { + "type": "string" + } + }, "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true }, - "type": "array" + "type": "object" } }, - "type": "object", + "description": "The maximum limits for CPU and memory resources and the requested initial resources.", "additionalProperties": false }, - "image": { - "description": "The container image used for Kafka Connect pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration.", - "type": "string" - }, - "jmxOptions": { - "description": "JMX Options.", + "livenessProbe": { + "type": "object", "properties": { - "authentication": { - "description": "Authentication configuration for connecting to the JMX port.", - "properties": { - "type": { - "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS.", - "enum": [ - "password" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, + "description": "Pod liveness checking.", + "additionalProperties": false + }, + "readinessProbe": { "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", "additionalProperties": false }, "jvmOptions": { - "description": "JVM Options for pods.", + "type": "object", "properties": { "-XX": { "additionalProperties": { "type": "string" }, - "description": "A map of -XX options to the JVM.", - "type": "object" + "type": "object", + "description": "A map of -XX options to the JVM." }, - "-Xms": { - "description": "-Xms option to to the JVM.", + "-Xmx": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xmx option to to the JVM." }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", + "-Xms": { + "type": "string", "pattern": "^[0-9]+[mMgG]?$", - "type": "string" + "description": "-Xms option to to the JVM." }, "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." }, "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The system property name.", - "type": "string" + "type": "string", + "description": "The system property name." }, "value": { - "description": "The system property value.", - "type": "string" + "type": "string", + "description": "The system property value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." } }, - "type": "object", + "description": "JVM Options for pods.", "additionalProperties": false }, - "livenessProbe": { - "description": "Pod liveness checking.", + "jmxOptions": { + "type": "object", "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" + "authentication": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "password" + ], + "description": "Authentication type. Currently the only supported types are `password`.`password` type creates a username and protected port with no TLS." + } + }, + "required": [ + "type" + ], + "description": "Authentication configuration for connecting to the JMX port.", + "additionalProperties": false } }, - "type": "object", + "description": "JMX Options.", "additionalProperties": false }, "logging": { - "description": "Logging configuration for Kafka Connect.", + "type": "object", "properties": { "loggers": { "additionalProperties": { "type": "string" }, - "description": "A Map from logger name to logger level.", - "type": "object" + "type": "object", + "description": "A Map from logger name to logger level." }, "type": { - "description": "Logging type, must be either 'inline' or 'external'.", + "type": "string", "enum": [ "inline", "external" ], - "type": "string" + "description": "Logging type, must be either 'inline' or 'external'." }, "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", + "type": "object", "properties": { "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "type": "object", "properties": { "key": { "type": "string" @@ -567,35 +727,54 @@ "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "`ConfigMap` entry where the logging configuration is stored. ", "additionalProperties": false } }, "required": [ "type" ], - "type": "object", + "description": "Logging configuration for Kafka Connect.", "additionalProperties": false }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { + "clientRackInitImage": { + "type": "string", + "description": "The image of the init container used for initializing the `client.rack`." + }, + "rack": { + "type": "object", + "properties": { + "topologyKey": { + "type": "string", + "example": "topology.kubernetes.io/zone", + "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2." + } + }, + "required": [ + "topologyKey" + ], + "description": "Configuration of the node label which will be used as the `client.rack` consumer configuration.", + "additionalProperties": false + }, + "metricsConfig": { + "type": "object", + "properties": { "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", + "type": "string", "enum": [ "jmxPrometheusExporter" ], - "type": "string" + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." }, "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", + "type": "object", "properties": { "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "type": "object", "properties": { "key": { "type": "string" @@ -607,11 +786,11 @@ "type": "boolean" } }, - "type": "object", + "description": "Reference to the key in the ConfigMap containing the configuration.", "additionalProperties": false } }, - "type": "object", + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", "additionalProperties": false } }, @@ -619,427 +798,152 @@ "type", "valueFrom" ], - "type": "object", + "description": "Metrics configuration.", "additionalProperties": false }, - "mirrors": { - "description": "Configuration of the MirrorMaker 2 connectors.", - "items": { - "properties": { - "checkpointConnector": { - "description": "The specification of the Kafka MirrorMaker 2 checkpoint connector.", - "properties": { - "autoRestart": { - "description": "Automatic restart of connector and tasks configuration.", - "properties": { - "enabled": { - "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled.", - "type": "boolean" - }, - "maxRestarts": { - "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts.", - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "config": { - "description": "The Kafka Connector configuration. The following properties cannot be set: connector.class, tasks.max.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "pause": { - "description": "Whether the connector should be paused. Defaults to false.", - "type": "boolean" - }, - "state": { - "description": "The state the connector should be in. Defaults to running.", - "enum": [ - "paused", - "stopped", - "running" - ], - "type": "string" - }, - "tasksMax": { - "description": "The maximum number of tasks for the Kafka Connector.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "groupsBlacklistPattern": { - "description": "A regular expression matching the consumer groups to exclude from mirroring. Comma-separated lists are also supported.", - "type": "string" - }, - "groupsExcludePattern": { - "description": "A regular expression matching the consumer groups to exclude from mirroring. Comma-separated lists are also supported.", - "type": "string" - }, - "groupsPattern": { - "description": "A regular expression matching the consumer groups to be mirrored. Comma-separated lists are also supported.", - "type": "string" - }, - "heartbeatConnector": { - "description": "The specification of the Kafka MirrorMaker 2 heartbeat connector.", - "properties": { - "autoRestart": { - "description": "Automatic restart of connector and tasks configuration.", - "properties": { - "enabled": { - "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled.", - "type": "boolean" - }, - "maxRestarts": { - "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts.", - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "config": { - "description": "The Kafka Connector configuration. The following properties cannot be set: connector.class, tasks.max.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "pause": { - "description": "Whether the connector should be paused. Defaults to false.", - "type": "boolean" - }, - "state": { - "description": "The state the connector should be in. Defaults to running.", - "enum": [ - "paused", - "stopped", - "running" - ], - "type": "string" - }, - "tasksMax": { - "description": "The maximum number of tasks for the Kafka Connector.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "sourceCluster": { - "description": "The alias of the source cluster used by the Kafka MirrorMaker 2 connectors. The alias must match a cluster in the list at `spec.clusters`.", - "type": "string" - }, - "sourceConnector": { - "description": "The specification of the Kafka MirrorMaker 2 source connector.", - "properties": { - "autoRestart": { - "description": "Automatic restart of connector and tasks configuration.", - "properties": { - "enabled": { - "description": "Whether automatic restart for failed connectors and tasks should be enabled or disabled.", - "type": "boolean" - }, - "maxRestarts": { - "description": "The maximum number of connector restarts that the operator will try. If the connector remains in a failed state after reaching this limit, it must be restarted manually by the user. Defaults to an unlimited number of restarts.", - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "config": { - "description": "The Kafka Connector configuration. The following properties cannot be set: connector.class, tasks.max.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "pause": { - "description": "Whether the connector should be paused. Defaults to false.", - "type": "boolean" - }, - "state": { - "description": "The state the connector should be in. Defaults to running.", - "enum": [ - "paused", - "stopped", - "running" - ], - "type": "string" - }, - "tasksMax": { - "description": "The maximum number of tasks for the Kafka Connector.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "targetCluster": { - "description": "The alias of the target cluster used by the Kafka MirrorMaker 2 connectors. The alias must match a cluster in the list at `spec.clusters`.", - "type": "string" - }, - "topicsBlacklistPattern": { - "description": "A regular expression matching the topics to exclude from mirroring. Comma-separated lists are also supported.", - "type": "string" - }, - "topicsExcludePattern": { - "description": "A regular expression matching the topics to exclude from mirroring. Comma-separated lists are also supported.", - "type": "string" - }, - "topicsPattern": { - "description": "A regular expression matching the topics to be mirrored, for example, \"topic1\\|topic2\\|topic3\". Comma-separated lists are also supported.", - "type": "string" - } - }, - "required": [ - "sourceCluster", - "targetCluster" - ], - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "rack": { - "description": "Configuration of the node label which will be used as the `client.rack` consumer configuration.", + "tracing": { + "type": "object", "properties": { - "topologyKey": { - "description": "A key that matches labels assigned to the Kubernetes cluster nodes. The value of the label is used to set a broker's `broker.rack` config, and the `client.rack` config for Kafka Connect or MirrorMaker 2.", - "example": "topology.kubernetes.io/zone", - "type": "string" + "type": { + "type": "string", + "enum": [ + "jaeger", + "opentelemetry" + ], + "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored." } }, "required": [ - "topologyKey" + "type" ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", - "additionalProperties": false - }, - "replicas": { - "description": "The number of pods in the Kafka Connect group. Defaults to `3`.", - "type": "integer" - }, - "resources": { - "description": "The maximum limits for CPU and memory resources and the requested initial resources.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", + "description": "The configuration of tracing in Kafka Connect.", "additionalProperties": false }, "template": { - "description": "Template for Kafka Connect and Kafka Mirror Maker 2 resources. The template allows users to specify how the `Pods`, `Service`, and other services are generated.", + "type": "object", "properties": { - "apiService": { - "description": "Template for Kafka Connect API `Service`.", + "deployment": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." } }, - "type": "object", + "description": "Template for Kafka Connect `Deployment`.", "additionalProperties": false }, - "buildConfig": { - "description": "Template for the Kafka Connect BuildConfig used to build new container images. The BuildConfig is used only on OpenShift.", + "podSet": { + "type": "object", "properties": { "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false - }, - "pullSecret": { - "description": "Container Registry Secret with the credentials for pulling the base image.", - "type": "string" } }, - "type": "object", + "description": "Template for Kafka Connect `StrimziPodSet` resource.", "additionalProperties": false }, - "buildContainer": { - "description": "Template for the Kafka Connect Build container. The build container is used only on Kubernetes.", + "pod": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -1050,6 +954,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -1064,10 +969,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -1076,10 +981,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -1092,34 +1018,37 @@ }, "runAsUserName": { "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "buildPod": { - "description": "Template for Kafka Connect Build `Pods`. The build pod is used only on Kubernetes.", - "properties": { + } + }, + "additionalProperties": false + } + }, + "description": "Configures pod-level security attributes and common container settings.", + "additionalProperties": false + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1128,19 +1057,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1149,37 +1078,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1188,19 +1117,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1209,42 +1138,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1253,16 +1183,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1271,25 +1199,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1298,16 +1228,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1316,38 +1244,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1356,16 +1285,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1374,25 +1301,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1401,16 +1330,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1419,39 +1346,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1460,16 +1390,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1478,25 +1406,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1505,16 +1435,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1523,38 +1451,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1563,16 +1492,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1581,25 +1508,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1608,16 +1537,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1626,201 +1553,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" + } + }, + "topologyKey": { + "type": "string" + } + }, + "additionalProperties": false } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -1838,19 +1596,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1859,16 +1620,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1877,142 +1636,359 @@ "type": "object" } }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { + "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Kafka Connect `Pods`.", + "additionalProperties": false + }, + "apiService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + } + }, + "description": "Template for Kafka Connect API `Service`.", + "additionalProperties": false + }, + "headlessService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ], + "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type." + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + }, + "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting." + } + }, + "description": "Template for Kafka Connect headless `Service`.", + "additionalProperties": false + }, + "connectContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { "type": "string" }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" + "user": { + "type": "string" + } }, - "whenUnsatisfiable": { - "type": "string" - } + "additionalProperties": false }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "buildServiceAccount": { - "description": "Template for the Kafka Connect Build service account.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka Connect container.", "additionalProperties": false }, - "clusterRoleBinding": { - "description": "Template for the Kafka Connect ClusterRoleBinding.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, + "initContainer": { "type": "object", - "additionalProperties": false - }, - "connectContainer": { - "description": "Template for the Kafka Connect container.", "properties": { "env": { - "description": "Environment variables which should be applied to the container.", + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" + "type": "string", + "description": "The environment variable key." }, "value": { - "description": "The environment variable value.", - "type": "string" + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, "capabilities": { + "type": "object", "properties": { "add": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "drop": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "privileged": { @@ -2034,6 +2010,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -2048,10 +2025,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -2060,10 +2037,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -2078,155 +2055,163 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka init container.", "additionalProperties": false }, - "deployment": { - "description": "Template for Kafka Connect `Deployment`.", + "podDisruptionBudget": { + "type": "object", "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." } }, - "type": "object", + "description": "Template for Kafka Connect `PodDisruptionBudget`.", "additionalProperties": false }, - "headlessService": { - "description": "Template for Kafka Connect headless `Service`.", + "serviceAccount": { + "type": "object", "properties": { - "ipFamilies": { - "description": "Specifies the IP Families used by the service. Available options are `IPv4` and `IPv6`. If unspecified, Kubernetes will choose the default value based on the `ipFamilyPolicy` setting.", - "items": { - "enum": [ - "IPv4", - "IPv6" - ], - "type": "string" - }, - "type": "array" - }, - "ipFamilyPolicy": { - "description": "Specifies the IP Family Policy used by the service. Available options are `SingleStack`, `PreferDualStack` and `RequireDualStack`. `SingleStack` is for a single IP family. `PreferDualStack` is for two IP families on dual-stack configured clusters or a single IP family on single-stack clusters. `RequireDualStack` fails unless there are two IP families on dual-stack configured clusters. If unspecified, Kubernetes will choose the default value based on the service type.", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ], - "type": "string" - }, "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, + "description": "Template for the Kafka Connect service account.", + "additionalProperties": false + }, + "clusterRoleBinding": { "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka Connect ClusterRoleBinding.", "additionalProperties": false }, - "initContainer": { - "description": "Template for the Kafka init container.", + "buildPod": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -2237,6 +2222,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -2251,10 +2237,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -2263,10 +2249,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -2281,60 +2288,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "jmxSecret": { - "description": "Template for Secret of the Kafka Connect Cluster JMX authentication.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka Connect `Pods`.", - "properties": { + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2343,19 +2325,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2364,37 +2346,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2403,19 +2385,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2424,42 +2406,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2468,16 +2451,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2486,25 +2467,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2513,16 +2496,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2531,38 +2512,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2571,16 +2553,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2589,25 +2569,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2616,16 +2598,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2634,39 +2614,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2675,16 +2658,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2693,25 +2674,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2720,16 +2703,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2738,38 +2719,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2778,16 +2760,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2796,25 +2776,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -2823,16 +2805,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -2841,106 +2821,226 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + "description": "The pod's affinity rules.", + "additionalProperties": false + }, + "tolerations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "effect": { + "type": "string" + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's tolerations." + }, + "topologySpreadConstraints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } }, - "type": "array" + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" } }, - "type": "object", - "additionalProperties": false - } + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { + "type": "string" + } + }, + "additionalProperties": false }, - "type": "object", - "additionalProperties": false + "description": "The pod's topology spread constraints." }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." }, "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "type": "array", "items": { + "type": "object", "properties": { "hostnames": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "ip": { "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Kafka Connect Build `Pods`. The build pod is used only on Kubernetes.", + "additionalProperties": false + }, + "buildContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "type": "string" + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "metadata": { - "description": "Metadata applied to the resource.", + "securityContext": { + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" + "additionalProperties": false }, - "fsGroupChangePolicy": { + "privileged": { + "type": "boolean" + }, + "procMount": { "type": "string" }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, "runAsGroup": { "type": "integer" }, @@ -2951,6 +3051,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -2965,10 +3066,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -2977,31 +3078,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -3016,346 +3096,368 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", - "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" } }, - "type": "object", + "description": "Template for the Kafka Connect Build container. The build container is used only on Kubernetes.", "additionalProperties": false }, - "podDisruptionBudget": { - "description": "Template for Kafka Connect `PodDisruptionBudget`.", + "buildConfig": { + "type": "object", "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "pullSecret": { + "type": "string", + "description": "Container Registry Secret with the credentials for pulling the base image." } }, - "type": "object", + "description": "Template for the Kafka Connect BuildConfig used to build new container images. The BuildConfig is used only on OpenShift.", "additionalProperties": false }, - "podSet": { - "description": "Template for Kafka Connect `StrimziPodSet` resource.", + "buildServiceAccount": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka Connect Build service account.", "additionalProperties": false }, - "serviceAccount": { - "description": "Template for the Kafka Connect service account.", + "jmxSecret": { + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for Secret of the Kafka Connect Cluster JMX authentication.", "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka Connect and Kafka Mirror Maker 2 resources. The template allows users to specify how the `Pods`, `Service`, and other services are generated.", "additionalProperties": false }, - "tracing": { - "description": "The configuration of tracing in Kafka Connect.", + "externalConfiguration": { + "type": "object", "properties": { - "type": { - "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored.", - "enum": [ - "jaeger", - "opentelemetry" - ], - "type": "string" + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment variable which will be passed to the Kafka Connect pods. The name of the environment variable cannot start with `KAFKA_` or `STRIMZI_`." + }, + "valueFrom": { + "type": "object", + "properties": { + "secretKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a Secret.", + "additionalProperties": false + }, + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a ConfigMap.", + "additionalProperties": false + } + }, + "description": "Value of the environment variable which will be passed to the Kafka Connect pods. It can be passed either as a reference to Secret or ConfigMap field. The field has to specify exactly one Secret or ConfigMap.", + "additionalProperties": false + } + }, + "required": [ + "name", + "valueFrom" + ], + "additionalProperties": false + }, + "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as environment variables." + }, + "volumes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the volume which will be added to the Kafka Connect pods." + }, + "secret": { + "type": "object", + "properties": { + "defaultMode": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "mode": { + "type": "integer" + }, + "path": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "optional": { + "type": "boolean" + }, + "secretName": { + "type": "string" + } + }, + "description": "Reference to a key in a Secret. Exactly one Secret or ConfigMap has to be specified.", + "additionalProperties": false + }, + "configMap": { + "type": "object", + "properties": { + "defaultMode": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "mode": { + "type": "integer" + }, + "path": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to a key in a ConfigMap. Exactly one Secret or ConfigMap has to be specified.", + "additionalProperties": false + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "description": "Makes data from a Secret or ConfigMap available in the Kafka Connect pods as volumes." } }, - "required": [ - "type" - ], - "type": "object", + "description": "Pass data from Secrets or ConfigMaps to the Kafka Connect pods and use them to configure connectors.", "additionalProperties": false - }, - "version": { - "description": "The Kafka Connect version. Defaults to the latest version. Consult the user documentation to understand the process required to upgrade or downgrade the version.", - "type": "string" } }, "required": [ "connectCluster" ], - "type": "object", + "description": "The specification of the Kafka MirrorMaker 2 cluster.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka MirrorMaker 2 cluster.", + "type": "object", "properties": { - "autoRestartStatuses": { - "description": "List of MirrorMaker 2 connector auto restart statuses.", + "conditions": { + "type": "array", "items": { + "type": "object", "properties": { - "connectorName": { - "description": "The name of the connector being restarted.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "count": { - "description": "The number of times the connector or task is restarted.", - "type": "integer" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "lastRestartTimestamp": { - "description": "The last time the automatic restart was attempted. The required format is 'yyyy-MM-ddTHH:mm:ssZ' in the UTC time zone.", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." + }, + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." + }, + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, - "conditions": { - "description": "List of status conditions.", + "observedGeneration": { + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "url": { + "type": "string", + "description": "The URL of the REST API endpoint for managing and monitoring Kafka Connect connectors." + }, + "connectors": { + "type": "array", + "items": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object" + }, + "description": "List of MirrorMaker 2 connector statuses, as reported by the Kafka Connect REST API." + }, + "autoRestartStatuses": { + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "count": { + "type": "integer", + "description": "The number of times the connector or task is restarted." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "connectorName": { + "type": "string", + "description": "The name of the connector being restarted." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "lastRestartTimestamp": { + "type": "string", + "description": "The last time the automatic restart was attempted. The required format is 'yyyy-MM-ddTHH:mm:ssZ' in the UTC time zone." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of MirrorMaker 2 connector auto restart statuses." }, "connectorPlugins": { - "description": "The list of connector plugins available in this Kafka Connect deployment.", + "type": "array", "items": { + "type": "object", "properties": { "class": { - "description": "The class of the connector plugin.", - "type": "string" + "type": "string", + "description": "The class of the connector plugin." }, "type": { - "description": "The type of the connector plugin. The available types are `sink` and `source`.", - "type": "string" + "type": "string", + "description": "The type of the connector plugin. The available types are `sink` and `source`." }, "version": { - "description": "The version of the connector plugin.", - "type": "string" + "type": "string", + "description": "The version of the connector plugin." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "connectors": { - "description": "List of MirrorMaker 2 connector statuses, as reported by the Kafka Connect REST API.", - "items": { - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "type": "array" + "description": "The list of connector plugins available in this Kafka Connect deployment." }, "labelSelector": { - "description": "Label selector for pods providing this resource.", - "type": "string" - }, - "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "string", + "description": "Label selector for pods providing this resource." }, "replicas": { - "description": "The current number of pods being used to provide this resource.", - "type": "integer" - }, - "url": { - "description": "The URL of the REST API endpoint for managing and monitoring Kafka Connect connectors.", - "type": "string" + "type": "integer", + "description": "The current number of pods being used to provide this resource." } }, - "type": "object", + "description": "The status of the Kafka MirrorMaker 2 cluster.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkamirrormaker_v1beta2.json b/kafka.strimzi.io/kafkamirrormaker_v1beta2.json index 53df6c10..a0f173bd 100644 --- a/kafka.strimzi.io/kafkamirrormaker_v1beta2.json +++ b/kafka.strimzi.io/kafkamirrormaker_v1beta2.json @@ -1,219 +1,253 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of Kafka MirrorMaker.", - "oneOf": [ - { - "properties": { - "include": {} - }, - "required": [ - "include" - ] - }, - { - "properties": { - "whitelist": {} - }, - "required": [ - "whitelist" - ] - } - ], + "type": "object", "properties": { + "version": { + "type": "string", + "description": "The Kafka MirrorMaker version. Defaults to the latest version. Consult the documentation to understand the process required to upgrade or downgrade the version." + }, + "replicas": { + "type": "integer", + "minimum": 0, + "description": "The number of pods in the `Deployment`." + }, + "image": { + "type": "string", + "description": "The container image used for Kafka MirrorMaker pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration." + }, "consumer": { - "description": "Configuration of source cluster.", + "type": "object", "properties": { + "numStreams": { + "type": "integer", + "minimum": 1, + "description": "Specifies the number of consumer stream threads to create." + }, + "offsetCommitInterval": { + "type": "integer", + "description": "Specifies the offset auto-commit interval in ms. Default value is 60000." + }, + "bootstrapServers": { + "type": "string", + "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster." + }, + "groupId": { + "type": "string", + "description": "A unique string that identifies the consumer group this consumer belongs to." + }, "authentication": { - "description": "Authentication configuration for connecting to the cluster.", + "type": "object", "properties": { "accessToken": { - "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", "additionalProperties": false }, "accessTokenIsJwt": { - "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" + "type": "boolean", + "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." }, "audience": { - "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request." }, "certificateAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair.", + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the Secret." }, "key": { - "description": "The name of the private key in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "type": "string", + "description": "The name of the private key in the Secret." } }, "required": [ - "key", "secretName", - "certificate" + "certificate", + "key" ], - "type": "object", + "description": "Reference to the `Secret` which holds the certificate and private key pair.", "additionalProperties": false }, "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." }, "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", "additionalProperties": false }, "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." }, "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." }, "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." }, "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." }, "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." }, "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." }, "maxTokenExpirySeconds": { - "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens.", - "type": "integer" + "type": "integer", + "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens." }, "passwordSecret": { - "description": "Reference to the `Secret` which holds the password.", + "type": "object", "properties": { - "password": { - "description": "The name of the key in the Secret under which the password is stored.", - "type": "string" - }, "secretName": { - "description": "The name of the Secret containing the password.", - "type": "string" + "type": "string", + "description": "The name of the Secret containing the password." + }, + "password": { + "type": "string", + "description": "The name of the key in the Secret under which the password is stored." } }, "required": [ "secretName", "password" ], - "type": "object", + "description": "Reference to the `Secret` which holds the password.", "additionalProperties": false }, "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." }, "refreshToken": { - "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", "additionalProperties": false }, "scope": { - "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request." }, "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection to the OAuth server." }, "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" + "type": "string", + "description": "Authorization server token endpoint URI." }, "type": { - "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections.", + "type": "string", "enum": [ "tls", "scram-sha-256", @@ -221,439 +255,293 @@ "plain", "oauth" ], - "type": "string" + "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections." }, "username": { - "description": "Username used for the authentication.", - "type": "string" + "type": "string", + "description": "Username used for the authentication." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication configuration for connecting to the cluster.", "additionalProperties": false }, - "bootstrapServers": { - "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster.", - "type": "string" - }, - "config": { - "description": "The MirrorMaker consumer config. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, group.id, sasl., security., interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "groupId": { - "description": "A unique string that identifies the consumer group this consumer belongs to.", - "type": "string" - }, - "numStreams": { - "description": "Specifies the number of consumer stream threads to create.", - "minimum": 1, - "type": "integer" - }, - "offsetCommitInterval": { - "description": "Specifies the offset auto-commit interval in ms. Default value is 60000.", - "type": "integer" - }, "tls": { - "description": "TLS configuration for connecting MirrorMaker to the cluster.", + "type": "object", "properties": { "trustedCertificates": { - "description": "Trusted certificates for TLS connection.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection." } }, - "type": "object", + "description": "TLS configuration for connecting MirrorMaker to the cluster.", "additionalProperties": false + }, + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The MirrorMaker consumer config. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, group.id, sasl., security., interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." } }, "required": [ "bootstrapServers", "groupId" ], - "type": "object", - "additionalProperties": false - }, - "image": { - "description": "The container image used for Kafka MirrorMaker pods. If no image name is explicitly specified, it is determined based on the `spec.version` configuration. The image names are specifically mapped to corresponding versions in the Cluster Operator configuration.", - "type": "string" - }, - "include": { - "description": "List of topics which are included for mirroring. This option allows any regular expression using Java-style regular expressions. Mirroring two topics named A and B is achieved by using the expression `A\\|B`. Or, as a special case, you can mirror all topics using the regular expression `*`. You can also specify multiple regular expressions separated by commas.", - "type": "string" - }, - "jvmOptions": { - "description": "JVM Options for pods.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" - }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { - "properties": { - "name": { - "description": "The system property name.", - "type": "string" - }, - "value": { - "description": "The system property value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", + "description": "Configuration of source cluster.", "additionalProperties": false }, - "livenessProbe": { - "description": "Pod liveness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, + "producer": { "type": "object", - "additionalProperties": false - }, - "logging": { - "description": "Logging configuration for MirrorMaker.", "properties": { - "loggers": { - "additionalProperties": { - "type": "string" - }, - "description": "A Map from logger name to logger level.", - "type": "object" + "bootstrapServers": { + "type": "string", + "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster." }, - "type": { - "description": "Logging type, must be either 'inline' or 'external'.", - "enum": [ - "inline", - "external" - ], - "type": "string" + "abortOnSendFailure": { + "type": "boolean", + "description": "Flag to set the MirrorMaker to exit on a failed send. Default value is `true`." }, - "valueFrom": { - "description": "`ConfigMap` entry where the logging configuration is stored. ", + "authentication": { + "type": "object", "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", + "accessToken": { + "type": "object", "properties": { "key": { - "type": "string" - }, - "name": { - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, - "optional": { - "type": "boolean" + "secretName": { + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, + "required": [ + "key", + "secretName" + ], + "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", + "additionalProperties": false + }, + "accessTokenIsJwt": { + "type": "boolean", + "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`." + }, + "audience": { + "type": "string", + "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request." + }, + "certificateAndKey": { "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "metricsConfig": { - "description": "Metrics configuration.", - "properties": { - "type": { - "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently.", - "enum": [ - "jmxPrometheusExporter" - ], - "type": "string" - }, - "valueFrom": { - "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", - "properties": { - "configMapKeyRef": { - "description": "Reference to the key in the ConfigMap containing the configuration.", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "optional": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "type", - "valueFrom" - ], - "type": "object", - "additionalProperties": false - }, - "producer": { - "description": "Configuration of target cluster.", - "properties": { - "abortOnSendFailure": { - "description": "Flag to set the MirrorMaker to exit on a failed send. Default value is `true`.", - "type": "boolean" - }, - "authentication": { - "description": "Authentication configuration for connecting to the cluster.", - "properties": { - "accessToken": { - "description": "Link to Kubernetes Secret containing the access token which was obtained from the authorization server.", - "properties": { - "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" - } - }, - "required": [ - "key", - "secretName" - ], - "type": "object", - "additionalProperties": false - }, - "accessTokenIsJwt": { - "description": "Configure whether access token should be treated as JWT. This should be set to `false` if the authorization server returns opaque tokens. Defaults to `true`.", - "type": "boolean" - }, - "audience": { - "description": "OAuth audience to use when authenticating against the authorization server. Some authorization servers require the audience to be explicitly set. The possible values depend on how the authorization server is configured. By default, `audience` is not specified when performing the token endpoint request.", - "type": "string" - }, - "certificateAndKey": { - "description": "Reference to the `Secret` which holds the certificate and private key pair.", - "properties": { - "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" - }, - "key": { - "description": "The name of the private key in the Secret.", - "type": "string" - }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" - } - }, - "required": [ - "key", - "secretName", - "certificate" - ], - "type": "object", + "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, + "certificate": { + "type": "string", + "description": "The name of the file certificate in the Secret." + }, + "key": { + "type": "string", + "description": "The name of the private key in the Secret." + } + }, + "required": [ + "secretName", + "certificate", + "key" + ], + "description": "Reference to the `Secret` which holds the certificate and private key pair.", "additionalProperties": false }, "clientId": { - "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", - "type": "string" + "type": "string", + "description": "OAuth Client ID which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI." }, "clientSecret": { - "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the OAuth client secret which the Kafka client can use to authenticate against the OAuth server and use the token endpoint URI.", "additionalProperties": false }, "connectTimeoutSeconds": { - "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The connect timeout in seconds when connecting to authorization server. If not set, the effective connect timeout is 60 seconds." }, "disableTlsHostnameVerification": { - "description": "Enable or disable TLS hostname verification. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable TLS hostname verification. Default value is `false`." }, "enableMetrics": { - "description": "Enable or disable OAuth metrics. Default value is `false`.", - "type": "boolean" + "type": "boolean", + "description": "Enable or disable OAuth metrics. Default value is `false`." }, "httpRetries": { - "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries.", - "type": "integer" + "type": "integer", + "description": "The maximum number of retries to attempt if an initial HTTP request fails. If not set, the default is to not attempt any retries." }, "httpRetryPauseMs": { - "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request.", - "type": "integer" + "type": "integer", + "description": "The pause to take before retrying a failed HTTP request. If not set, the default is to not pause at all but to immediately repeat a request." }, "includeAcceptHeader": { - "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "Whether the Accept header should be set in requests to the authorization servers. The default value is `true`." }, "maxTokenExpirySeconds": { - "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens.", - "type": "integer" + "type": "integer", + "description": "Set or limit time-to-live of the access tokens to the specified number of seconds. This should be set if the authorization server returns opaque tokens." }, "passwordSecret": { - "description": "Reference to the `Secret` which holds the password.", + "type": "object", "properties": { - "password": { - "description": "The name of the key in the Secret under which the password is stored.", - "type": "string" - }, "secretName": { - "description": "The name of the Secret containing the password.", - "type": "string" + "type": "string", + "description": "The name of the Secret containing the password." + }, + "password": { + "type": "string", + "description": "The name of the key in the Secret under which the password is stored." } }, "required": [ "secretName", "password" ], - "type": "object", + "description": "Reference to the `Secret` which holds the password.", "additionalProperties": false }, "readTimeoutSeconds": { - "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds.", - "type": "integer" + "type": "integer", + "description": "The read timeout in seconds when connecting to authorization server. If not set, the effective read timeout is 60 seconds." }, "refreshToken": { - "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", + "type": "object", "properties": { "key": { - "description": "The key under which the secret value is stored in the Kubernetes Secret.", - "type": "string" + "type": "string", + "description": "The key under which the secret value is stored in the Kubernetes Secret." }, "secretName": { - "description": "The name of the Kubernetes Secret containing the secret value.", - "type": "string" + "type": "string", + "description": "The name of the Kubernetes Secret containing the secret value." } }, "required": [ "key", "secretName" ], - "type": "object", + "description": "Link to Kubernetes Secret containing the refresh token which can be used to obtain access token from the authorization server.", "additionalProperties": false }, "scope": { - "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request.", - "type": "string" + "type": "string", + "description": "OAuth scope to use when authenticating against the authorization server. Some authorization servers require this to be set. The possible values depend on how authorization server is configured. By default `scope` is not specified when doing the token endpoint request." }, "tlsTrustedCertificates": { - "description": "Trusted certificates for TLS connection to the OAuth server.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection to the OAuth server." }, "tokenEndpointUri": { - "description": "Authorization server token endpoint URI.", - "type": "string" + "type": "string", + "description": "Authorization server token endpoint URI." }, "type": { - "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections.", + "type": "string", "enum": [ "tls", "scram-sha-256", @@ -661,115 +549,95 @@ "plain", "oauth" ], - "type": "string" + "description": "Authentication type. Currently the supported types are `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, and 'oauth'. `scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256 and SASL SCRAM-SHA-512 Authentication, respectively. `plain` type uses SASL PLAIN Authentication. `oauth` type uses SASL OAUTHBEARER Authentication. The `tls` type uses TLS Client Authentication. The `tls` type is supported only over TLS connections." }, "username": { - "description": "Username used for the authentication.", - "type": "string" + "type": "string", + "description": "Username used for the authentication." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication configuration for connecting to the cluster.", "additionalProperties": false }, - "bootstrapServers": { - "description": "A list of host:port pairs for establishing the initial connection to the Kafka cluster.", - "type": "string" - }, "config": { - "description": "The MirrorMaker producer config. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, sasl., security., interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols).", + "x-kubernetes-preserve-unknown-fields": true, "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "description": "The MirrorMaker producer config. Properties with the following prefixes cannot be set: ssl., bootstrap.servers, sasl., security., interceptor.classes (with the exception of: ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols)." }, "tls": { - "description": "TLS configuration for connecting MirrorMaker to the cluster.", + "type": "object", "properties": { "trustedCertificates": { - "description": "Trusted certificates for TLS connection.", + "type": "array", "items": { + "type": "object", "properties": { + "secretName": { + "type": "string", + "description": "The name of the Secret containing the certificate." + }, "certificate": { - "description": "The name of the file certificate in the Secret.", - "type": "string" + "type": "string", + "description": "The name of the file certificate in the secret." }, - "secretName": { - "description": "The name of the Secret containing the certificate.", - "type": "string" + "pattern": { + "type": "string", + "description": "Pattern for the certificate files in the secret. Use the link:https://en.wikipedia.org/wiki/Glob_(programming)[_glob syntax_] for the pattern. All files in the secret that match the pattern are used." } }, + "oneOf": [ + { + "properties": { + "certificate": {} + }, + "required": [ + "certificate" + ] + }, + { + "properties": { + "pattern": {} + }, + "required": [ + "pattern" + ] + } + ], "required": [ - "secretName", - "certificate" + "secretName" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Trusted certificates for TLS connection." } }, - "type": "object", + "description": "TLS configuration for connecting MirrorMaker to the cluster.", "additionalProperties": false } }, "required": [ "bootstrapServers" ], - "type": "object", - "additionalProperties": false - }, - "readinessProbe": { - "description": "Pod readiness checking.", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "initialDelaySeconds": { - "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0.", - "minimum": 0, - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "minimum": 1, - "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. Minimum value is 1.", - "minimum": 1, - "type": "integer" - }, - "timeoutSeconds": { - "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1.", - "minimum": 1, - "type": "integer" - } - }, - "type": "object", + "description": "Configuration of target cluster.", "additionalProperties": false }, - "replicas": { - "description": "The number of pods in the `Deployment`.", - "minimum": 0, - "type": "integer" - }, "resources": { - "description": "CPU and memory resources to reserve.", + "type": "object", "properties": { "claims": { + "type": "array", "items": { + "type": "object", "properties": { "name": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "limits": { "additionalProperties": { @@ -802,102 +670,267 @@ "type": "object" } }, - "type": "object", + "description": "CPU and memory resources to reserve.", "additionalProperties": false }, - "template": { - "description": "Template to specify how Kafka MirrorMaker resources, `Deployments` and `Pods`, are generated.", + "whitelist": { + "type": "string", + "description": "List of topics which are included for mirroring. This option allows any regular expression using Java-style regular expressions. Mirroring two topics named A and B is achieved by using the expression `A\\|B`. Or, as a special case, you can mirror all topics using the regular expression `*`. You can also specify multiple regular expressions separated by commas." + }, + "include": { + "type": "string", + "description": "List of topics which are included for mirroring. This option allows any regular expression using Java-style regular expressions. Mirroring two topics named A and B is achieved by using the expression `A\\|B`. Or, as a special case, you can mirror all topics using the regular expression `*`. You can also specify multiple regular expressions separated by commas." + }, + "jvmOptions": { + "type": "object", "properties": { - "deployment": { - "description": "Template for Kafka MirrorMaker `Deployment`.", - "properties": { - "deploymentStrategy": { - "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`.", - "enum": [ - "RollingUpdate", - "Recreate" - ], - "type": "string" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } + "-XX": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false + "description": "A map of -XX options to the JVM." }, - "mirrorMakerContainer": { - "description": "Template for Kafka MirrorMaker container.", - "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." }, - "type": "array" + "value": { + "type": "string", + "description": "The system property value." + } }, - "securityContext": { - "description": "Security context for the container.", - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "additionalProperties": false + }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for pods.", + "additionalProperties": false + }, + "logging": { + "type": "object", + "properties": { + "loggers": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A Map from logger name to logger level." + }, + "type": { + "type": "string", + "enum": [ + "inline", + "external" + ], + "description": "Logging type, must be either 'inline' or 'external'." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false + } + }, + "description": "`ConfigMap` entry where the logging configuration is stored. ", + "additionalProperties": false + } + }, + "required": [ + "type" + ], + "description": "Logging configuration for MirrorMaker.", + "additionalProperties": false + }, + "metricsConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "jmxPrometheusExporter" + ], + "description": "Metrics type. Only 'jmxPrometheusExporter' supported currently." + }, + "valueFrom": { + "type": "object", + "properties": { + "configMapKeyRef": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "optional": { + "type": "boolean" + } + }, + "description": "Reference to the key in the ConfigMap containing the configuration.", + "additionalProperties": false + } + }, + "description": "ConfigMap entry where the Prometheus JMX Exporter configuration is stored. ", + "additionalProperties": false + } + }, + "required": [ + "type", + "valueFrom" + ], + "description": "Metrics configuration.", + "additionalProperties": false + }, + "tracing": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "jaeger", + "opentelemetry" + ], + "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored." + } + }, + "required": [ + "type" + ], + "description": "The configuration of tracing in Kafka MirrorMaker.", + "additionalProperties": false + }, + "template": { + "type": "object", + "properties": { + "deployment": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "deploymentStrategy": { + "type": "string", + "enum": [ + "RollingUpdate", + "Recreate" + ], + "description": "Pod replacement strategy for deployment configuration changes. Valid values are `RollingUpdate` and `Recreate`. Defaults to `RollingUpdate`." + } + }, + "description": "Template for Kafka MirrorMaker `Deployment`.", + "additionalProperties": false + }, + "pod": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." + }, + "securityContext": { + "type": "object", + "properties": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -908,6 +941,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -922,10 +956,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -934,10 +968,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -952,32 +1007,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka MirrorMaker `Pods`.", - "properties": { + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, "affinity": { - "description": "The pod's affinity rules.", + "type": "object", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -986,19 +1044,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1007,37 +1065,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1046,19 +1104,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1067,42 +1125,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1111,16 +1170,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1129,25 +1186,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1156,16 +1215,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1174,38 +1231,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1214,16 +1272,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1232,25 +1288,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1259,16 +1317,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1277,39 +1333,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1318,16 +1377,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1336,25 +1393,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1363,16 +1422,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1381,38 +1438,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1421,16 +1479,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1439,25 +1495,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1466,16 +1524,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1484,201 +1540,32 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" - }, - "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", - "items": { - "properties": { - "hostnames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, "tolerations": { - "description": "The pod's tolerations.", + "type": "array", "items": { + "type": "object", "properties": { "effect": { "type": "string" @@ -1696,19 +1583,22 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "The pod's tolerations." }, "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1717,16 +1607,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1735,14 +1623,13 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "maxSkew": { "type": "integer" @@ -1763,164 +1650,385 @@ "type": "string" } }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." + }, + "hostAliases": { + "type": "array", + "items": { "type": "object", + "properties": { + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "type": "string" + } + }, "additionalProperties": false }, - "type": "array" + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." } }, - "type": "object", + "description": "Template for Kafka MirrorMaker `Pods`.", "additionalProperties": false }, "podDisruptionBudget": { - "description": "Template for Kafka MirrorMaker `PodDisruptionBudget`.", + "type": "object", "properties": { - "maxUnavailable": { - "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1.", - "minimum": 0, - "type": "integer" - }, "metadata": { - "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata to apply to the `PodDisruptionBudgetTemplate` resource.", "additionalProperties": false + }, + "maxUnavailable": { + "type": "integer", + "minimum": 0, + "description": "Maximum number of unavailable pods to allow automatic Pod eviction. A Pod eviction is allowed when the `maxUnavailable` number of pods or fewer are unavailable after the eviction. Setting this value to 0 prevents all voluntary evictions, so the pods must be evicted manually. Defaults to 1." } }, + "description": "Template for Kafka MirrorMaker `PodDisruptionBudget`.", + "additionalProperties": false + }, + "mirrorMakerContainer": { "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, + "additionalProperties": false + }, + "description": "Environment variables which should be applied to the container." + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } + }, + "description": "Template for Kafka MirrorMaker container.", "additionalProperties": false }, "serviceAccount": { - "description": "Template for the Kafka MirrorMaker service account.", + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka MirrorMaker service account.", "additionalProperties": false } }, - "type": "object", + "description": "Template to specify how Kafka MirrorMaker resources, `Deployments` and `Pods`, are generated.", "additionalProperties": false }, - "tracing": { - "description": "The configuration of tracing in Kafka MirrorMaker.", + "livenessProbe": { + "type": "object", "properties": { - "type": { - "description": "Type of the tracing used. Currently the only supported type is `opentelemetry` for OpenTelemetry tracing. As of Strimzi 0.37.0, `jaeger` type is not supported anymore and this option is ignored.", - "enum": [ - "jaeger", - "opentelemetry" - ], - "type": "string" + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } }, - "required": [ - "type" - ], - "type": "object", + "description": "Pod liveness checking.", "additionalProperties": false }, - "version": { - "description": "The Kafka MirrorMaker version. Defaults to the latest version. Consult the documentation to understand the process required to upgrade or downgrade the version.", - "type": "string" - }, - "whitelist": { - "description": "List of topics which are included for mirroring. This option allows any regular expression using Java-style regular expressions. Mirroring two topics named A and B is achieved by using the expression `A\\|B`. Or, as a special case, you can mirror all topics using the regular expression `*`. You can also specify multiple regular expressions separated by commas.", - "type": "string" + "readinessProbe": { + "type": "object", + "properties": { + "initialDelaySeconds": { + "type": "integer", + "minimum": 0, + "description": "The initial delay before first the health is first checked. Default to 15 seconds. Minimum value is 0." + }, + "timeoutSeconds": { + "type": "integer", + "minimum": 1, + "description": "The timeout for each attempted health check. Default to 5 seconds. Minimum value is 1." + }, + "periodSeconds": { + "type": "integer", + "minimum": 1, + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." + }, + "successThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1." + }, + "failureThreshold": { + "type": "integer", + "minimum": 1, + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." + } + }, + "description": "Pod readiness checking.", + "additionalProperties": false } }, + "oneOf": [ + { + "properties": { + "include": {} + }, + "required": [ + "include" + ] + }, + { + "properties": { + "whitelist": {} + }, + "required": [ + "whitelist" + ] + } + ], "required": [ "replicas", "consumer", "producer" ], - "type": "object", + "description": "The specification of Kafka MirrorMaker.", "additionalProperties": false }, "status": { - "description": "The status of Kafka MirrorMaker.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "labelSelector": { - "description": "Label selector for pods providing this resource.", - "type": "string" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "labelSelector": { + "type": "string", + "description": "Label selector for pods providing this resource." }, "replicas": { - "description": "The current number of pods being used to provide this resource.", - "type": "integer" + "type": "integer", + "description": "The current number of pods being used to provide this resource." } }, - "type": "object", + "description": "The status of Kafka MirrorMaker.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkanodepool_v1beta2.json b/kafka.strimzi.io/kafkanodepool_v1beta2.json index d0bb4b7f..699613c5 100644 --- a/kafka.strimzi.io/kafkanodepool_v1beta2.json +++ b/kafka.strimzi.io/kafkanodepool_v1beta2.json @@ -1,454 +1,368 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the KafkaNodePool.", + "type": "object", "properties": { - "jvmOptions": { - "description": "JVM Options for pods.", - "properties": { - "-XX": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of -XX options to the JVM.", - "type": "object" - }, - "-Xms": { - "description": "-Xms option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "-Xmx": { - "description": "-Xmx option to to the JVM.", - "pattern": "^[0-9]+[mMgG]?$", - "type": "string" - }, - "gcLoggingEnabled": { - "description": "Specifies whether the Garbage Collection logging is enabled. The default is false.", - "type": "boolean" - }, - "javaSystemProperties": { - "description": "A map of additional system properties which will be passed using the `-D` option to the JVM.", - "items": { - "properties": { - "name": { - "description": "The system property name.", - "type": "string" - }, - "value": { - "description": "The system property value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, "replicas": { - "description": "The number of pods in the pool.", + "type": "integer", "minimum": 0, - "type": "integer" - }, - "resources": { - "description": "CPU and memory resources to reserve.", - "properties": { - "claims": { - "items": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "roles": { - "description": "The roles that the nodes in this pool will have when KRaft mode is enabled. Supported values are 'broker' and 'controller'. This field is required. When KRaft mode is disabled, the only allowed value if `broker`.", - "items": { - "enum": [ - "controller", - "broker" - ], - "type": "string" - }, - "type": "array" + "description": "The number of pods in the pool." }, "storage": { - "description": "Storage configuration (disk). Cannot be updated.", + "type": "object", "properties": { "class": { - "description": "The storage class to use for dynamic volume allocation.", - "type": "string" + "type": "string", + "description": "The storage class to use for dynamic volume allocation." }, "deleteClaim": { - "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.", - "type": "boolean" + "type": "boolean", + "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed." }, "id": { - "description": "Storage identification number. It is mandatory only for storage volumes defined in a storage of type 'jbod'.", + "type": "integer", "minimum": 0, - "type": "integer" + "description": "Storage identification number. It is mandatory only for storage volumes defined in a storage of type 'jbod'." }, "kraftMetadata": { - "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set.", + "type": "string", "enum": [ "shared" ], - "type": "string" + "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set." }, "overrides": { - "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers.", + "type": "array", "items": { + "type": "object", "properties": { - "broker": { - "description": "Id of the kafka broker (broker identifier).", - "type": "integer" - }, "class": { - "description": "The storage class to use for dynamic volume allocation for this broker.", - "type": "string" + "type": "string", + "description": "The storage class to use for dynamic volume allocation for this broker." + }, + "broker": { + "type": "integer", + "description": "Id of the kafka broker (broker identifier)." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers." }, "selector": { "additionalProperties": { "type": "string" }, - "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.", - "type": "object" + "type": "object", + "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume." }, "size": { - "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`.", - "type": "string" + "type": "string", + "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`." }, "sizeLimit": { - "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi).", + "type": "string", "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" + "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi)." }, "type": { - "description": "Storage type, must be either 'ephemeral', 'persistent-claim', or 'jbod'.", + "type": "string", "enum": [ "ephemeral", "persistent-claim", "jbod" ], - "type": "string" + "description": "Storage type, must be either 'ephemeral', 'persistent-claim', or 'jbod'." }, "volumes": { - "description": "List of volumes as Storage objects representing the JBOD disks array.", + "type": "array", "items": { + "type": "object", "properties": { "class": { - "description": "The storage class to use for dynamic volume allocation.", - "type": "string" + "type": "string", + "description": "The storage class to use for dynamic volume allocation." }, "deleteClaim": { - "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.", - "type": "boolean" + "type": "boolean", + "description": "Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed." }, "id": { - "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration.", + "type": "integer", "minimum": 0, - "type": "integer" + "description": "Storage identification number. Mandatory for storage volumes defined with a `jbod` storage type configuration." }, "kraftMetadata": { - "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set.", + "type": "string", "enum": [ "shared" ], - "type": "string" + "description": "Specifies whether this volume should be used for storing KRaft metadata. This property is optional. When set, the only currently supported value is `shared`. At most one volume can have this property set." }, "overrides": { - "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers.", + "type": "array", "items": { + "type": "object", "properties": { - "broker": { - "description": "Id of the kafka broker (broker identifier).", - "type": "integer" - }, "class": { - "description": "The storage class to use for dynamic volume allocation for this broker.", - "type": "string" + "type": "string", + "description": "The storage class to use for dynamic volume allocation for this broker." + }, + "broker": { + "type": "integer", + "description": "Id of the kafka broker (broker identifier)." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Overrides for individual brokers. The `overrides` field allows to specify a different configuration for different brokers." }, "selector": { "additionalProperties": { "type": "string" }, - "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.", - "type": "object" + "type": "object", + "description": "Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume." }, "size": { - "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`.", - "type": "string" + "type": "string", + "description": "When `type=persistent-claim`, defines the size of the persistent volume claim, such as 100Gi. Mandatory when `type=persistent-claim`." }, "sizeLimit": { - "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi).", + "type": "string", "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" + "description": "When type=ephemeral, defines the total amount of local storage required for this EmptyDir volume (for example 1Gi)." }, "type": { - "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'.", + "type": "string", "enum": [ "ephemeral", "persistent-claim" ], - "type": "string" + "description": "Storage type, must be either 'ephemeral' or 'persistent-claim'." } }, "required": [ "type" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of volumes as Storage objects representing the JBOD disks array." } }, "required": [ "type" ], + "description": "Storage configuration (disk). Cannot be updated.", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "controller", + "broker" + ] + }, + "description": "The roles that the nodes in this pool will have when KRaft mode is enabled. Supported values are 'broker' and 'controller'. This field is required. When KRaft mode is disabled, the only allowed value if `broker`." + }, + "resources": { + "type": "object", + "properties": { + "claims": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", + "x-kubernetes-int-or-string": true + }, + "type": "object" + } + }, + "description": "CPU and memory resources to reserve.", + "additionalProperties": false + }, + "jvmOptions": { "type": "object", + "properties": { + "-XX": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "A map of -XX options to the JVM." + }, + "-Xmx": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xmx option to to the JVM." + }, + "-Xms": { + "type": "string", + "pattern": "^[0-9]+[mMgG]?$", + "description": "-Xms option to to the JVM." + }, + "gcLoggingEnabled": { + "type": "boolean", + "description": "Specifies whether the Garbage Collection logging is enabled. The default is false." + }, + "javaSystemProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The system property name." + }, + "value": { + "type": "string", + "description": "The system property value." + } + }, + "additionalProperties": false + }, + "description": "A map of additional system properties which will be passed using the `-D` option to the JVM." + } + }, + "description": "JVM Options for pods.", "additionalProperties": false }, "template": { - "description": "Template for pool resources. The template allows users to specify how the resources belonging to this pool are generated.", + "type": "object", "properties": { - "initContainer": { - "description": "Template for the Kafka init container.", + "podSet": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", - "items": { - "properties": { - "name": { - "description": "The environment variable key.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { "type": "string" }, - "value": { - "description": "The environment variable value.", - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "securityContext": { - "description": "Security context for the container.", - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } + "annotations": { + "additionalProperties": { + "type": "string" }, "type": "object", - "additionalProperties": false - }, - "privileged": { - "type": "boolean" - }, - "procMount": { - "type": "string" - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "runAsGroup": { - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "windowsOptions": { - "properties": { - "gmsaCredentialSpec": { - "type": "string" - }, - "gmsaCredentialSpecName": { - "type": "string" - }, - "hostProcess": { - "type": "boolean" - }, - "runAsUserName": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for Kafka `StrimziPodSet` resource.", "additionalProperties": false }, - "kafkaContainer": { - "description": "Template for the Kafka broker container.", + "pod": { + "type": "object", "properties": { - "env": { - "description": "Environment variables which should be applied to the container.", + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + }, + "imagePullSecrets": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "description": "The environment variable key.", - "type": "string" - }, - "value": { - "description": "The environment variable value.", "type": "string" } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored." }, "securityContext": { - "description": "Security context for the container.", + "type": "object", "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { + "appArmorProfile": { + "type": "object", "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" + "localhostProfile": { + "type": "string" }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "type": { + "type": "string" } }, - "type": "object", "additionalProperties": false }, - "privileged": { - "type": "boolean" + "fsGroup": { + "type": "integer" }, - "procMount": { + "fsGroupChangePolicy": { "type": "string" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, "runAsGroup": { "type": "integer" }, @@ -459,6 +373,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -473,10 +388,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -485,10 +400,31 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, + "supplementalGroups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sysctls": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -503,144 +439,35 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodIngress": { - "description": "Template for Kafka per-pod `Ingress` used for access from outside of Kubernetes.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodRoute": { - "description": "Template for Kafka per-pod `Routes` used for access from outside of OpenShift.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Configures pod-level security attributes and common container settings.", "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "perPodService": { - "description": "Template for Kafka per-pod `Services` used for access from outside of Kubernetes.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "minimum": 0, + "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds." + }, + "affinity": { "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "persistentVolumeClaim": { - "description": "Template for all Kafka `PersistentVolumeClaims`.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pod": { - "description": "Template for Kafka `Pods`.", - "properties": { - "affinity": { - "description": "The pod's affinity rules.", "properties": { "nodeAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "preference": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -649,19 +476,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -670,37 +497,37 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "object", "properties": { "nodeSelectorTerms": { + "type": "array", "items": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -709,19 +536,19 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchFields": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -730,42 +557,43 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", "additionalProperties": false }, "podAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -774,16 +602,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -792,25 +618,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -819,16 +647,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -837,38 +663,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -877,16 +704,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -895,25 +720,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -922,16 +749,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -940,39 +765,42 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false }, "podAntiAffinity": { + "type": "object", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "podAffinityTerm": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -981,16 +809,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -999,25 +825,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1026,16 +854,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1044,38 +870,39 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false }, "weight": { "type": "integer" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "requiredDuringSchedulingIgnoredDuringExecution": { + "type": "array", "items": { + "type": "object", "properties": { "labelSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1084,16 +911,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1102,25 +927,27 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "matchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "mismatchLabelKeys": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "namespaceSelector": { + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -1129,16 +956,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -1147,106 +972,469 @@ "type": "object" } }, - "type": "object", "additionalProperties": false }, "namespaces": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "topologyKey": { "type": "string" } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false } }, - "type": "object", + "description": "The pod's affinity rules.", "additionalProperties": false }, - "enableServiceLinks": { - "description": "Indicates whether information about services should be injected into Pod's environment variables.", - "type": "boolean" + "tolerations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "effect": { + "type": "string" + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "integer" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's tolerations." + }, + "topologySpreadConstraints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "additionalProperties": false + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxSkew": { + "type": "integer" + }, + "minDomains": { + "type": "integer" + }, + "nodeAffinityPolicy": { + "type": "string" + }, + "nodeTaintsPolicy": { + "type": "string" + }, + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { + "type": "string" + } + }, + "additionalProperties": false + }, + "description": "The pod's topology spread constraints." + }, + "priorityClassName": { + "type": "string", + "description": "The name of the priority class used to assign priority to the pods. " + }, + "schedulerName": { + "type": "string", + "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used." }, "hostAliases": { - "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified.", + "type": "array", "items": { + "type": "object", "properties": { "hostnames": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, "ip": { "type": "string" } }, + "additionalProperties": false + }, + "description": "The pod's HostAliases. HostAliases is an optional list of hosts and IPs that will be injected into the Pod's hosts file if specified." + }, + "enableServiceLinks": { + "type": "boolean", + "description": "Indicates whether information about services should be injected into Pod's environment variables." + }, + "tmpDirSizeLimit": { + "type": "string", + "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`." + } + }, + "description": "Template for Kafka `Pods`.", + "additionalProperties": false + }, + "perPodService": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka per-pod `Services` used for access from outside of Kubernetes.", + "additionalProperties": false + }, + "perPodRoute": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka per-pod `Routes` used for access from outside of OpenShift.", + "additionalProperties": false + }, + "perPodIngress": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for Kafka per-pod `Ingress` used for access from outside of Kubernetes.", + "additionalProperties": false + }, + "persistentVolumeClaim": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Labels added to the Kubernetes resource." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Annotations added to the Kubernetes resource." + } + }, + "description": "Metadata applied to the resource.", + "additionalProperties": false + } + }, + "description": "Template for all Kafka `PersistentVolumeClaims`.", + "additionalProperties": false + }, + "kafkaContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." + } + }, "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "imagePullSecrets": { - "description": "List of references to secrets in the same namespace to use for pulling any of the images used by this Pod. When the `STRIMZI_IMAGE_PULL_SECRETS` environment variable in Cluster Operator and the `imagePullSecrets` option are specified, only the `imagePullSecrets` variable is used and the `STRIMZI_IMAGE_PULL_SECRETS` variable is ignored.", + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "privileged": { + "type": "boolean" + }, + "procMount": { + "type": "string" + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "additionalProperties": false + }, + "seccompProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "additionalProperties": false + }, + "windowsOptions": { + "type": "object", + "properties": { + "gmsaCredentialSpec": { + "type": "string" + }, + "gmsaCredentialSpecName": { + "type": "string" + }, + "hostProcess": { + "type": "boolean" + }, + "runAsUserName": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "description": "Security context for the container.", + "additionalProperties": false + } + }, + "description": "Template for the Kafka broker container.", + "additionalProperties": false + }, + "initContainer": { + "type": "object", + "properties": { + "env": { + "type": "array", "items": { + "type": "object", "properties": { "name": { - "type": "string" + "type": "string", + "description": "The environment variable key." + }, + "value": { + "type": "string", + "description": "The environment variable value." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "Environment variables which should be applied to the container." }, - "metadata": { - "description": "Metadata applied to the resource.", + "securityContext": { + "type": "object", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "additionalProperties": false }, - "labels": { - "additionalProperties": { - "type": "string" + "capabilities": { + "type": "object", + "properties": { + "add": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop": { + "type": "array", + "items": { + "type": "string" + } + } }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "priorityClassName": { - "description": "The name of the priority class used to assign priority to the pods. ", - "type": "string" - }, - "schedulerName": { - "description": "The name of the scheduler used to dispatch this `Pod`. If not specified, the default scheduler will be used.", - "type": "string" - }, - "securityContext": { - "description": "Configures pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "type": "integer" + "additionalProperties": false }, - "fsGroupChangePolicy": { + "privileged": { + "type": "boolean" + }, + "procMount": { "type": "string" }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, "runAsGroup": { "type": "integer" }, @@ -1257,6 +1445,7 @@ "type": "integer" }, "seLinuxOptions": { + "type": "object", "properties": { "level": { "type": "string" @@ -1271,10 +1460,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, "seccompProfile": { + "type": "object", "properties": { "localhostProfile": { "type": "string" @@ -1283,31 +1472,10 @@ "type": "string" } }, - "type": "object", "additionalProperties": false }, - "supplementalGroups": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, "windowsOptions": { + "type": "object", "properties": { "gmsaCredentialSpec": { "type": "string" @@ -1322,149 +1490,18 @@ "type": "string" } }, - "type": "object", "additionalProperties": false } }, - "type": "object", - "additionalProperties": false - }, - "terminationGracePeriodSeconds": { - "description": "The grace period is the duration in seconds after the processes running in the pod are sent a termination signal, and the time when the processes are forcibly halted with a kill signal. Set this value to longer than the expected cleanup time for your process. Value must be a non-negative integer. A zero value indicates delete immediately. You might need to increase the grace period for very large Kafka clusters, so that the Kafka brokers have enough time to transfer their work to another broker before they are terminated. Defaults to 30 seconds.", - "minimum": 0, - "type": "integer" - }, - "tmpDirSizeLimit": { - "description": "Defines the total amount (for example `1Gi`) of local storage required for temporary EmptyDir volume (`/tmp`). Default value is `5Mi`.", - "pattern": "^([0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "type": "string" - }, - "tolerations": { - "description": "The pod's tolerations.", - "items": { - "properties": { - "effect": { - "type": "string" - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "integer" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "The pod's topology spread constraints.", - "items": { - "properties": { - "labelSelector": { - "properties": { - "matchExpressions": { - "items": { - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "values": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" - }, - "maxSkew": { - "type": "integer" - }, - "minDomains": { - "type": "integer" - }, - "nodeAffinityPolicy": { - "type": "string" - }, - "nodeTaintsPolicy": { - "type": "string" - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "podSet": { - "description": "Template for Kafka `StrimziPodSet` resource.", - "properties": { - "metadata": { - "description": "Metadata applied to the resource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" - } - }, - "type": "object", + "description": "Security context for the container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for the Kafka init container.", "additionalProperties": false } }, - "type": "object", + "description": "Template for pool resources. The template allows users to specify how the resources belonging to this pool are generated.", "additionalProperties": false } }, @@ -1473,80 +1510,79 @@ "storage", "roles" ], - "type": "object", + "description": "The specification of the KafkaNodePool.", "additionalProperties": false }, "status": { - "description": "The status of the KafkaNodePool.", + "type": "object", "properties": { - "clusterId": { - "description": "Kafka cluster ID.", - "type": "string" - }, "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, - "labelSelector": { - "description": "Label selector for pods providing this resource.", - "type": "string" + "observedGeneration": { + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "nodeIds": { - "description": "Node IDs used by Kafka nodes in this pool.", + "type": "array", "items": { "type": "integer" }, - "type": "array" - }, - "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "description": "Node IDs used by Kafka nodes in this pool." }, - "replicas": { - "description": "The current number of pods being used to provide this resource.", - "type": "integer" + "clusterId": { + "type": "string", + "description": "Kafka cluster ID." }, "roles": { - "description": "The roles currently assigned to this pool.", + "type": "array", "items": { + "type": "string", "enum": [ "controller", "broker" - ], - "type": "string" + ] }, - "type": "array" + "description": "The roles currently assigned to this pool." + }, + "replicas": { + "type": "integer", + "description": "The current number of pods being used to provide this resource." + }, + "labelSelector": { + "type": "string", + "description": "Label selector for pods providing this resource." } }, - "type": "object", + "description": "The status of the KafkaNodePool.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkarebalance_v1beta2.json b/kafka.strimzi.io/kafkarebalance_v1beta2.json index 917bb1ec..c84e6587 100644 --- a/kafka.strimzi.io/kafkarebalance_v1beta2.json +++ b/kafka.strimzi.io/kafkarebalance_v1beta2.json @@ -1,135 +1,135 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the Kafka rebalance.", + "type": "object", "properties": { + "mode": { + "type": "string", + "enum": [ + "full", + "add-brokers", + "remove-brokers" + ], + "description": "Mode to run the rebalancing. The supported modes are `full`, `add-brokers`, `remove-brokers`.\nIf not specified, the `full` mode is used by default. \n\n* `full` mode runs the rebalancing across all the brokers in the cluster.\n* `add-brokers` mode can be used after scaling up the cluster to move some replicas to the newly added brokers.\n* `remove-brokers` mode can be used before scaling down the cluster to move replicas out of the brokers to be removed.\n" + }, "brokers": { - "description": "The list of newly added brokers in case of scaling up or the ones to be removed in case of scaling down to use for rebalancing. This list can be used only with rebalancing mode `add-brokers` and `removed-brokers`. It is ignored with `full` mode.", + "type": "array", "items": { "type": "integer" }, - "type": "array" - }, - "concurrentIntraBrokerPartitionMovements": { - "description": "The upper bound of ongoing partition replica movements between disks within each broker. Default is 2.", - "minimum": 0, - "type": "integer" - }, - "concurrentLeaderMovements": { - "description": "The upper bound of ongoing partition leadership movements. Default is 1000.", - "minimum": 0, - "type": "integer" - }, - "concurrentPartitionMovementsPerBroker": { - "description": "The upper bound of ongoing partition replica movements going into/out of each broker. Default is 5.", - "minimum": 0, - "type": "integer" - }, - "excludedTopics": { - "description": "A regular expression where any matching topics will be excluded from the calculation of optimization proposals. This expression will be parsed by the java.util.regex.Pattern class; for more information on the supported format consult the documentation for that class.", - "type": "string" + "description": "The list of newly added brokers in case of scaling up or the ones to be removed in case of scaling down to use for rebalancing. This list can be used only with rebalancing mode `add-brokers` and `removed-brokers`. It is ignored with `full` mode." }, "goals": { - "description": "A list of goals, ordered by decreasing priority, to use for generating and executing the rebalance proposal. The supported goals are available at https://github.com/linkedin/cruise-control#goals. If an empty goals list is provided, the goals declared in the default.goals Cruise Control configuration parameter are used.", + "type": "array", "items": { "type": "string" }, - "type": "array" + "description": "A list of goals, ordered by decreasing priority, to use for generating and executing the rebalance proposal. The supported goals are available at https://github.com/linkedin/cruise-control#goals. If an empty goals list is provided, the goals declared in the default.goals Cruise Control configuration parameter are used." }, - "mode": { - "description": "Mode to run the rebalancing. The supported modes are `full`, `add-brokers`, `remove-brokers`.\nIf not specified, the `full` mode is used by default. \n\n* `full` mode runs the rebalancing across all the brokers in the cluster.\n* `add-brokers` mode can be used after scaling up the cluster to move some replicas to the newly added brokers.\n* `remove-brokers` mode can be used before scaling down the cluster to move replicas out of the brokers to be removed.\n", - "enum": [ - "full", - "add-brokers", - "remove-brokers" - ], - "type": "string" + "skipHardGoalCheck": { + "type": "boolean", + "description": "Whether to allow the hard goals specified in the Kafka CR to be skipped in optimization proposal generation. This can be useful when some of those hard goals are preventing a balance solution being found. Default is false." }, "rebalanceDisk": { - "description": "Enables intra-broker disk balancing, which balances disk space utilization between disks on the same broker. Only applies to Kafka deployments that use JBOD storage with multiple disks. When enabled, inter-broker balancing is disabled. Default is false.", - "type": "boolean" + "type": "boolean", + "description": "Enables intra-broker disk balancing, which balances disk space utilization between disks on the same broker. Only applies to Kafka deployments that use JBOD storage with multiple disks. When enabled, inter-broker balancing is disabled. Default is false." }, - "replicaMovementStrategies": { - "description": "A list of strategy class names used to determine the execution order for the replica movements in the generated optimization proposal. By default BaseReplicaMovementStrategy is used, which will execute the replica movements in the order that they were generated.", - "items": { - "type": "string" - }, - "type": "array" + "excludedTopics": { + "type": "string", + "description": "A regular expression where any matching topics will be excluded from the calculation of optimization proposals. This expression will be parsed by the java.util.regex.Pattern class; for more information on the supported format consult the documentation for that class." + }, + "concurrentPartitionMovementsPerBroker": { + "type": "integer", + "minimum": 0, + "description": "The upper bound of ongoing partition replica movements going into/out of each broker. Default is 5." + }, + "concurrentIntraBrokerPartitionMovements": { + "type": "integer", + "minimum": 0, + "description": "The upper bound of ongoing partition replica movements between disks within each broker. Default is 2." + }, + "concurrentLeaderMovements": { + "type": "integer", + "minimum": 0, + "description": "The upper bound of ongoing partition leadership movements. Default is 1000." }, "replicationThrottle": { - "description": "The upper bound, in bytes per second, on the bandwidth used to move replicas. There is no limit by default.", + "type": "integer", "minimum": 0, - "type": "integer" + "description": "The upper bound, in bytes per second, on the bandwidth used to move replicas. There is no limit by default." }, - "skipHardGoalCheck": { - "description": "Whether to allow the hard goals specified in the Kafka CR to be skipped in optimization proposal generation. This can be useful when some of those hard goals are preventing a balance solution being found. Default is false.", - "type": "boolean" + "replicaMovementStrategies": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of strategy class names used to determine the execution order for the replica movements in the generated optimization proposal. By default BaseReplicaMovementStrategy is used, which will execute the replica movements in the order that they were generated." } }, - "type": "object", + "description": "The specification of the Kafka rebalance.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka rebalance.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "sessionId": { + "type": "string", + "description": "The session identifier for requests to Cruise Control pertaining to this KafkaRebalance resource. This is used by the Kafka Rebalance operator to track the status of ongoing rebalancing operations." }, "optimizationResult": { - "description": "A JSON object describing the optimization result.", + "x-kubernetes-preserve-unknown-fields": true, "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "sessionId": { - "description": "The session identifier for requests to Cruise Control pertaining to this KafkaRebalance resource. This is used by the Kafka Rebalance operator to track the status of ongoing rebalancing operations.", - "type": "string" + "description": "A JSON object describing the optimization result." } }, - "type": "object", + "description": "The status of the Kafka rebalance.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkatopic_v1alpha1.json b/kafka.strimzi.io/kafkatopic_v1alpha1.json index 8c6ddfbd..1d011030 100644 --- a/kafka.strimzi.io/kafkatopic_v1alpha1.json +++ b/kafka.strimzi.io/kafkatopic_v1alpha1.json @@ -1,119 +1,119 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the topic.", + "type": "object", "properties": { - "config": { - "description": "The topic configuration.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "topicName": { + "type": "string", + "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name." }, "partitions": { - "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`.", + "type": "integer", "minimum": 1, - "type": "integer" + "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`." }, "replicas": { - "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`.", - "maximum": 32767, + "type": "integer", "minimum": 1, - "type": "integer" + "maximum": 32767, + "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`." }, - "topicName": { - "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name.", - "type": "string" + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The topic configuration." } }, - "type": "object", + "description": "The specification of the topic.", "additionalProperties": false }, "status": { - "description": "The status of the topic.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "topicName": { + "type": "string", + "description": "Topic name." + }, + "topicId": { + "type": "string", + "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name." }, "replicasChange": { - "description": "Replication factor change status.", + "type": "object", "properties": { - "message": { - "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations.", - "type": "string" - }, - "sessionId": { - "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations.", - "type": "string" + "targetReplicas": { + "type": "integer", + "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing." }, "state": { - "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control.", + "type": "string", "enum": [ "pending", "ongoing" ], - "type": "string" + "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control." }, - "targetReplicas": { - "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing.", - "type": "integer" + "message": { + "type": "string", + "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations." + }, + "sessionId": { + "type": "string", + "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations." } }, - "type": "object", + "description": "Replication factor change status.", "additionalProperties": false - }, - "topicId": { - "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name.", - "type": "string" - }, - "topicName": { - "description": "Topic name.", - "type": "string" } }, - "type": "object", + "description": "The status of the topic.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkatopic_v1beta1.json b/kafka.strimzi.io/kafkatopic_v1beta1.json index 8c6ddfbd..1d011030 100644 --- a/kafka.strimzi.io/kafkatopic_v1beta1.json +++ b/kafka.strimzi.io/kafkatopic_v1beta1.json @@ -1,119 +1,119 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the topic.", + "type": "object", "properties": { - "config": { - "description": "The topic configuration.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "topicName": { + "type": "string", + "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name." }, "partitions": { - "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`.", + "type": "integer", "minimum": 1, - "type": "integer" + "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`." }, "replicas": { - "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`.", - "maximum": 32767, + "type": "integer", "minimum": 1, - "type": "integer" + "maximum": 32767, + "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`." }, - "topicName": { - "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name.", - "type": "string" + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The topic configuration." } }, - "type": "object", + "description": "The specification of the topic.", "additionalProperties": false }, "status": { - "description": "The status of the topic.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "topicName": { + "type": "string", + "description": "Topic name." + }, + "topicId": { + "type": "string", + "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name." }, "replicasChange": { - "description": "Replication factor change status.", + "type": "object", "properties": { - "message": { - "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations.", - "type": "string" - }, - "sessionId": { - "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations.", - "type": "string" + "targetReplicas": { + "type": "integer", + "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing." }, "state": { - "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control.", + "type": "string", "enum": [ "pending", "ongoing" ], - "type": "string" + "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control." }, - "targetReplicas": { - "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing.", - "type": "integer" + "message": { + "type": "string", + "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations." + }, + "sessionId": { + "type": "string", + "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations." } }, - "type": "object", + "description": "Replication factor change status.", "additionalProperties": false - }, - "topicId": { - "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name.", - "type": "string" - }, - "topicName": { - "description": "Topic name.", - "type": "string" } }, - "type": "object", + "description": "The status of the topic.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkatopic_v1beta2.json b/kafka.strimzi.io/kafkatopic_v1beta2.json index 8c6ddfbd..1d011030 100644 --- a/kafka.strimzi.io/kafkatopic_v1beta2.json +++ b/kafka.strimzi.io/kafkatopic_v1beta2.json @@ -1,119 +1,119 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the topic.", + "type": "object", "properties": { - "config": { - "description": "The topic configuration.", - "type": "object", - "x-kubernetes-preserve-unknown-fields": true + "topicName": { + "type": "string", + "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name." }, "partitions": { - "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`.", + "type": "integer", "minimum": 1, - "type": "integer" + "description": "The number of partitions the topic should have. This cannot be decreased after topic creation. It can be increased after topic creation, but it is important to understand the consequences that has, especially for topics with semantic partitioning. When absent this will default to the broker configuration for `num.partitions`." }, "replicas": { - "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`.", - "maximum": 32767, + "type": "integer", "minimum": 1, - "type": "integer" + "maximum": 32767, + "description": "The number of replicas the topic should have. When absent this will default to the broker configuration for `default.replication.factor`." }, - "topicName": { - "description": "The name of the topic. When absent this will default to the metadata.name of the topic. It is recommended to not set this unless the topic name is not a valid Kubernetes resource name.", - "type": "string" + "config": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object", + "description": "The topic configuration." } }, - "type": "object", + "description": "The specification of the topic.", "additionalProperties": false }, "status": { - "description": "The status of the topic.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." + }, + "topicName": { + "type": "string", + "description": "Topic name." + }, + "topicId": { + "type": "string", + "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name." }, "replicasChange": { - "description": "Replication factor change status.", + "type": "object", "properties": { - "message": { - "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations.", - "type": "string" - }, - "sessionId": { - "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations.", - "type": "string" + "targetReplicas": { + "type": "integer", + "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing." }, "state": { - "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control.", + "type": "string", "enum": [ "pending", "ongoing" ], - "type": "string" + "description": "Current state of the replicas change operation. This can be `pending`, when the change has been requested, or `ongoing`, when the change has been successfully submitted to Cruise Control." }, - "targetReplicas": { - "description": "The target replicas value requested by the user. This may be different from .spec.replicas when a change is ongoing.", - "type": "integer" + "message": { + "type": "string", + "description": "Message for the user related to the replicas change request. This may contain transient error messages that would disappear on periodic reconciliations." + }, + "sessionId": { + "type": "string", + "description": "The session identifier for replicas change requests pertaining to this KafkaTopic resource. This is used by the Topic Operator to track the status of `ongoing` replicas change operations." } }, - "type": "object", + "description": "Replication factor change status.", "additionalProperties": false - }, - "topicId": { - "description": "The topic's id. For a KafkaTopic with the ready condition, this will change only if the topic gets deleted and recreated with the same name.", - "type": "string" - }, - "topicName": { - "description": "Topic name.", - "type": "string" } }, - "type": "object", + "description": "The status of the topic.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkauser_v1alpha1.json b/kafka.strimzi.io/kafkauser_v1alpha1.json index d09d5082..5b097fe4 100644 --- a/kafka.strimzi.io/kafkauser_v1alpha1.json +++ b/kafka.strimzi.io/kafkauser_v1alpha1.json @@ -1,30 +1,31 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the user.", + "type": "object", "properties": { "authentication": { - "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", + "type": "object", "properties": { "password": { - "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", + "type": "object", "properties": { "valueFrom": { - "description": "Secret from which the password should be read.", + "type": "object", "properties": { "secretKeyRef": { - "description": "Selects a key of a Secret in the resource's namespace.", + "type": "object", "properties": { "key": { "type": "string" @@ -36,49 +37,90 @@ "type": "boolean" } }, - "type": "object", + "description": "Selects a key of a Secret in the resource's namespace.", "additionalProperties": false } }, - "type": "object", + "description": "Secret from which the password should be read.", "additionalProperties": false } }, "required": [ "valueFrom" ], - "type": "object", + "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", "additionalProperties": false }, "type": { - "description": "Authentication type.", + "type": "string", "enum": [ "tls", "tls-external", "scram-sha-512" ], - "type": "string" + "description": "Authentication type." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", "additionalProperties": false }, "authorization": { - "description": "Authorization rules for this Kafka user.", + "type": "object", "properties": { "acls": { - "description": "List of ACL rules which should be applied to this user.", + "type": "array", "items": { + "type": "object", "properties": { + "type": { + "type": "string", + "enum": [ + "allow", + "deny" + ], + "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`." + }, + "resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern." + }, + "patternType": { + "type": "string", + "enum": [ + "literal", + "prefix" + ], + "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`." + }, + "type": { + "type": "string", + "enum": [ + "topic", + "group", + "cluster", + "transactionalId" + ], + "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`." + } + }, + "required": [ + "type" + ], + "description": "Indicates the resource for which given ACL rule applies.", + "additionalProperties": false + }, "host": { - "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host.", - "type": "string" + "type": "string", + "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host." }, "operation": { - "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "string", "enum": [ "Read", "Write", @@ -92,11 +134,12 @@ "IdempotentWrite", "All" ], - "type": "string" + "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." }, "operations": { - "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "array", "items": { + "type": "string", "enum": [ "Read", "Write", @@ -109,190 +152,147 @@ "DescribeConfigs", "IdempotentWrite", "All" - ], - "type": "string" + ] }, - "type": "array" - }, - "resource": { - "description": "Indicates the resource for which given ACL rule applies.", - "properties": { - "name": { - "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern.", - "type": "string" - }, - "patternType": { - "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`.", - "enum": [ - "literal", - "prefix" - ], - "type": "string" - }, - "type": { - "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`.", - "enum": [ - "topic", - "group", - "cluster", - "transactionalId" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "type": { - "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`.", - "enum": [ - "allow", - "deny" - ], - "type": "string" + "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." } }, "required": [ "resource" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of ACL rules which should be applied to this user." }, "type": { - "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules.", + "type": "string", "enum": [ "simple" ], - "type": "string" + "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules." } }, "required": [ "acls", "type" ], - "type": "object", + "description": "Authorization rules for this Kafka user.", "additionalProperties": false }, "quotas": { - "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", + "type": "object", "properties": { - "consumerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "producerByteRate": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "controllerMutationRate": { - "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted.", + "consumerByteRate": { + "type": "integer", "minimum": 0, - "type": "number" + "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "producerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "requestPercentage": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads." }, - "requestPercentage": { - "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads.", + "controllerMutationRate": { + "type": "number", "minimum": 0, - "type": "integer" + "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted." } }, - "type": "object", + "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", "additionalProperties": false }, "template": { - "description": "Template to specify how Kafka User `Secrets` are generated.", + "type": "object", "properties": { "secret": { - "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", "additionalProperties": false } }, - "type": "object", + "description": "Template to specify how Kafka User `Secrets` are generated.", "additionalProperties": false } }, - "type": "object", + "description": "The specification of the user.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka User.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" - }, - "secret": { - "description": "The name of `Secret` where the credentials are stored.", - "type": "string" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "username": { - "description": "Username.", - "type": "string" + "type": "string", + "description": "Username." + }, + "secret": { + "type": "string", + "description": "The name of `Secret` where the credentials are stored." } }, - "type": "object", + "description": "The status of the Kafka User.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkauser_v1beta1.json b/kafka.strimzi.io/kafkauser_v1beta1.json index d09d5082..5b097fe4 100644 --- a/kafka.strimzi.io/kafkauser_v1beta1.json +++ b/kafka.strimzi.io/kafkauser_v1beta1.json @@ -1,30 +1,31 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the user.", + "type": "object", "properties": { "authentication": { - "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", + "type": "object", "properties": { "password": { - "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", + "type": "object", "properties": { "valueFrom": { - "description": "Secret from which the password should be read.", + "type": "object", "properties": { "secretKeyRef": { - "description": "Selects a key of a Secret in the resource's namespace.", + "type": "object", "properties": { "key": { "type": "string" @@ -36,49 +37,90 @@ "type": "boolean" } }, - "type": "object", + "description": "Selects a key of a Secret in the resource's namespace.", "additionalProperties": false } }, - "type": "object", + "description": "Secret from which the password should be read.", "additionalProperties": false } }, "required": [ "valueFrom" ], - "type": "object", + "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", "additionalProperties": false }, "type": { - "description": "Authentication type.", + "type": "string", "enum": [ "tls", "tls-external", "scram-sha-512" ], - "type": "string" + "description": "Authentication type." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", "additionalProperties": false }, "authorization": { - "description": "Authorization rules for this Kafka user.", + "type": "object", "properties": { "acls": { - "description": "List of ACL rules which should be applied to this user.", + "type": "array", "items": { + "type": "object", "properties": { + "type": { + "type": "string", + "enum": [ + "allow", + "deny" + ], + "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`." + }, + "resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern." + }, + "patternType": { + "type": "string", + "enum": [ + "literal", + "prefix" + ], + "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`." + }, + "type": { + "type": "string", + "enum": [ + "topic", + "group", + "cluster", + "transactionalId" + ], + "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`." + } + }, + "required": [ + "type" + ], + "description": "Indicates the resource for which given ACL rule applies.", + "additionalProperties": false + }, "host": { - "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host.", - "type": "string" + "type": "string", + "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host." }, "operation": { - "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "string", "enum": [ "Read", "Write", @@ -92,11 +134,12 @@ "IdempotentWrite", "All" ], - "type": "string" + "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." }, "operations": { - "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "array", "items": { + "type": "string", "enum": [ "Read", "Write", @@ -109,190 +152,147 @@ "DescribeConfigs", "IdempotentWrite", "All" - ], - "type": "string" + ] }, - "type": "array" - }, - "resource": { - "description": "Indicates the resource for which given ACL rule applies.", - "properties": { - "name": { - "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern.", - "type": "string" - }, - "patternType": { - "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`.", - "enum": [ - "literal", - "prefix" - ], - "type": "string" - }, - "type": { - "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`.", - "enum": [ - "topic", - "group", - "cluster", - "transactionalId" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "type": { - "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`.", - "enum": [ - "allow", - "deny" - ], - "type": "string" + "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." } }, "required": [ "resource" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of ACL rules which should be applied to this user." }, "type": { - "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules.", + "type": "string", "enum": [ "simple" ], - "type": "string" + "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules." } }, "required": [ "acls", "type" ], - "type": "object", + "description": "Authorization rules for this Kafka user.", "additionalProperties": false }, "quotas": { - "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", + "type": "object", "properties": { - "consumerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "producerByteRate": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "controllerMutationRate": { - "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted.", + "consumerByteRate": { + "type": "integer", "minimum": 0, - "type": "number" + "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "producerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "requestPercentage": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads." }, - "requestPercentage": { - "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads.", + "controllerMutationRate": { + "type": "number", "minimum": 0, - "type": "integer" + "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted." } }, - "type": "object", + "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", "additionalProperties": false }, "template": { - "description": "Template to specify how Kafka User `Secrets` are generated.", + "type": "object", "properties": { "secret": { - "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", "additionalProperties": false } }, - "type": "object", + "description": "Template to specify how Kafka User `Secrets` are generated.", "additionalProperties": false } }, - "type": "object", + "description": "The specification of the user.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka User.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" - }, - "secret": { - "description": "The name of `Secret` where the credentials are stored.", - "type": "string" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "username": { - "description": "Username.", - "type": "string" + "type": "string", + "description": "Username." + }, + "secret": { + "type": "string", + "description": "The name of `Secret` where the credentials are stored." } }, - "type": "object", + "description": "The status of the Kafka User.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/kafkauser_v1beta2.json b/kafka.strimzi.io/kafkauser_v1beta2.json index d09d5082..5b097fe4 100644 --- a/kafka.strimzi.io/kafkauser_v1beta2.json +++ b/kafka.strimzi.io/kafkauser_v1beta2.json @@ -1,30 +1,31 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the user.", + "type": "object", "properties": { "authentication": { - "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", + "type": "object", "properties": { "password": { - "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", + "type": "object", "properties": { "valueFrom": { - "description": "Secret from which the password should be read.", + "type": "object", "properties": { "secretKeyRef": { - "description": "Selects a key of a Secret in the resource's namespace.", + "type": "object", "properties": { "key": { "type": "string" @@ -36,49 +37,90 @@ "type": "boolean" } }, - "type": "object", + "description": "Selects a key of a Secret in the resource's namespace.", "additionalProperties": false } }, - "type": "object", + "description": "Secret from which the password should be read.", "additionalProperties": false } }, "required": [ "valueFrom" ], - "type": "object", + "description": "Specify the password for the user. If not set, a new password is generated by the User Operator.", "additionalProperties": false }, "type": { - "description": "Authentication type.", + "type": "string", "enum": [ "tls", "tls-external", "scram-sha-512" ], - "type": "string" + "description": "Authentication type." } }, "required": [ "type" ], - "type": "object", + "description": "Authentication mechanism enabled for this Kafka user. The supported authentication mechanisms are `scram-sha-512`, `tls`, and `tls-external`. \n\n* `scram-sha-512` generates a secret with SASL SCRAM-SHA-512 credentials.\n* `tls` generates a secret with user certificate for mutual TLS authentication.\n* `tls-external` does not generate a user certificate. But prepares the user for using mutual TLS authentication using a user certificate generated outside the User Operator.\n ACLs and quotas set for this user are configured in the `CN=` format.\n\nAuthentication is optional. If authentication is not configured, no credentials are generated. ACLs and quotas set for the user are configured in the `` format suitable for SASL authentication.", "additionalProperties": false }, "authorization": { - "description": "Authorization rules for this Kafka user.", + "type": "object", "properties": { "acls": { - "description": "List of ACL rules which should be applied to this user.", + "type": "array", "items": { + "type": "object", "properties": { + "type": { + "type": "string", + "enum": [ + "allow", + "deny" + ], + "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`." + }, + "resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern." + }, + "patternType": { + "type": "string", + "enum": [ + "literal", + "prefix" + ], + "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`." + }, + "type": { + "type": "string", + "enum": [ + "topic", + "group", + "cluster", + "transactionalId" + ], + "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`." + } + }, + "required": [ + "type" + ], + "description": "Indicates the resource for which given ACL rule applies.", + "additionalProperties": false + }, "host": { - "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host.", - "type": "string" + "type": "string", + "description": "The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to `*`, allowing or denying the action from any host." }, "operation": { - "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "string", "enum": [ "Read", "Write", @@ -92,11 +134,12 @@ "IdempotentWrite", "All" ], - "type": "string" + "description": "Operation which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." }, "operations": { - "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All.", + "type": "array", "items": { + "type": "string", "enum": [ "Read", "Write", @@ -109,190 +152,147 @@ "DescribeConfigs", "IdempotentWrite", "All" - ], - "type": "string" + ] }, - "type": "array" - }, - "resource": { - "description": "Indicates the resource for which given ACL rule applies.", - "properties": { - "name": { - "description": "Name of resource for which given ACL rule applies. Can be combined with `patternType` field to use prefix pattern.", - "type": "string" - }, - "patternType": { - "description": "Describes the pattern used in the resource field. The supported types are `literal` and `prefix`. With `literal` pattern type, the resource field will be used as a definition of a full name. With `prefix` pattern type, the resource name will be used only as a prefix. Default value is `literal`.", - "enum": [ - "literal", - "prefix" - ], - "type": "string" - }, - "type": { - "description": "Resource type. The available resource types are `topic`, `group`, `cluster`, and `transactionalId`.", - "enum": [ - "topic", - "group", - "cluster", - "transactionalId" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "additionalProperties": false - }, - "type": { - "description": "The type of the rule. Currently the only supported type is `allow`. ACL rules with type `allow` are used to allow user to execute the specified operations. Default value is `allow`.", - "enum": [ - "allow", - "deny" - ], - "type": "string" + "description": "List of operations which will be allowed or denied. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All." } }, "required": [ "resource" ], - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of ACL rules which should be applied to this user." }, "type": { - "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules.", + "type": "string", "enum": [ "simple" ], - "type": "string" + "description": "Authorization type. Currently the only supported type is `simple`. `simple` authorization type uses the Kafka Admin API for managing the ACL rules." } }, "required": [ "acls", "type" ], - "type": "object", + "description": "Authorization rules for this Kafka user.", "additionalProperties": false }, "quotas": { - "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", + "type": "object", "properties": { - "consumerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "producerByteRate": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "controllerMutationRate": { - "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted.", + "consumerByteRate": { + "type": "integer", "minimum": 0, - "type": "number" + "description": "A quota on the maximum bytes per-second that each client group can fetch from a broker before the clients in the group are throttled. Defined on a per-broker basis." }, - "producerByteRate": { - "description": "A quota on the maximum bytes per-second that each client group can publish to a broker before the clients in the group are throttled. Defined on a per-broker basis.", + "requestPercentage": { + "type": "integer", "minimum": 0, - "type": "integer" + "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads." }, - "requestPercentage": { - "description": "A quota on the maximum CPU utilization of each client group as a percentage of network and I/O threads.", + "controllerMutationRate": { + "type": "number", "minimum": 0, - "type": "integer" + "description": "A quota on the rate at which mutations are accepted for the create topics request, the create partitions request and the delete topics request. The rate is accumulated by the number of partitions created or deleted." } }, - "type": "object", + "description": "Quotas on requests to control the broker resources used by clients. Network bandwidth and request rate quotas can be enforced.Kafka documentation for Kafka User quotas can be found at http://kafka.apache.org/documentation/#design_quotas.", "additionalProperties": false }, "template": { - "description": "Template to specify how Kafka User `Secrets` are generated.", + "type": "object", "properties": { "secret": { - "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", + "type": "object", "properties": { "metadata": { - "description": "Metadata applied to the resource.", + "type": "object", "properties": { - "annotations": { + "labels": { "additionalProperties": { "type": "string" }, - "description": "Annotations added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Labels added to the Kubernetes resource." }, - "labels": { + "annotations": { "additionalProperties": { "type": "string" }, - "description": "Labels added to the Kubernetes resource.", - "type": "object" + "type": "object", + "description": "Annotations added to the Kubernetes resource." } }, - "type": "object", + "description": "Metadata applied to the resource.", "additionalProperties": false } }, - "type": "object", + "description": "Template for KafkaUser resources. The template allows users to specify how the `Secret` with password or TLS certificates is generated.", "additionalProperties": false } }, - "type": "object", + "description": "Template to specify how Kafka User `Secrets` are generated.", "additionalProperties": false } }, - "type": "object", + "description": "The specification of the user.", "additionalProperties": false }, "status": { - "description": "The status of the Kafka User.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" - }, - "secret": { - "description": "The name of `Secret` where the credentials are stored.", - "type": "string" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "username": { - "description": "Username.", - "type": "string" + "type": "string", + "description": "Username." + }, + "secret": { + "type": "string", + "description": "The name of `Secret` where the credentials are stored." } }, - "type": "object", + "description": "The status of the Kafka User.", "additionalProperties": false } - }, - "type": "object" + } } diff --git a/kafka.strimzi.io/strimzipodset_v1beta2.json b/kafka.strimzi.io/strimzipodset_v1beta2.json index fa0471c7..51244158 100644 --- a/kafka.strimzi.io/strimzipodset_v1beta2.json +++ b/kafka.strimzi.io/strimzipodset_v1beta2.json @@ -1,32 +1,27 @@ { + "type": "object", "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" + "type": "string", + "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" }, "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" + "type": "string", + "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" }, "metadata": { "type": "object" }, "spec": { - "description": "The specification of the StrimziPodSet.", + "type": "object", "properties": { - "pods": { - "description": "The Pods managed by this StrimziPodSet.", - "items": { - "type": "object", - "x-kubernetes-preserve-unknown-fields": true - }, - "type": "array" - }, "selector": { - "description": "Selector is a label query which matches all the pods managed by this `StrimziPodSet`. Only `matchLabels` is supported. If `matchExpressions` is set, it will be ignored.", + "type": "object", "properties": { "matchExpressions": { + "type": "array", "items": { + "type": "object", "properties": { "key": { "type": "string" @@ -35,16 +30,14 @@ "type": "string" }, "values": { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } } }, - "type": "object", "additionalProperties": false - }, - "type": "array" + } }, "matchLabels": { "additionalProperties": { @@ -53,70 +46,77 @@ "type": "object" } }, - "type": "object", + "description": "Selector is a label query which matches all the pods managed by this `StrimziPodSet`. Only `matchLabels` is supported. If `matchExpressions` is set, it will be ignored.", "additionalProperties": false + }, + "pods": { + "type": "array", + "items": { + "x-kubernetes-preserve-unknown-fields": true, + "type": "object" + }, + "description": "The Pods managed by this StrimziPodSet." } }, "required": [ "selector", "pods" ], - "type": "object", + "description": "The specification of the StrimziPodSet.", "additionalProperties": false }, "status": { - "description": "The status of the StrimziPodSet.", + "type": "object", "properties": { "conditions": { - "description": "List of status conditions.", + "type": "array", "items": { + "type": "object", "properties": { - "lastTransitionTime": { - "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone.", - "type": "string" + "type": { + "type": "string", + "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource." }, - "message": { - "description": "Human-readable message indicating details about the condition's last transition.", - "type": "string" + "status": { + "type": "string", + "description": "The status of the condition, either True, False or Unknown." }, - "reason": { - "description": "The reason for the condition's last transition (a single word in CamelCase).", - "type": "string" + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition of a type changed from one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ', in the UTC time zone." }, - "status": { - "description": "The status of the condition, either True, False or Unknown.", - "type": "string" + "reason": { + "type": "string", + "description": "The reason for the condition's last transition (a single word in CamelCase)." }, - "type": { - "description": "The unique identifier of a condition, used to distinguish between other conditions in the resource.", - "type": "string" + "message": { + "type": "string", + "description": "Human-readable message indicating details about the condition's last transition." } }, - "type": "object", "additionalProperties": false }, - "type": "array" - }, - "currentPods": { - "description": "Number of pods managed by this `StrimziPodSet` resource that have the current revision.", - "type": "integer" + "description": "List of status conditions." }, "observedGeneration": { - "description": "The generation of the CRD that was last reconciled by the operator.", - "type": "integer" + "type": "integer", + "description": "The generation of the CRD that was last reconciled by the operator." }, "pods": { - "description": "Number of pods managed by this `StrimziPodSet` resource.", - "type": "integer" + "type": "integer", + "description": "Number of pods managed by this `StrimziPodSet` resource." }, "readyPods": { - "description": "Number of pods managed by this `StrimziPodSet` resource that are ready.", - "type": "integer" + "type": "integer", + "description": "Number of pods managed by this `StrimziPodSet` resource that are ready." + }, + "currentPods": { + "type": "integer", + "description": "Number of pods managed by this `StrimziPodSet` resource that have the current revision." } }, - "type": "object", + "description": "The status of the StrimziPodSet.", "additionalProperties": false } - }, - "type": "object" + } }