nginxinc / kic-reference-architectures

MARA: Modern Application Reference Architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Deploy MARA on DO w/o doing a doctl auth init.
  2. As soon as you hit the helm sections.....
  3. 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.