Skip to content

Commit

Permalink
Merge pull request #2832 from leelavg/def-buck
Browse files Browse the repository at this point in the history
use a default backing store for noobaa acount
  • Loading branch information
openshift-merge-bot[bot] authored Oct 3, 2024
2 parents b1c7177 + e102193 commit f80f43b
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 f80f43b

Please sign in to comment.