mlp
is a command line tool responsible for creating, updating and deleting kubernetes resources based on files
generated by Mia-Platform Console.
The main subcommands that the tool has are:
interpolate
: fill placeholders in kubernetes files with the values of ENV variablesgenerate
: create files for kubernetesConfigMap
andSecret
based on files and/or ENV valuesdeploy
: create and/or update resources in a kubernetes namespace with the intepolated/generated fileskustomize
: run kustomize buildhydrate
: helper to fill kustomization.yml with resources and patchescompletion
: generate the autocompletion
Read the documentation here.
To start developing the CLI you must have this requirements:
- golang 1.22
- make
Once you have pulled the code locally, you can build the code with make:
make build
make
will download all the dependencies needed and will build the binary for your current system that you can find
in the bin
folder.
To build the docker image locally run:
make docker-build
To run the tests use the command:
make test
Or add the DEBUG_TEST
flag to run the test with debug mode enabled:
make test DEBUG_TEST=1
Before sending a PR be sure that all the linter pass with success:
make lint