Skip to content

Commit

Permalink
internal/controller: login atlas cloud via project config
Browse files Browse the repository at this point in the history
  • Loading branch information
datdao committed Feb 26, 2025
1 parent d035e37 commit e9fa8cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/controller/atlasmigration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (r *AtlasMigrationReconciler) reconcile(ctx context.Context, data *migratio
return r.resultErr(res, err, "ReadingMigrationData")
}
defer wd.Close()
c, err := r.atlasClient(wd.Path(), data.Cloud)
c, err := r.atlasClient(wd.Path(), nil)
if err != nil {
return r.resultErr(res, err, dbv1alpha1.ReasonCreatingAtlasClient)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/atlasschema_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (r *AtlasSchemaReconciler) Reconcile(ctx context.Context, req ctrl.Request)
_, err = wd.WriteFile("atlas.hcl", buf.Bytes())
return err
}
cli, err := r.atlasClient(wd.Path(), data.Cloud)
cli, err := r.atlasClient(wd.Path(), nil)
if err != nil {
return r.resultErr(res, err, dbv1alpha1.ReasonCreatingAtlasClient)
}
Expand Down

0 comments on commit e9fa8cd

Please sign in to comment.