Skip to content

Facilitate local/minikube development #105

@josh-bitovi

Description

@josh-bitovi

Problem: it's error-prone to test bitops changes locally and difficult to test any helm changes locally for sufficiently complex helm projects and most bitops scripts.

Solution: add minikube as a deploy target, update scripts so they can be run locally, and discuss other enhancements below.

I see a few options:

  1. Add 'minikube' support: could run before helm + allow us to do things like minikube addons enable ingress / minikube addons enable metrics-server
  2. Update scripts to easily be run locally/debug/refactor
    • Things like: usage info, options, separating parameters + ENV_VARS would all make these scripts be easier to run and debug locally. Not directly related to deploying to minikube, but would be helpful for local bitops development and debugging
    • We might also want to adopt a style guide (example) or add something like shellcheck to CI
  3. Does running helm tests fit in here?
    • Likely not, this seems like something we can support with helm upgrade-- but we haven't confirmed yet
  4. Do we need shell unit tests? Test bitops shell scripts #106
  5. Is there a standard way we could set up debugging? DEBUG=1 is inconsistently used in some scripts and set -x adds a lot of noise/potentially sensitive values to log files. Enhance logging #88
  6. Does (1) require us to support ordered or dependent deployments? E.g. only deploy helm after minikube, or allow users to specify an order
  7. Diffing environments Allow diffing "compiled" environments #107 and/or bitops plan option #102
  8. Generating environments + generating minikube setup scritps for a "local" dev env

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions