-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add
approval
assertion for user confirmation
- add `approval` to `goal init` - omit for keys for yaml in `goal init`
- Loading branch information
Showing
9 changed files
with
125 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**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:** | ||
|
||
```shell | ||
$ goal run pods --on dev | ||
$ goal run pods --on stage | ||
``` | ||
|
||
```shell | ||
$ goal run apply --on dev | ||
$ goal run apply --on stage | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This example demonstrates simply local alias management. Goals(aliases) defined in this file would be available only in | ||
project directory. | ||
|
||
**Usage:** | ||
|
||
```shell | ||
$ goal run pods | ||
``` | ||
|
||
```shell | ||
$ goal run svc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters