From b7c2085391d60157a4f46c0795a19b870759ee0c Mon Sep 17 00:00:00 2001 From: wejdross Date: Tue, 20 Dec 2022 11:53:21 +0100 Subject: [PATCH] fixing missing default Kafka version --- apis/exoscale/v1/dbaas_exoscale_kafka.go | 1 + packages/composite/dbaas/exoscale/kafka.yml | 1 + .../composite-dbaas-kafka-exoscale/appcat/appcat/composites.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/apis/exoscale/v1/dbaas_exoscale_kafka.go b/apis/exoscale/v1/dbaas_exoscale_kafka.go index 37b8b6452..546227e21 100644 --- a/apis/exoscale/v1/dbaas_exoscale_kafka.go +++ b/apis/exoscale/v1/dbaas_exoscale_kafka.go @@ -72,6 +72,7 @@ type ExoscaleKafkaServiceSpec struct { KafkaSettings runtime.RawExtension `json:"kafkaSettings,omitempty"` // +kubebuilder:validation:Enum="3.2" + // +kubebuilder:default="3.2" // Version contains the minor version for Kafka. // Currently only "3.2" is supported. Leave it empty to always get the latest supported version. diff --git a/packages/composite/dbaas/exoscale/kafka.yml b/packages/composite/dbaas/exoscale/kafka.yml index 83fd3d83d..7e183905c 100644 --- a/packages/composite/dbaas/exoscale/kafka.yml +++ b/packages/composite/dbaas/exoscale/kafka.yml @@ -85,6 +85,7 @@ parameters: type: object x-kubernetes-preserve-unknown-fields: true version: + default: "3.2" description: Version contains the minor version for Kafka. Currently only "3.2" is supported. Leave it empty to always get the latest supported version. enum: - "3.2" diff --git a/packages/tests/golden/composite-dbaas-kafka-exoscale/appcat/appcat/composites.yaml b/packages/tests/golden/composite-dbaas-kafka-exoscale/appcat/appcat/composites.yaml index a842a5330..41cb69f97 100644 --- a/packages/tests/golden/composite-dbaas-kafka-exoscale/appcat/appcat/composites.yaml +++ b/packages/tests/golden/composite-dbaas-kafka-exoscale/appcat/appcat/composites.yaml @@ -99,6 +99,7 @@ spec: type: object x-kubernetes-preserve-unknown-fields: true version: + default: '3.2' description: Version contains the minor version for Kafka. Currently only "3.2" is supported. Leave it empty to always get the latest supported version.