-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
17 lines (16 loc) · 916 Bytes
/
Taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# https://taskfile.dev
version: '3'
tasks:
bootstrap:
desc: Bootstrap flux with existing Deploy Key & sops-age key
preconditions:
- sh: test -d ./kubernetes/flux/clusters/{{.CLI_ARGS}}
msg: 'You must pass the name of the cluster to the cli args. e.g. task test -- tiny'
cmds:
- kubectl ctx {{.CLI_ARGS}}
- flux install --export > ./kubernetes/flux/clusters/{{.CLI_ARGS}}/flux-system/gotk-components.yaml
- kubectl apply -f ./kubernetes/flux/clusters/{{.CLI_ARGS}}/flux-system/gotk-components.yaml
- sops --decrypt ./kubernetes/bootstrap/sops-age-secret.sops.yaml | kubectl apply -f -
- sops --decrypt ./kubernetes/bootstrap/deploy-key.sops.yaml | kubectl apply -f -
- kubectl apply -f ./kubernetes/flux/clusters/{{.CLI_ARGS}}/flux-system/flux-source.yaml
- kubectl apply -f ./kubernetes/flux/clusters/{{.CLI_ARGS}}/flux-system/flux-cluster.yaml