This example combines three goal
features:
- Environmental executions:
goal run apply --on dev
- Built-in
kubectl_context
assertion upon execution to prevent accidental runs on wrong environment. - Built-in
approval
assertion to ask user to config execution.
List available kubectl contexts with:
$ kubectl config get-contexts
Usage:
$ goal run pods --on dev
$ goal run pods --on stage
$ goal run apply --on dev
$ goal run apply --on stage