Skip to content

Commit

Permalink
use a default backing store for noobaa acount
Browse files Browse the repository at this point in the history
noobaa account creation requires a default backing store to be specified
which will be used to create new buckets for connected clients.

Signed-off-by: Leela Venkaiah G <[email protected]>
  • Loading branch information
leelavg committed Oct 3, 2024
1 parent 3b8151e commit e102193
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/storageconsumer/storageconsumer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ func (r *StorageConsumerReconciler) reconcileNoobaaAccount() error {
if err := r.own(r.noobaaAccount); err != nil {
return err
}
// TODO: query the name of backing store during runtime
r.noobaaAccount.Spec.DefaultResource = "noobaa-default-backing-store"
// the following annotation will enable noobaa-operator to create a auth_token secret based on this account
util.AddAnnotation(r.noobaaAccount, "remote-operator", "true")
return nil
Expand Down Expand Up @@ -288,6 +290,7 @@ func (r *StorageConsumerReconciler) SetupWithManager(mgr ctrl.Manager) error {
predicate.GenerationChangedPredicate{},
)).
Owns(&rookCephv1.CephClient{}).
Owns(&nbv1.NooBaaAccount{}).
// Watch non-owned resources cephBlockPool
// Whenever their is new cephBockPool created to keep storageConsumer up to date.
Watches(&rookCephv1.CephBlockPool{},
Expand Down

0 comments on commit e102193

Please sign in to comment.