-
Notifications
You must be signed in to change notification settings - Fork 0
/
kh.py
55 lines (49 loc) · 1.66 KB
/
kh.py
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
import sys
from workflow import Workflow
from icons import SHELL, LOGS, DATADOG, DASHBOARD, WATCH, BIN, KUBE
def main(wf):
wf.add_item(title="kl",
subtitle="Access services logs.",
valid=True,
arg='kl',
icon=LOGS)
wf.add_item(title="ks",
subtitle="Access services shell.",
valid=False,
icon=SHELL)
wf.add_item(title="kw",
subtitle="Watch & Describe services in shell.",
valid=False,
icon=WATCH)
wf.add_item(title="kr",
subtitle="Delete services.",
valid=False,
icon=BIN),
wf.add_item(title="kre",
subtitle="Delete Evicted Pods.",
valid=False,
icon=BIN),
wf.add_item(title="kd",
subtitle="Access kubernetes dashboard.",
valid=False,
icon=DASHBOARD)
wf.add_item(title="kds",
subtitle="Access kubernetes dashboard - by service",
valid=False,
icon=DASHBOARD)
wf.add_item(title="kdm",
subtitle="Show datadog CPU/Memory metrics for a deployment.",
valid=False,
icon=DATADOG),
wf.add_item(title="ksetenv",
subtitle="Set Workflow variables.",
valid=False,
icon=KUBE),
wf.add_item(title="kclearvars",
subtitle="Clear all Workflow variables.",
valid=False,
icon=KUBE),
wf.send_feedback()
if __name__ == u"__main__":
wf = Workflow()
sys.exit(wf.run(main))