-
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.
- Loading branch information
Showing
4 changed files
with
97 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
on: [ push, pull_request ] | ||
name: Build | ||
jobs: | ||
test: | ||
Build: | ||
strategy: | ||
matrix: | ||
go-version: [ 1.17.x ] | ||
|
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 |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# goal | ||
goal -- Go Aliases | ||
|
||
GoAl -- Go Aliases | ||
|
||
Start using: | ||
|
||
Install via `brew`: | ||
|
||
```shell | ||
brew install #TODO | ||
``` | ||
|
||
# Idea behind | ||
|
||
1. Local alias management | ||
To avoid typing repeatable commands | ||
2. AssD - Aliases as a Documentation :D | ||
No need to read through whole README file to start operating on you infrastructure | ||
|
||
# Project plan | ||
|
||
[ ] Add manual approve step | ||
[ ] Add "environment" management to avoid tf-plan-dev, tf-plan-stage, tf-plan-prod, etc. | ||
[ ] Add "depends on" other task like switch to dev? | ||
[ ] Recursive dependencies | ||
[ ] Assertions | ||
[ ] ref output | ||
[ ] recursive assertions | ||
[ ] raw CLI output -- bad pattern? | ||
[ ] Global aliases in `$HOME` directory? | ||
[ ] Self-autocompletion via [https://github.com/posener/complete](complete) library | ||
[ ] Generate ops-doc from commands |
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,39 @@ | ||
current-context: | ||
desc: Current kubectl context | ||
cmd: kubectl | ||
args: | ||
- config | ||
- current-context | ||
|
||
helm-upgrade-dev-dry-run: | ||
desc: Dry run upgrade on dev | ||
assert: | ||
name: Check if on dev cluster | ||
ref: current-context | ||
equals: dev-cluster | ||
cmd: helm | ||
args: | ||
- upgrade | ||
- release-name | ||
- -f | ||
- values.yaml | ||
- -f | ||
- values/dev.yaml | ||
- . | ||
- --dry-run | ||
|
||
helm-upgrade-dev: | ||
desc: Upgrade on dev | ||
assert: | ||
name: Check if on dev cluster | ||
ref: current-context | ||
equals: dev-cluster | ||
cmd: helm | ||
args: | ||
- upgrade | ||
- release-name | ||
- -f | ||
- values.yaml | ||
- -f | ||
- values/dev.yaml | ||
- . |
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,26 @@ | ||
workspace: | ||
desc: Current terraform workspace | ||
cmd: terraform | ||
args: | ||
- workspace | ||
- show | ||
|
||
tf-plan-dev: | ||
desc: Terraform plan for dev | ||
assert: | ||
name: Check if on dev workspace | ||
ref: workspace | ||
equals: dev | ||
cmd: terraform | ||
args: | ||
- plan | ||
|
||
tf-apply-dev: | ||
desc: Terraform apply for dev | ||
assert: | ||
name: Check if on dev workspace | ||
ref: workspace | ||
equals: dev | ||
cmd: terraform | ||
args: | ||
- plan |