-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
50 lines (43 loc) · 1.22 KB
/
Taskfile.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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
includes:
advisor: .taskfiles/Advisor
broker: .taskfiles/Broker
controller: .taskfiles/Controller
vars:
IMAGE_VERSION: local
tasks:
all:
deps: [kind]
desc: "Run all tasks"
cmds:
#- task: advisor:all
- task: broker:all
- task: controller:all
kind:
desc: Create fresh kind cluster
cmds:
- kind delete cluster || true
- kind create cluster
install:
deps: [all]
desc: "Install in KinD cluster"
cmds:
- helm repo add xentra https://xentra-ai.github.io/kube-guardian || true
- helm install kube-guardian xentra/kube-guardian --namespace kube-guardian
--create-namespace --set controller.image.tag={{.IMAGE_VERSION}}
--set broker.image.tag={{.IMAGE_VERSION}}
--set controller.image.pullPolicy=IfNotPresent
--set broker.image.pullPolicy=IfNotPresent
preflight:
desc: "Run preflight checks for all components"
cmds:
- task: advisor:preflight
- task: broker:preflight
- task: controller:preflight
preflight-all:
desc: "Run preflight checks and then all tasks"
cmds:
- task: preflight
- task: all