Skip to content

Commit

Permalink
Modify cassandra AuthSecret Name
Browse files Browse the repository at this point in the history
Signed-off-by: Sabbir <sabbir@appscode.com>
  • Loading branch information
sabbir-hossain70 committed Oct 31, 2024
1 parent c619ede commit 60b1b2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apis/kubedb/v1alpha2/cassandra_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (r *Cassandra) SetDefaults() {
if r.Spec.AuthSecret == nil {
r.Spec.AuthSecret = &SecretReference{
LocalObjectReference: core.LocalObjectReference{
Name: r.DefaultUserCredSecretName(kubedb.CassandraUserAdmin),
Name: meta_util.NameWithSuffix(r.OffshootName(), "auth"),
},
ExternallyManaged: false,
}
Expand Down
1 change: 0 additions & 1 deletion apis/kubedb/v1alpha2/cassandra_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ func (r *Cassandra) ValidateVersion(db *Cassandra) error {
casVersion := catalog.CassandraVersion{}
err := DefaultClient.Get(context.TODO(), types.NamespacedName{Name: db.Spec.Version}, &casVersion)
if err != nil {
// fmt.Sprint(db.Spec.Version, "version not supported")
return errors.New(fmt.Sprint("version ", db.Spec.Version, " not supported"))
}
return nil
Expand Down

0 comments on commit 60b1b2f

Please sign in to comment.