-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
46 lines (37 loc) · 1.23 KB
/
Taskfile.yml
File metadata and controls
46 lines (37 loc) · 1.23 KB
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
# https://taskfile.dev
version: "3"
vars:
GREETING: Hello, World!
CLUSTER_NAME: kest-test
tasks:
up:
cmds:
- kind create cluster --name {{.CLUSTER_NAME}}-cluster-1 --config kind-config.yaml
- kind create cluster --name {{.CLUSTER_NAME}}-cluster-2
- kind create cluster --name {{.CLUSTER_NAME}}-cluster-3
- kubectl config use-context kind-{{.CLUSTER_NAME}}-cluster-1
- task: capi:install
capi:install:
desc: Install Cluster API with k0smotron on cluster-1
vars:
CONTEXT: kind-{{.CLUSTER_NAME}}-cluster-1
cmds:
- clusterctl init --kubeconfig-context {{.CONTEXT}} --bootstrap k0sproject-k0smotron --control-plane k0sproject-k0smotron --infrastructure docker
- kubectl --context {{.CONTEXT}} wait --for=condition=Available deployment --all --all-namespaces --timeout=300s
down:
cmds:
- kind delete cluster --name {{.CLUSTER_NAME}}-cluster-1
- kind delete cluster --name {{.CLUSTER_NAME}}-cluster-2
- kind delete cluster --name {{.CLUSTER_NAME}}-cluster-3
test:
cmds:
- bun test ts/
lint:
cmds:
- bunx @biomejs/biome check
lint:fix:
cmds:
- bunx @biomejs/biome check --write
typecheck:
cmds:
- bunx tsc --noEmit