generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
36 lines (32 loc) · 1.3 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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
CLUSTER: "heavy-cluster"
NODE: "heavy-control"
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
KUBECONFIG: "{{.KUBERNETES_DIR}}/kubeconfig"
CONTROLLER: "192.168.200.16"
env:
SOPS_AGE_KEY_FILE: "{{.ROOT_DIR}}/age.key"
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
KUBECONFIG: "{{.KUBERNETES_DIR}}/kubeconfig"
TALOS_VERSION:
sh: yq 'select(document_index == 1).spec.postBuild.substitute.TALOS_VERSION' {{.KUBERNETES_DIR}}/apps/system-upgrade/system-upgrade-controller/ks.yaml
TALOS_SCHEMATIC_ID:
sh: yq 'select(document_index == 1).spec.postBuild.substitute.TALOS_SCHEMATIC_ID' {{.KUBERNETES_DIR}}/apps/system-upgrade/system-upgrade-controller/ks.yaml
KUBERNETES_VERSION:
sh: yq 'select(document_index == 1).spec.postBuild.substitute.KUBERNETES_VERSION' {{.KUBERNETES_DIR}}/apps/system-upgrade/system-upgrade-controller/ks.yaml
CONTROLLER:
sh: talosctl --context {{.CLUSTER}} config info --output json | jq --raw-output '.endpoints[]' | shuf -n 1
includes:
bootstrap: .taskfiles/Bootstrap
external-secrets: .taskfiles/ExternalSecrets
flux: .taskfiles/Flux
kubernetes: .taskfiles/Kubernetes
talos: .taskfiles/Talos
volsync: .taskfiles/Volsync
tasks:
default:
silent: true
cmd: task -l