From 4bf3c5af404e4f2e42c6262a66e5574d42c88f9f Mon Sep 17 00:00:00 2001 From: Marton Barta <51166675+bartam1@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:46:18 +0200 Subject: [PATCH] Fix let JKSPasswordName field to be empty (#874) --- api/v1beta1/kafkacluster_types.go | 2 +- charts/kafka-operator/templates/crds.yaml | 1 - config/base/crds/kafka.banzaicloud.io_kafkaclusters.yaml | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/v1beta1/kafkacluster_types.go b/api/v1beta1/kafkacluster_types.go index f798564a9..4703b4452 100644 --- a/api/v1beta1/kafkacluster_types.go +++ b/api/v1beta1/kafkacluster_types.go @@ -463,7 +463,7 @@ func (c IngressServiceSettings) GetServiceType() corev1.ServiceType { // SSLSecrets defines the Kafka SSL secrets type SSLSecrets struct { TLSSecretName string `json:"tlsSecretName"` - JKSPasswordName string `json:"jksPasswordName"` + JKSPasswordName string `json:"jksPasswordName,omitempty"` Create bool `json:"create,omitempty"` IssuerRef *cmmeta.ObjectReference `json:"issuerRef,omitempty"` // +kubebuilder:validation:Enum={"cert-manager"} diff --git a/charts/kafka-operator/templates/crds.yaml b/charts/kafka-operator/templates/crds.yaml index d1712c0d7..fa801775d 100644 --- a/charts/kafka-operator/templates/crds.yaml +++ b/charts/kafka-operator/templates/crds.yaml @@ -19744,7 +19744,6 @@ spec: tlsSecretName: type: string required: - - jksPasswordName - tlsSecretName type: object required: diff --git a/config/base/crds/kafka.banzaicloud.io_kafkaclusters.yaml b/config/base/crds/kafka.banzaicloud.io_kafkaclusters.yaml index 8b6bd04d9..816e953fe 100644 --- a/config/base/crds/kafka.banzaicloud.io_kafkaclusters.yaml +++ b/config/base/crds/kafka.banzaicloud.io_kafkaclusters.yaml @@ -19581,7 +19581,6 @@ spec: tlsSecretName: type: string required: - - jksPasswordName - tlsSecretName type: object required: