bug: dependency between helm and doctl for DO deployments
qdzlug opened this issue · comments
Describe the bug
When using digital ocean to deploy MARA, you need to first have installed and authorized the doctl program. If not, the
following errors will be encountered:
Error: Unable to initialize DigitalOcean API client: access token is required. (hint: run 'doctl auth init')
Error: Unable to initialize DigitalOcean API client: access token is required. (hint: run 'doctl auth init')
To Reproduce
Steps to reproduce the behavior:
- Deploy MARA on DO w/o doing a
doctl auth init
. - As soon as you hit the helm sections.....
- Boom....
Expected behavior
Should work; this is likely going to need to be resolved by just verifying that the doctl utility has been properly auth'd earlier in the process.
Your environment
n/a
Additional context
None.
One potentially quick fix is to hijack the logic where we test auth via doctl account get
and change it to doctl auth init
- if you are already auth'd it doesn't matter, and if you aren't it will auth you.