Skip to content

Commit

Permalink
Add alias in the name of MongoDB server certificates (#611)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Fahim Abrar <fahimabrar@appscode.com>
  • Loading branch information
Mohammad Fahim Abrar committed Oct 7, 2020
1 parent e562def commit fd28501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/kubedb/v1alpha1/mongodb_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ func (m *MongoDB) CertificateName(alias MongoDBCertificateAlias, stsName string)
if stsName == "" {
panic(fmt.Sprintf("StatefulSet name required to compute %s certificate name for MongoDB %s/%s", alias, m.Namespace, m.Name))
}
return meta_util.NameWithSuffix(m.Name, fmt.Sprintf("%s-cert", stsName))
return meta_util.NameWithSuffix(stsName, fmt.Sprintf("%s-cert", string(alias)))
}
return meta_util.NameWithSuffix(m.Name, fmt.Sprintf("%s-cert", string(alias)))
}
Expand Down

0 comments on commit fd28501

Please sign in to comment.