EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

command/args pattern breaks for migrations #85

Closed Jberrz closed 3 years ago

Jberrz commented 3 years ago

v13.0.0 (https://github.com/EDITD/kubetools/pull/83) breaks upgrade commands in the kubetools.yml.

Running as:

upgrades:
  - name: Migrate database
    containerContext: webserver
    command: [flask, db, upgrade]

causes kubetools to interpret the command as an entrypoint instead of performing the migration. However running as:

upgrades:
  - name: Migrate database
    containerContext: webserver
    args: [flask, db, upgrade]

fails wth:

File ".../lib/python3.9/site-packages/kubetools/dev/environment.py", line 184, in up
    ' '.join(upgrade['command']),
'command' not found
eatoncns commented 3 years ago

I think I am fixing this in https://github.com/EDITD/kubetools/pull/95