diff --git a/apis/kubedb/v1/elasticsearch_helpers.go b/apis/kubedb/v1/elasticsearch_helpers.go index 82c6857275..2a2a6d69ce 100644 --- a/apis/kubedb/v1/elasticsearch_helpers.go +++ b/apis/kubedb/v1/elasticsearch_helpers.go @@ -705,7 +705,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { } } - e.setDefaultInternalUsersAndRoleMappings(esVersion) + e.SetDefaultInternalUsersAndRoleMappings(esVersion) e.SetMetricsExporterDefaults(esVersion) e.SetTLSDefaults(esVersion) } @@ -723,7 +723,7 @@ func (e *Elasticsearch) SetMetricsExporterDefaults(esVersion *catalog.Elasticsea } // Set Default internal users settings -func (e *Elasticsearch) setDefaultInternalUsersAndRoleMappings(esVersion *catalog.ElasticsearchVersion) { +func (e *Elasticsearch) SetDefaultInternalUsersAndRoleMappings(esVersion *catalog.ElasticsearchVersion) { // If security is disabled (ie. DisableSecurity: true), ignore. if e.Spec.DisableSecurity { return diff --git a/apis/ops/v1alpha1/constant.go b/apis/ops/v1alpha1/constant.go index 5294fbc0df..4ccc60179c 100644 --- a/apis/ops/v1alpha1/constant.go +++ b/apis/ops/v1alpha1/constant.go @@ -111,6 +111,7 @@ const ( BasicAuthNextPasswordKey = "password.next" SecretAlreadyUpdatedAnnotation = "secret-already-updated" AuthDataPreviousKey = "authData.prev" + PatchDefaultConfig = "PatchDefaultConfig" ) // Restart