Skip to content

Latest commit

 

History

History

kubectl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

This example combines three goal features:

  1. Environmental executions: goal run apply --on dev
  2. Built-in kubectl_context assertion upon execution to prevent accidental runs on wrong environment.
  3. 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