Skip to content

Commit

Permalink
Fix solr helper condition. (#1164)
Browse files Browse the repository at this point in the history
Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 authored Feb 27, 2024
1 parent 5344c20 commit 429a2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/kubedb/v1alpha2/solr_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ func (s *Solr) SetDefaults(slVersion *catalog.SolrVersion) {
}
}

if s.Spec.ZookeeperDigestSecret != nil {
if s.Spec.ZookeeperDigestSecret == nil {
s.Spec.ZookeeperDigestSecret = &v1.LocalObjectReference{
Name: s.SolrSecretName("zk-digest"),
}
}

if s.Spec.ZookeeperDigestReadonlySecret != nil {
if s.Spec.ZookeeperDigestReadonlySecret == nil {
s.Spec.ZookeeperDigestReadonlySecret = &v1.LocalObjectReference{
Name: s.SolrSecretName("zk-digest-readonly"),
}
Expand Down

0 comments on commit 429a2b1

Please sign in to comment.