-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoal.yaml
73 lines (71 loc) · 1.5 KB
/
goal.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# This example combines two `goal` features:
# 1. Environmental executions: `goal run helm-upgrade --on dev`
# 2. Built-in `kubectl_context` assertions upon execution
# to prevent accidental runs on wrong environment.
#
# NOTE: Your can list available `kubectl` contexts with `kubectl config get-contexts`
#
# Usage:
# goal run dry-run --on dev
# goal run dry-run --on stage
#
# goal run upgrade --on dev
# goal run upgrade --on stage
dry-run:
envs:
dev:
desc: Dry run upgrade on dev
assert:
- kubectl_context: dev-cluster
cmd: helm
args:
- upgrade
- release-name
- -f
- values.yaml
- -f
- values/dev.yaml
- .
- --dry-run
stage:
desc: Dry run upgrade on stage
assert:
- kubectl_context: stage-cluster
cmd: helm
args:
- upgrade
- release-name
- -f
- values.yaml
- -f
- values/stage.yaml
- .
- --dry-run
upgrade:
envs:
dev:
desc: Run upgrade on dev
assert:
- kubectl_context: dev-cluster
cmd: helm
args:
- upgrade
- release-name
- -f
- values.yaml
- -f
- values/dev.yaml
- .
stage:
desc: Run upgrade on stage
assert:
- kubectl_context: stage-cluster
cmd: helm
args:
- upgrade
- release-name
- -f
- values.yaml
- -f
- values/stage.yaml
- .