From b3695212276e698dfdac5d9779692a4f055ce121 Mon Sep 17 00:00:00 2001 From: rriski Date: Fri, 14 Jun 2024 09:31:34 +0000 Subject: [PATCH] chore: remove `aiven.io_crd-all.gen.yaml` (#750) --- config/crd/bases/aiven.io_crd-all.gen.yaml | 3185 -------------------- generators/charts/crds.go | 4 - generators/docs/main.go | 6 - 3 files changed, 3195 deletions(-) delete mode 100644 config/crd/bases/aiven.io_crd-all.gen.yaml diff --git a/config/crd/bases/aiven.io_crd-all.gen.yaml b/config/crd/bases/aiven.io_crd-all.gen.yaml deleted file mode 100644 index c3705e18..00000000 --- a/config/crd/bases/aiven.io_crd-all.gen.yaml +++ /dev/null @@ -1,3185 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: opensearches.aiven.io -spec: - group: aiven.io - names: - kind: OpenSearch - listKind: OpenSearchList - plural: opensearches - singular: opensearch - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: OpenSearch is the Schema for the opensearches API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: OpenSearchSpec defines the desired state of OpenSearch - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - cloudName: - description: Cloud the service runs in. - maxLength: 256 - type: string - connInfoSecretTarget: - description: Information regarding secret creation - properties: - name: - description: Name of the Secret resource to be created - type: string - required: - - name - type: object - disk_space: - description: - The disk space of the service, possible values depend - on the service type, the cloud provider and the project. Reducing - will result in the service re-balancing. - format: ^[1-9][0-9]*(GiB|G)* - type: string - maintenanceWindowDow: - description: - Day of week when maintenance operations should be performed. - One monday, tuesday, wednesday, etc. - enum: - - monday - - tuesday - - wednesday - - thursday - - friday - - saturday - - sunday - - never - type: string - maintenanceWindowTime: - description: - Time of day when maintenance operations should be performed. - UTC time in HH:mm:ss format. - maxLength: 8 - type: string - plan: - description: Subscription plan. - maxLength: 128 - type: string - project: - description: Target project. - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - projectVpcId: - description: Identifier of the VPC the service should be in, if any. - maxLength: 36 - type: string - tags: - additionalProperties: - type: string - description: - Tags are key-value pairs that allow you to categorize - services. - type: object - terminationProtection: - description: - Prevent service from being deleted. It is recommended - to have this enabled for all services. - type: boolean - userConfig: - description: OpenSearch specific user configuration options - properties: - custom_domain: - description: - Custom domain Serve the web frontend using a custom - CNAME pointing to the Aiven DNS name - maxLength: 255 - type: string - disable_replication_factor_adjustment: - description: - "Disable replication factor adjustment DEPRECATED: - Disable automatic replication factor adjustment for multi-node - services. By default, Aiven ensures all indexes are replicated - at least to two nodes. Note: Due to potential data loss in case - of losing a service node, this setting can no longer be activated." - type: boolean - index_patterns: - description: - "Allows you to create glob style patterns and set - a max number of indexes matching this pattern you want to keep. - Creating indexes exceeding this value will cause the oldest - one to get deleted. You could for example create a pattern looking - like 'logs.?' and then create index logs.1, logs.2 etc, it - will delete logs.1 once you create logs.6. Do note 'logs.?' - does not apply to logs.10. Note: Setting max_index_count to - 0 will do nothing and the pattern gets ignored." - items: - properties: - max_index_count: - description: Maximum number of indexes to keep - format: int64 - minimum: 0 - type: integer - pattern: - description: - Must consist of alphanumeric characters, dashes, - underscores, dots and glob characters (* and ?) - maxLength: 1024 - type: string - type: object - type: array - index_template: - description: Template settings for all new indexes - properties: - mapping_nested_objects_limit: - description: - index.mapping.nested_objects.limit The maximum - number of nested JSON objects that a single document can - contain across all nested types. This limit helps to prevent - out of memory errors when a document contains too many nested - objects. Default is 10000. - format: int64 - maximum: 100000 - minimum: 0 - type: integer - number_of_replicas: - description: - index.number_of_replicas The number of replicas - each primary shard has. - format: int64 - maximum: 29 - minimum: 0 - type: integer - number_of_shards: - description: - index.number_of_shards The number of primary - shards that an index should have. - format: int64 - maximum: 1024 - minimum: 1 - type: integer - type: object - ip_filter: - description: - "Glob pattern and number of indexes matching that - pattern to be kept Allows you to create glob style patterns - and set a max number of indexes matching this pattern you want - to keep. Creating indexes exceeding this value will cause the - oldest one to get deleted. You could for example create a pattern - looking like 'logs.?' and then create index logs.1, logs.2 - etc, it will delete logs.1 once you create logs.6. Do note 'logs.?' - does not apply to logs.10. Note: Setting max_index_count to - 0 will do nothing and the pattern gets ignored. IP filter Allow - incoming connections from CIDR address block, e.g. '10.20.0.0/16'" - items: - type: string - type: array - keep_index_refresh_interval: - description: - Don't reset index.refresh_interval to the default - value Aiven automation resets index.refresh_interval to default - value for every index to be sure that indices are always visible - to search. If it doesn't fit your case, you can disable this - by setting up this flag to true. - type: boolean - max_index_count: - description: - Maximum index count Maximum number of indexes to - keep before deleting the oldest one - format: int64 - minimum: 0 - type: integer - opensearch: - description: OpenSearch settings - properties: - action_auto_create_index_enabled: - description: - action.auto_create_index Explicitly allow or - block automatic creation of indices. Defaults to true - type: boolean - action_destructive_requires_name: - description: Require explicit index names when deleting - type: boolean - cluster_max_shards_per_node: - description: - cluster.max_shards_per_node Controls the number - of shards allowed in the cluster per data node - format: int64 - maximum: 10000 - minimum: 100 - type: integer - http_max_content_length: - description: - http.max_content_length Maximum content length - for HTTP requests to the OpenSearch HTTP API, in bytes. - format: int64 - maximum: 2147483647 - minimum: 1 - type: integer - http_max_header_size: - description: - http.max_header_size The max size of allowed - headers, in bytes - format: int64 - maximum: 262144 - minimum: 1024 - type: integer - http_max_initial_line_length: - description: - http.max_initial_line_length The max length of - an HTTP URL, in bytes - format: int64 - maximum: 65536 - minimum: 1024 - type: integer - indices_fielddata_cache_size: - description: - indices.fielddata.cache.size Relative amount. - Maximum amount of heap memory used for field data cache. - This is an expert setting; decreasing the value too much - will increase overhead of loading field data; too much memory - used for field data cache will decrease amount of heap available - for other operations. - format: int64 - maximum: 100 - minimum: 3 - type: integer - indices_memory_index_buffer_size: - description: - indices.memory.index_buffer_size Percentage value. - Default is 10%. Total amount of heap used for indexing buffer, - before writing segments to disk. This is an expert setting. - Too low value will slow down indexing; too high value will - increase indexing performance but causes performance issues - for query performance. - format: int64 - maximum: 40 - minimum: 3 - type: integer - indices_queries_cache_size: - description: - indices.queries.cache.size Percentage value. - Default is 10%. Maximum amount of heap used for query cache. - This is an expert setting. Too low value will decrease query - performance and increase performance for other operations; - too high value will cause issues with other OpenSearch functionality. - format: int64 - maximum: 40 - minimum: 3 - type: integer - indices_query_bool_max_clause_count: - description: - indices.query.bool.max_clause_count Maximum number - of clauses Lucene BooleanQuery can have. The default value - (1024) is relatively high, and increasing it may cause performance - issues. Investigate other approaches first before increasing - this value. - format: int64 - maximum: 4096 - minimum: 64 - type: integer - reindex_remote_whitelist: - description: - reindex_remote_whitelist Whitelisted addresses - for reindexing. Changing this value will cause all OpenSearch - instances to restart. Address (hostname:port or IP:port) - items: - type: string - type: array - search_max_buckets: - description: - search.max_buckets Maximum number of aggregation - buckets allowed in a single response. OpenSearch default - value is used when this is not defined. - format: int64 - maximum: 20000 - minimum: 1 - type: integer - thread_pool_analyze_queue_size: - description: - analyze thread pool queue size for the thread - pool queue. See documentation for exact details. - format: int64 - maximum: 2000 - minimum: 10 - type: integer - thread_pool_analyze_size: - description: - analyze thread pool size for the thread pool. - See documentation for exact details. Do note this may have - maximum value depending on CPU count - value is automatically - lowered if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_force_merge_size: - description: - force_merge thread pool size for the thread pool. - See documentation for exact details. Do note this may have - maximum value depending on CPU count - value is automatically - lowered if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_get_queue_size: - description: - get thread pool queue size for the thread pool - queue. See documentation for exact details. - format: int64 - maximum: 2000 - minimum: 10 - type: integer - thread_pool_get_size: - description: - get thread pool size for the thread pool. See - documentation for exact details. Do note this may have maximum - value depending on CPU count - value is automatically lowered - if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_index_size: - description: - index thread pool size for the thread pool. See - documentation for exact details. Do note this may have maximum - value depending on CPU count - value is automatically lowered - if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_search_queue_size: - description: - search thread pool queue size for the thread - pool queue. See documentation for exact details. - format: int64 - maximum: 2000 - minimum: 10 - type: integer - thread_pool_search_size: - description: - search thread pool size for the thread pool. - See documentation for exact details. Do note this may have - maximum value depending on CPU count - value is automatically - lowered if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_search_throttled_queue_size: - description: - search_throttled thread pool queue size for the - thread pool queue. See documentation for exact details. - format: int64 - maximum: 2000 - minimum: 10 - type: integer - thread_pool_search_throttled_size: - description: - search_throttled thread pool size for the thread - pool. See documentation for exact details. Do note this - may have maximum value depending on CPU count - value is - automatically lowered if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - thread_pool_write_queue_size: - description: - write thread pool queue size for the thread pool - queue. See documentation for exact details. - format: int64 - maximum: 2000 - minimum: 10 - type: integer - thread_pool_write_size: - description: - write thread pool size for the thread pool. See - documentation for exact details. Do note this may have maximum - value depending on CPU count - value is automatically lowered - if set to higher than maximum value. - format: int64 - maximum: 128 - minimum: 1 - type: integer - type: object - opensearch_dashboards: - description: OpenSearch Dashboards settings - properties: - enabled: - description: Enable or disable OpenSearch Dashboards - type: boolean - max_old_space_size: - description: - "max_old_space_size Limits the maximum amount - of memory (in MiB) the OpenSearch Dashboards process can - use. This sets the max_old_space_size option of the nodejs - running the OpenSearch Dashboards. Note: the memory reserved - by OpenSearch Dashboards is not available for OpenSearch." - format: int64 - maximum: 1024 - minimum: 64 - type: integer - opensearch_request_timeout: - description: - Timeout in milliseconds for requests made by - OpenSearch Dashboards towards OpenSearch - format: int64 - maximum: 120000 - minimum: 5000 - type: integer - type: object - opensearch_version: - description: OpenSearch major version - type: string - private_access: - description: - Allow access to selected service ports from private - networks - properties: - opensearch: - description: - Allow clients to connect to opensearch with a - DNS name that always resolves to the service's private IP - addresses. Only available in certain network locations - type: boolean - opensearch_dashboards: - description: - Allow clients to connect to opensearch_dashboards - with a DNS name that always resolves to the service's private - IP addresses. Only available in certain network locations - type: boolean - prometheus: - description: - Allow clients to connect to prometheus with a - DNS name that always resolves to the service's private IP - addresses. Only available in certain network locations - type: boolean - type: object - privatelink_access: - description: - Allow access to selected service components through - Privatelink - properties: - opensearch: - description: Enable opensearch - type: boolean - opensearch_dashboards: - description: Enable opensearch_dashboards - type: boolean - type: object - project_to_fork_from: - description: - Name of another project to fork a service from. This - has effect only when a new service is being created. - maxLength: 63 - type: string - public_access: - description: - Allow access to selected service ports from the public - Internet - properties: - opensearch: - description: - Allow clients to connect to opensearch from the - public internet for service nodes that are in a project - VPC or another type of private network - type: boolean - opensearch_dashboards: - description: - Allow clients to connect to opensearch_dashboards - from the public internet for service nodes that are in a - project VPC or another type of private network - type: boolean - prometheus: - description: - Allow clients to connect to prometheus from the - public internet for service nodes that are in a project - VPC or another type of private network - type: boolean - type: object - recovery_basebackup_name: - description: Name of the basebackup to restore in forked service - format: ^[a-zA-Z0-9-_:.]+$ - maxLength: 128 - type: string - service_to_fork_from: - description: - Name of another service to fork from. This has effect - only when a new service is being created. - maxLength: 63 - type: string - static_ips: - description: Static IP addresses Use static public IP addresses - type: boolean - type: object - required: - - authSecretRef - - project - type: object - status: - description: ServiceStatus defines the observed state of service - properties: - conditions: - description: - Conditions represent the latest available observations - of a service state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - state: - description: Service state - type: string - required: - - conditions - - state - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkaacls.aiven.io -spec: - group: aiven.io - names: - kind: KafkaACL - listKind: KafkaACLList - plural: kafkaacls - singular: kafkaacl - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.serviceName - name: Service Name - type: string - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.username - name: Username - type: string - - jsonPath: .spec.permission - name: Permission - type: string - - jsonPath: .spec.topic - name: Topic - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: KafkaACL is the Schema for the kafkaacls API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaACLSpec defines the desired state of KafkaACL - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - permission: - description: Kafka permission to grant (admin, read, readwrite, write) - enum: - - admin - - read - - readwrite - - write - type: string - project: - description: Project to link the Kafka ACL to - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - serviceName: - description: Service to link the Kafka ACL to - maxLength: 63 - type: string - topic: - description: Topic name pattern for the ACL entry - type: string - username: - description: Username pattern for the ACL entry - type: string - required: - - authSecretRef - - permission - - project - - serviceName - - topic - - username - type: object - status: - description: KafkaACLStatus defines the observed state of KafkaACL - properties: - conditions: - description: - Conditions represent the latest available observations - of an KafkaACL state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - id: - description: Kafka ACL ID - type: string - required: - - conditions - - id - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkaconnectors.aiven.io -spec: - group: aiven.io - names: - kind: KafkaConnector - listKind: KafkaConnectorList - plural: kafkaconnectors - singular: kafkaconnector - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.serviceName - name: Service Name - type: string - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.connectorClass - name: Connector Class - type: string - - jsonPath: .status.state - name: State - type: string - - jsonPath: .status.tasksStatus.total - name: Tasks Total - type: integer - - jsonPath: .status.tasksStatus.running - name: Tasks Running - type: integer - name: v1alpha1 - schema: - openAPIV3Schema: - description: KafkaConnector is the Schema for the kafkaconnectors API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaConnectorSpec defines the desired state of KafkaConnector - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - connectorClass: - description: The Java class of the connector. - maxLength: 1024 - type: string - project: - description: Target project. - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - serviceName: - description: Service name. - maxLength: 63 - type: string - userConfig: - additionalProperties: - type: string - description: - The connector specific configuration To build config - values from secret the template function `{{ fromSecret "name" "key" - }}` is provided when interpreting the keys - type: object - required: - - authSecretRef - - connectorClass - - project - - serviceName - - userConfig - type: object - status: - description: KafkaConnectorStatus defines the observed state of KafkaConnector - properties: - conditions: - description: - Conditions represent the latest available observations - of an kafka connector state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - pluginStatus: - description: - PluginStatus contains metadata about the configured connector - plugin - properties: - author: - type: string - class: - type: string - docUrl: - type: string - title: - type: string - type: - type: string - version: - type: string - required: - - author - - class - - docUrl - - title - - type - - version - type: object - state: - description: Connector state - type: string - tasksStatus: - description: TasksStatus contains metadata about the running tasks - properties: - failed: - type: integer - paused: - type: integer - running: - type: integer - stackTrace: - type: string - total: - type: integer - unassigned: - type: integer - unknown: - type: integer - required: - - total - type: object - required: - - conditions - - pluginStatus - - state - - tasksStatus - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkaconnects.aiven.io -spec: - group: aiven.io - names: - kind: KafkaConnect - listKind: KafkaConnectList - plural: kafkaconnects - singular: kafkaconnect - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .status.state - name: State - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: KafkaConnect is the Schema for the kafkaconnects API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaConnectSpec defines the desired state of KafkaConnect - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - cloudName: - description: Cloud the service runs in. - maxLength: 256 - type: string - maintenanceWindowDow: - description: - Day of week when maintenance operations should be performed. - One monday, tuesday, wednesday, etc. - enum: - - monday - - tuesday - - wednesday - - thursday - - friday - - saturday - - sunday - - never - type: string - maintenanceWindowTime: - description: - Time of day when maintenance operations should be performed. - UTC time in HH:mm:ss format. - maxLength: 8 - type: string - plan: - description: Subscription plan. - maxLength: 128 - type: string - project: - description: Target project. - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - projectVpcId: - description: Identifier of the VPC the service should be in, if any. - maxLength: 36 - type: string - tags: - additionalProperties: - type: string - description: - Tags are key-value pairs that allow you to categorize - services. - type: object - terminationProtection: - description: - Prevent service from being deleted. It is recommended - to have this enabled for all services. - type: boolean - userConfig: - description: PostgreSQL specific user configuration options - properties: - connector_client_config_override_policy: - description: - Defines what client configurations can be overridden - by the connector. Default is None - type: string - consumer_auto_offset_reset: - description: - What to do when there is no initial offset in Kafka - or if the current offset does not exist any more on the server. - Default is earliest - type: string - consumer_fetch_max_bytes: - description: - Records are fetched in batches by the consumer, and - if the first record batch in the first non-empty partition of - the fetch is larger than this value, the record batch will still - be returned to ensure that the consumer can make progress. As - such, this is not a absolute maximum. - format: int64 - type: integer - consumer_isolation_level: - description: - Transaction read isolation level. read_uncommitted - is the default, but read_committed can be used if consume-exactly-once - behavior is desired. - type: string - consumer_max_partition_fetch_bytes: - description: - Records are fetched in batches by the consumer.If - the first record batch in the first non-empty partition of the - fetch is larger than this limit, the batch will still be returned - to ensure that the consumer can make progress. - format: int64 - type: integer - consumer_max_poll_interval_ms: - description: - The maximum delay in milliseconds between invocations - of poll() when using consumer group management (defaults to - 300000). - format: int64 - type: integer - consumer_max_poll_records: - description: - The maximum number of records returned in a single - call to poll() (defaults to 500). - format: int64 - type: integer - offset_flush_interval_ms: - description: - The interval at which to try committing offsets for - tasks (defaults to 60000). - format: int64 - type: integer - private_access: - description: - Allow access to selected service ports from private - networks - properties: - kafka_connect: - description: - Allow clients to connect to kafka_connect with - a DNS name that always resolves to the service's private - IP addresses. Only available in certain network locations - type: boolean - prometheus: - description: - Allow clients to connect to prometheus with a - DNS name that always resolves to the service's private IP - addresses. Only available in certain network locations - type: boolean - type: object - producer_max_request_size: - description: - This setting will limit the number of record batches - the producer will send in a single request to avoid sending - huge requests. - format: int64 - type: integer - public_access: - description: - Allow access to selected service ports from the public - Internet - properties: - kafka_connect: - description: - Allow clients to connect to kafka_connect from - the public internet for service nodes that are in a project - VPC or another type of private network - type: boolean - prometheus: - description: - Allow clients to connect to prometheus from the - public internet for service nodes that are in a project - VPC or another type of private network - type: boolean - type: object - session_timeout_ms: - description: - The timeout in milliseconds used to detect failures - when using Kafka’s group management facilities (defaults to - 10000). - format: int64 - type: integer - type: object - required: - - authSecretRef - - project - type: object - status: - description: ServiceStatus defines the observed state of service - properties: - conditions: - description: - Conditions represent the latest available observations - of a service state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - state: - description: Service state - type: string - required: - - conditions - - state - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkas.aiven.io -spec: - group: aiven.io - names: - kind: Kafka - listKind: KafkaList - plural: kafkas - singular: kafka - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.cloudName - name: Region - type: string - - jsonPath: .spec.plan - name: Plan - type: string - - jsonPath: .status.state - name: State - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: Kafka is the Schema for the kafkas API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaSpec defines the desired state of Kafka - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - cloudName: - description: Cloud the service runs in. - maxLength: 256 - type: string - connInfoSecretTarget: - description: Information regarding secret creation - properties: - name: - description: Name of the Secret resource to be created - type: string - required: - - name - type: object - disk_space: - description: - The disk space of the service, possible values depend - on the service type, the cloud provider and the project. Reducing - will result in the service re-balancing. - format: ^[1-9][0-9]*(GiB|G)* - type: string - karapace: - description: - Switch the service to use Karapace for schema registry - and REST proxy - type: boolean - maintenanceWindowDow: - description: - Day of week when maintenance operations should be performed. - One monday, tuesday, wednesday, etc. - enum: - - monday - - tuesday - - wednesday - - thursday - - friday - - saturday - - sunday - - never - type: string - maintenanceWindowTime: - description: - Time of day when maintenance operations should be performed. - UTC time in HH:mm:ss format. - maxLength: 8 - type: string - plan: - description: Subscription plan. - maxLength: 128 - type: string - project: - description: Target project. - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - projectVpcId: - description: Identifier of the VPC the service should be in, if any. - maxLength: 36 - type: string - tags: - additionalProperties: - type: string - description: - Tags are key-value pairs that allow you to categorize - services. - type: object - terminationProtection: - description: - Prevent service from being deleted. It is recommended - to have this enabled for all services. - type: boolean - userConfig: - description: Kafka specific user configuration options - properties: - ip_filter: - description: - IP filter Allow incoming connections from CIDR address - block, e.g. '10.20.0.0/16' - items: - type: string - type: array - kafka: - description: Kafka broker configuration values - properties: - auto_create_topics_enable: - description: - auto.create.topics.enable Enable auto creation - of topics - type: boolean - compression_type: - description: - compression.type Specify the final compression - type for a given topic. This configuration accepts the standard - compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It - additionally accepts 'uncompressed' which is equivalent - to no compression; and 'producer' which means retain the - original compression codec set by the producer. - enum: - - gzip - - snappy - - lz4 - - zstd - - uncompressed - - producer - type: string - connections_max_idle_ms: - description: - "connections.max.idle.ms Idle connections timeout: - the server socket processor threads close the connections - that idle for longer than this." - format: int64 - maximum: 3600000 - minimum: 1000 - type: integer - default_replication_factor: - description: - default.replication.factor Replication factor - for autocreated topics - format: int64 - maximum: 10 - minimum: 1 - type: integer - group_max_session_timeout_ms: - description: - group.max.session.timeout.ms The maximum allowed - session timeout for registered consumers. Longer timeouts - give consumers more time to process messages in between - heartbeats at the cost of a longer time to detect failures. - format: int64 - maximum: 1800000 - minimum: 0 - type: integer - group_min_session_timeout_ms: - description: - group.min.session.timeout.ms The minimum allowed - session timeout for registered consumers. Longer timeouts - give consumers more time to process messages in between - heartbeats at the cost of a longer time to detect failures. - format: int64 - maximum: 60000 - minimum: 0 - type: integer - log_cleaner_delete_retention_ms: - description: - log.cleaner.delete.retention.ms How long are - delete records retained? - format: int64 - maximum: 315569260000 - minimum: 0 - type: integer - log_cleaner_max_compaction_lag_ms: - description: - log.cleaner.max.compaction.lag.ms The maximum - amount of time message will remain uncompacted. Only applicable - for logs that are being compacted - format: int64 - minimum: 30000 - type: integer - log_cleaner_min_cleanable_ratio: - description: - log.cleaner.min.cleanable.ratio Controls log - compactor frequency. Larger value means more frequent compactions - but also more space wasted for logs. Consider setting log.cleaner.max.compaction.lag.ms - to enforce compactions sooner, instead of setting a very - high value for this option. - format: int64 - maximum: 1 - minimum: 0 - type: integer - log_cleaner_min_compaction_lag_ms: - description: - log.cleaner.min.compaction.lag.ms The minimum - time a message will remain uncompacted in the log. Only - applicable for logs that are being compacted. - format: int64 - minimum: 0 - type: integer - log_cleanup_policy: - description: - log.cleanup.policy The default cleanup policy - for segments beyond the retention window - enum: - - compact - - delete - type: string - log_flush_interval_messages: - description: - log.flush.interval.messages The number of messages - accumulated on a log partition before messages are flushed - to disk - format: int64 - minimum: 1 - type: integer - log_flush_interval_ms: - description: - log.flush.interval.ms The maximum time in ms - that a message in any topic is kept in memory before flushed - to disk. If not set, the value in log.flush.scheduler.interval.ms - is used - format: int64 - minimum: 0 - type: integer - log_index_interval_bytes: - description: - log.index.interval.bytes The interval with which - Kafka adds an entry to the offset index - format: int64 - maximum: 104857600 - minimum: 0 - type: integer - log_index_size_max_bytes: - description: - log.index.size.max.bytes The maximum size in - bytes of the offset index - format: int64 - maximum: 104857600 - minimum: 1048576 - type: integer - log_message_downconversion_enable: - description: - log.message.downconversion.enable This configuration - controls whether down-conversion of message formats is enabled - to satisfy consume requests. - type: boolean - log_message_timestamp_difference_max_ms: - description: - log.message.timestamp.difference.max.ms The maximum - difference allowed between the timestamp when a broker receives - a message and the timestamp specified in the message - format: int64 - minimum: 0 - type: integer - log_message_timestamp_type: - description: - log.message.timestamp.type Define whether the - timestamp in the message is message create time or log append - time. - enum: - - CreateTime - - LogAppendTime - type: string - log_preallocate: - description: - log.preallocate Should pre allocate file when - create new segment? - type: boolean - log_retention_bytes: - description: - log.retention.bytes The maximum size of the log - before deleting messages - format: int64 - type: integer - log_retention_hours: - description: - log.retention.hours The number of hours to keep - a log file before deleting it - format: int64 - maximum: 2147483647 - type: integer - log_retention_ms: - description: - log.retention.ms The number of milliseconds to - keep a log file before deleting it (in milliseconds), If - not set, the value in log.retention.minutes is used. If - set to -1, no time limit is applied. - format: int64 - type: integer - log_roll_jitter_ms: - description: - log.roll.jitter.ms The maximum jitter to subtract - from logRollTimeMillis (in milliseconds). If not set, the - value in log.roll.jitter.hours is used - format: int64 - minimum: 0 - type: integer - log_roll_ms: - description: - log.roll.ms The maximum time before a new log - segment is rolled out (in milliseconds). - format: int64 - minimum: 1 - type: integer - log_segment_bytes: - description: - log.segment.bytes The maximum size of a single - log file - format: int64 - maximum: 1073741824 - minimum: 10485760 - type: integer - log_segment_delete_delay_ms: - description: - log.segment.delete.delay.ms The amount of time - to wait before deleting a file from the filesystem - format: int64 - maximum: 3600000 - minimum: 0 - type: integer - max_connections_per_ip: - description: - max.connections.per.ip The maximum number of - connections allowed from each ip address (defaults to 2147483647). - format: int64 - maximum: 2147483647 - minimum: 256 - type: integer - max_incremental_fetch_session_cache_slots: - description: - max.incremental.fetch.session.cache.slots The - maximum number of incremental fetch sessions that the broker - will maintain. - format: int64 - maximum: 10000 - minimum: 1000 - type: integer - message_max_bytes: - description: - message.max.bytes The maximum size of message - that the server can receive. - format: int64 - maximum: 100001200 - minimum: 0 - type: integer - min_insync_replicas: - description: - min.insync.replicas When a producer sets acks - to 'all' (or '-1'), min.insync.replicas specifies the minimum - number of replicas that must acknowledge a write for the - write to be considered successful. - format: int64 - maximum: 7 - minimum: 1 - type: integer - num_partitions: - description: - num.partitions Number of partitions for autocreated - topics - format: int64 - maximum: 1000 - minimum: 1 - type: integer - offsets_retention_minutes: - description: - offsets.retention.minutes Log retention window - in minutes for offsets topic - format: int64 - maximum: 2147483647 - minimum: 1 - type: integer - producer_purgatory_purge_interval_requests: - description: - producer.purgatory.purge.interval.requests The - purge interval (in number of requests) of the producer request - purgatory(defaults to 1000). - format: int64 - maximum: 10000 - minimum: 10 - type: integer - replica_fetch_max_bytes: - description: - replica.fetch.max.bytes The number of bytes of - messages to attempt to fetch for each partition (defaults - to 1048576). This is not an absolute maximum, if the first - record batch in the first non-empty partition of the fetch - is larger than this value, the record batch will still be - returned to ensure that progress can be made. - format: int64 - maximum: 104857600 - minimum: 1048576 - type: integer - replica_fetch_response_max_bytes: - description: - replica.fetch.response.max.bytes Maximum bytes - expected for the entire fetch response (defaults to 10485760). - Records are fetched in batches, and if the first record - batch in the first non-empty partition of the fetch is larger - than this value, the record batch will still be returned - to ensure that progress can be made. As such, this is not - an absolute maximum. - format: int64 - maximum: 1048576000 - minimum: 10485760 - type: integer - socket_request_max_bytes: - description: - socket.request.max.bytes The maximum number of - bytes in a socket request (defaults to 104857600). - format: int64 - maximum: 209715200 - minimum: 10485760 - type: integer - type: object - kafka_authentication_methods: - description: Kafka authentication methods - properties: - certificate: - description: Enable certificate/SSL authentication - type: boolean - sasl: - description: Enable SASL authentication - type: boolean - type: object - kafka_connect: - description: Enable Kafka Connect service - type: boolean - kafka_connect_user_config: - description: Kafka Connect configuration values - properties: - connector_client_config_override_policy: - description: - Client config override policy Defines what client - configurations can be overridden by the connector. Default - is None - enum: - - None - - All - type: string - consumer_auto_offset_reset: - description: - Consumer auto offset reset What to do when there - is no initial offset in Kafka or if the current offset does - not exist any more on the server. Default is earliest - enum: - - earliest - - latest - type: string - consumer_fetch_max_bytes: - description: - The maximum amount of data the server should - return for a fetch request Records are fetched in batches - by the consumer, and if the first record batch in the first - non-empty partition of the fetch is larger than this value, - the record batch will still be returned to ensure that the - consumer can make progress. As such, this is not a absolute - maximum. - format: int64 - maximum: 104857600 - minimum: 1048576 - type: integer - consumer_isolation_level: - description: - Consumer isolation level Transaction read isolation - level. read_uncommitted is the default, but read_committed - can be used if consume-exactly-once behavior is desired. - enum: - - read_uncommitted - - read_committed - type: string - consumer_max_partition_fetch_bytes: - description: - The maximum amount of data per-partition the - server will return. Records are fetched in batches by the - consumer.If the first record batch in the first non-empty - partition of the fetch is larger than this limit, the batch - will still be returned to ensure that the consumer can make - progress. - format: int64 - maximum: 104857600 - minimum: 1048576 - type: integer - consumer_max_poll_interval_ms: - description: - The maximum delay between polls when using consumer - group management The maximum delay in milliseconds between - invocations of poll() when using consumer group management - (defaults to 300000). - format: int64 - maximum: 2147483647 - minimum: 1 - type: integer - consumer_max_poll_records: - description: - The maximum number of records returned by a single - poll The maximum number of records returned in a single - call to poll() (defaults to 500). - format: int64 - maximum: 10000 - minimum: 1 - type: integer - offset_flush_interval_ms: - description: - The interval at which to try committing offsets - for tasks The interval at which to try committing offsets - for tasks (defaults to 60000). - format: int64 - maximum: 100000000 - minimum: 1 - type: integer - offset_flush_timeout_ms: - description: - Offset flush timeout Maximum number of milliseconds - to wait for records to flush and partition offset data to - be committed to offset storage before cancelling the process - and restoring the offset data to be committed in a future - attempt (defaults to 5000). - format: int64 - maximum: 2147483647 - minimum: 1 - type: integer - producer_max_request_size: - description: - The maximum size of a request in bytes This setting - will limit the number of record batches the producer will - send in a single request to avoid sending huge requests. - format: int64 - maximum: 10485760 - minimum: 131072 - type: integer - session_timeout_ms: - description: - The timeout used to detect failures when using - Kafka’s group management facilities The timeout in milliseconds - used to detect failures when using Kafka’s group management - facilities (defaults to 10000). - format: int64 - maximum: 2147483647 - minimum: 1 - type: integer - type: object - kafka_rest: - description: Enable Kafka-REST service - type: boolean - kafka_rest_config: - description: Kafka REST configuration - properties: - consumer_enable_auto_commit: - description: - consumer.enable.auto.commit If true the consumer's - offset will be periodically committed to Kafka in the background - type: boolean - consumer_request_max_bytes: - description: - consumer.request.max.bytes Maximum number of - bytes in unencoded message keys and values by a single request - format: int64 - maximum: 671088640 - minimum: 0 - type: integer - consumer_request_timeout_ms: - description: - consumer.request.timeout.ms The maximum total - time to wait for messages for a request if the maximum number - of messages has not yet been reached - enum: - - 1000 - - 15000 - - 30000 - format: int64 - maximum: 30000 - minimum: 1000 - type: integer - custom_domain: - description: - Custom domain Serve the web frontend using a - custom CNAME pointing to the Aiven DNS name - maxLength: 255 - type: string - producer_acks: - description: - producer.acks The number of acknowledgments the - producer requires the leader to have received before considering - a request complete. If set to 'all' or '-1', the leader - will wait for the full set of in-sync replicas to acknowledge - the record. - enum: - - all - - -1 - - 0 - - 1 - type: string - producer_linger_ms: - description: - producer.linger.ms Wait for up to the given delay - to allow batching records together - format: int64 - maximum: 5000 - minimum: 0 - type: integer - public_access: - description: - Allow access to selected service ports from the - public Internet - properties: - kafka: - description: - Allow clients to connect to kafka from the - public internet for service nodes that are in a project - VPC or another type of private network - type: boolean - kafka_connect: - description: - Allow clients to connect to kafka_connect - from the public internet for service nodes that are - in a project VPC or another type of private network - type: boolean - kafka_rest: - description: - Allow clients to connect to kafka_rest from - the public internet for service nodes that are in a - project VPC or another type of private network - type: boolean - prometheus: - description: - Allow clients to connect to prometheus from - the public internet for service nodes that are in a - project VPC or another type of private network - type: boolean - schema_registry: - description: - Allow clients to connect to schema_registry - from the public internet for service nodes that are - in a project VPC or another type of private network - type: boolean - type: object - simpleconsumer_pool_size_max: - description: - simpleconsumer.pool.size.max Maximum number of - SimpleConsumers that can be instantiated per broker - format: int64 - maximum: 250 - minimum: 10 - type: integer - type: object - kafka_version: - description: Kafka major version - type: string - private_access: - description: - Allow access to selected service ports from private - networks - properties: - prometheus: - description: - Allow clients to connect to prometheus with a - DNS name that always resolves to the service's private IP - addresses. Only available in certain network locations - type: boolean - type: object - schema_registry: - description: Enable Schema-Registry service - type: boolean - schema_registry_config: - description: Schema Registry configuration - properties: - leader_eligibility: - description: - leader_eligibility If true, Karapace / Schema - Registry on the service nodes can participate in leader - election. It might be needed to disable this when the schemas - topic is replicated to a secondary cluster and Karapace - / Schema Registry there must not participate in leader election. - Defaults to 'true'. - type: boolean - topic_name: - description: - topic_name The durable single partition topic - that acts as the durable log for the data. This topic must - be compacted to avoid losing data due to retention policy. - Please note that changing this configuration in an existing - Schema Registry / Karapace setup leads to previous schemas - being inaccessible, data encoded with them potentially unreadable - and schema ID sequence put out of order. It's only possible - to do the switch while Schema Registry / Karapace is disabled. - Defaults to '_schemas'. - maxLength: 249 - type: string - type: object - type: object - required: - - authSecretRef - - project - type: object - status: - description: ServiceStatus defines the observed state of service - properties: - conditions: - description: - Conditions represent the latest available observations - of a service state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - state: - description: Service state - type: string - required: - - conditions - - state - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkaschemas.aiven.io -spec: - group: aiven.io - names: - kind: KafkaSchema - listKind: KafkaSchemaList - plural: kafkaschemas - singular: kafkaschema - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.serviceName - name: Service Name - type: string - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.subjectName - name: Subject - type: string - - jsonPath: .spec.compatibilityLevel - name: Compatibility Level - type: string - - jsonPath: .status.version - name: Version - type: number - name: v1alpha1 - schema: - openAPIV3Schema: - description: KafkaSchema is the Schema for the kafkaschemas API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaSchemaSpec defines the desired state of KafkaSchema - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - compatibilityLevel: - description: Kafka Schemas compatibility level - enum: - - BACKWARD - - BACKWARD_TRANSITIVE - - FORWARD - - FORWARD_TRANSITIVE - - FULL - - FULL_TRANSITIVE - - NONE - type: string - project: - description: Project to link the Kafka Schema to - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - schema: - description: - Kafka Schema configuration should be a valid Avro Schema - JSON format - type: string - serviceName: - description: Service to link the Kafka Schema to - maxLength: 63 - type: string - subjectName: - description: Kafka Schema Subject name - maxLength: 63 - type: string - required: - - authSecretRef - - project - - schema - - serviceName - - subjectName - type: object - status: - description: KafkaSchemaStatus defines the observed state of KafkaSchema - properties: - conditions: - description: - Conditions represent the latest available observations - of an KafkaSchema state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - version: - description: Kafka Schema configuration version - type: integer - required: - - conditions - - version - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: kafkatopics.aiven.io -spec: - group: aiven.io - names: - kind: KafkaTopic - listKind: KafkaTopicList - plural: kafkatopics - singular: kafkatopic - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.serviceName - name: Service Name - type: string - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.partitions - name: Partitions - type: string - - jsonPath: .spec.replication - name: Replication - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: KafkaTopic is the Schema for the kafkatopics API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: KafkaTopicSpec defines the desired state of KafkaTopic - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - config: - description: Kafka topic configuration - properties: - cleanup_policy: - description: cleanup.policy value - type: string - compression_type: - description: compression.type value - type: string - delete_retention_ms: - description: delete.retention.ms value - format: int64 - type: integer - file_delete_delay_ms: - description: file.delete.delay.ms value - format: int64 - type: integer - flush_messages: - description: flush.messages value - format: int64 - type: integer - flush_ms: - description: flush.ms value - format: int64 - type: integer - index_interval_bytes: - description: index.interval.bytes value - format: int64 - type: integer - max_compaction_lag_ms: - description: max.compaction.lag.ms value - format: int64 - type: integer - max_message_bytes: - description: max.message.bytes value - format: int64 - type: integer - message_downconversion_enable: - description: message.downconversion.enable value - type: boolean - message_format_version: - description: message.format.version value - type: string - message_timestamp_difference_max_ms: - description: message.timestamp.difference.max.ms value - format: int64 - type: integer - message_timestamp_type: - description: message.timestamp.type value - type: string - min_compaction_lag_ms: - description: min.compaction.lag.ms value - format: int64 - type: integer - min_insync_replicas: - description: min.insync.replicas value - format: int64 - type: integer - preallocate: - description: preallocate value - type: boolean - retention_bytes: - description: retention.bytes value - format: int64 - type: integer - retention_ms: - description: retention.ms value - format: int64 - type: integer - segment_bytes: - description: segment.bytes value - format: int64 - type: integer - segment_index_bytes: - description: segment.index.bytes value - format: int64 - type: integer - segment_jitter_ms: - description: segment.jitter.ms value - format: int64 - type: integer - segment_ms: - description: segment.ms value - format: int64 - type: integer - type: object - partitions: - description: Number of partitions to create in the topic - maximum: 1000000 - minimum: 1 - type: integer - project: - description: Target project. - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - replication: - description: Replication factor for the topic - minimum: 2 - type: integer - serviceName: - description: Service name. - maxLength: 63 - type: string - tags: - description: Kafka topic tags - items: - properties: - key: - format: ^[a-zA-Z0-9_-]*$ - maxLength: 64 - minLength: 1 - type: string - value: - format: ^[a-zA-Z0-9_-]*$ - maxLength: 256 - type: string - required: - - key - type: object - type: array - termination_protection: - description: - It is a Kubernetes side deletion protections, which prevents - the kafka topic from being deleted by Kubernetes. It is recommended - to enable this for any production databases containing critical - data. - type: boolean - required: - - authSecretRef - - partitions - - project - - replication - - serviceName - type: object - status: - description: KafkaTopicStatus defines the observed state of KafkaTopic - properties: - conditions: - description: - Conditions represent the latest available observations - of an KafkaTopic state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - state: - description: State represents the state of the kafka topic - type: string - required: - - conditions - - state - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: projects.aiven.io -spec: - group: aiven.io - names: - kind: Project - listKind: ProjectList - plural: projects - singular: project - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: Project is the Schema for the projects API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: ProjectSpec defines the desired state of Project - properties: - accountId: - description: Account ID - maxLength: 32 - type: string - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - billingAddress: - description: Billing name and address of the project - maxLength: 1000 - type: string - billingCurrency: - description: Billing currency - enum: - - AUD - - CAD - - CHF - - DKK - - EUR - - GBP - - NOK - - SEK - - USD - type: string - billingEmails: - description: Billing contact emails of the project - items: - type: string - maxItems: 10 - type: array - billingExtraText: - description: - Extra text to be included in all project invoices, e.g. - purchase order or cost center number - maxLength: 1000 - type: string - billingGroupId: - description: BillingGroup ID - maxLength: 36 - minLength: 36 - type: string - cardId: - description: - Credit card ID; The ID may be either last 4 digits of - the card or the actual ID - maxLength: 64 - type: string - cloud: - description: "Target cloud, example: aws-eu-central-1" - maxLength: 256 - type: string - connInfoSecretTarget: - description: Information regarding secret creation - properties: - name: - description: Name of the Secret resource to be created - type: string - required: - - name - type: object - copyFromProject: - description: Project name from which to copy settings to the new project - maxLength: 63 - type: string - countryCode: - description: Billing country code of the project - maxLength: 2 - minLength: 2 - type: string - tags: - additionalProperties: - type: string - description: - Tags are key-value pairs that allow you to categorize - projects - type: object - technicalEmails: - description: Technical contact emails of the project - items: - type: string - maxItems: 10 - type: array - required: - - authSecretRef - type: object - status: - description: ProjectStatus defines the observed state of Project - properties: - availableCredits: - description: Available credirs - type: string - conditions: - description: - Conditions represent the latest available observations - of an Project state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - country: - description: Country name - type: string - estimatedBalance: - description: Estimated balance - type: string - paymentMethod: - description: Payment method name - type: string - vatId: - description: EU VAT Identification Number - maxLength: 64 - type: string - required: - - conditions - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: projectvpcs.aiven.io -spec: - group: aiven.io - names: - kind: ProjectVPC - listKind: ProjectVPCList - plural: projectvpcs - singular: projectvpc - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.project - name: Project - type: string - - jsonPath: .spec.cloudName - name: Cloud - type: string - - jsonPath: .spec.networkCidr - name: Network CIDR - type: string - - jsonPath: .status.state - name: State - type: string - name: v1alpha1 - schema: - openAPIV3Schema: - description: ProjectVPC is the Schema for the projectvpcs API - 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 - kind: - description: - "Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - type: string - metadata: - type: object - spec: - description: ProjectVPCSpec defines the desired state of ProjectVPC - properties: - authSecretRef: - description: Authentication reference to Aiven token in a secret - properties: - key: - minLength: 1 - type: string - name: - minLength: 1 - type: string - required: - - key - - name - type: object - cloudName: - description: Cloud the VPC is in - maxLength: 256 - type: string - networkCidr: - description: Network address range used by the VPC like 192.168.0.0/24 - maxLength: 36 - type: string - project: - description: The project the VPC belongs to - format: ^[a-zA-Z0-9_-]*$ - maxLength: 63 - type: string - required: - - authSecretRef - - cloudName - - networkCidr - - project - type: object - status: - description: ProjectVPCStatus defines the observed state of ProjectVPC - properties: - conditions: - description: - Conditions represent the latest available observations - of an ProjectVPC state - items: - description: - "Condition contains details for one aspect of the current - state of this API Resource. --- This struct is intended for direct - use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a - foo's current state. // Known .status.conditions.type are: - \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type - \ // +patchStrategy=merge // +listType=map // +listMapKey=type - \ Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` - \n // other fields }" - properties: - lastTransitionTime: - description: - lastTransitionTime is the last time the condition - transitioned from one status to another. This should be when - the underlying condition changed. If that is not known, then - using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: - message is a human readable message indicating - details about the transition. This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: - observedGeneration represents the .metadata.generation - that the condition was set based upon. For instance, if .metadata.generation - is currently 12, but the .status.conditions[x].observedGeneration - is 9, the condition is out of date with respect to the current - state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: - reason contains a programmatic identifier indicating - the reason for the condition's last transition. Producers - of specific condition types may define expected values and - meanings for this field, and whether the values are considered - a guaranteed API. The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: - type of condition in CamelCase or in foo.example.com/CamelCase. - --- Many .condition.type values are consistent across resources - like Available, but because arbitrary conditions can be useful - (see .node.status.conditions), the ability to deconflict is - important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - id: - description: Project VPC id - type: string - state: - description: State of VPC - type: string - required: - - conditions - - id - - state - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/generators/charts/crds.go b/generators/charts/crds.go index 7b20806d..758374c7 100644 --- a/generators/charts/crds.go +++ b/generators/charts/crds.go @@ -10,9 +10,7 @@ import ( cp "github.com/otiai10/copy" ) -// allCRDYaml contains all crds const ( - allCRDYaml = "aiven.io_crd-all.gen.yaml" crdSourceDir = "config/crd/bases/" crdDestinationDir = "templates" ) @@ -26,8 +24,6 @@ func copyCRDs(operatorPath, crdCharts string) error { return err } - // No need this one - _ = os.Remove(path.Join(dstCRDs, allCRDYaml)) return filepath.Walk(dstCRDs, fixCRD) } diff --git a/generators/docs/main.go b/generators/docs/main.go index 97a96716..4b4e4e1a 100644 --- a/generators/docs/main.go +++ b/generators/docs/main.go @@ -14,8 +14,6 @@ const ( // docsDirPath CRDs docs location to export to docsDirPath = "./docs/docs/api-reference/" examplesDirPath = docsDirPath + "examples" - // allCRDYaml contains all crds, should ignore - allCRDYaml = "aiven.io_crd-all.gen.yaml" ) func main() { @@ -38,10 +36,6 @@ func generate(crdDir, docsDir, examplesDir string) error { continue } - if crd.Name() == allCRDYaml { - continue - } - crdData, err := os.ReadFile(path.Join(crdDir, crd.Name())) if err != nil { return err