Skip to content

Commit

Permalink
Add opensearch rotateauth constants (#1369)
Browse files Browse the repository at this point in the history
* Add condition for patch config

Signed-off-by: pritamdas99 <[email protected]>

* Export internal user defaulting method

Signed-off-by: pritamdas99 <[email protected]>

---------

Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 authored Dec 18, 2024
1 parent 52bb834 commit d35054f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/kubedb/v1/elasticsearch_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) {
}
}

e.setDefaultInternalUsersAndRoleMappings(esVersion)
e.SetDefaultInternalUsersAndRoleMappings(esVersion)
e.SetMetricsExporterDefaults(esVersion)
e.SetTLSDefaults(esVersion)
}
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions apis/ops/v1alpha1/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const (
BasicAuthNextPasswordKey = "password.next"
SecretAlreadyUpdatedAnnotation = "secret-already-updated"
AuthDataPreviousKey = "authData.prev"
PatchDefaultConfig = "PatchDefaultConfig"
)

// Restart
Expand Down

0 comments on commit d35054f

Please sign in to comment.