From 85cc1f6fb98ed52f6a86ef04fa43d0269aa6f0ac Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 4 Jun 2024 01:16:32 +0100 Subject: [PATCH] Access patch files and manifest files for talhelper (#1508) --- .taskfiles/Talos/Taskfile.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.taskfiles/Talos/Taskfile.yaml b/.taskfiles/Talos/Taskfile.yaml index b39cca563..3829853cf 100644 --- a/.taskfiles/Talos/Taskfile.yaml +++ b/.taskfiles/Talos/Taskfile.yaml @@ -16,6 +16,7 @@ tasks: bootstrap: desc: Bootstrap the Talos cluster + dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" cmds: - | if [ ! -f "{{.TALHELPER_SECRET_FILE}}" ]; then @@ -38,6 +39,7 @@ tasks: fetch-kubeconfig: desc: Fetch kubeconfig + dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" cmd: until talhelper gencommand kubeconfig --config-file {{.TALHELPER_CONFIG_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} --extra-flags="{{.ROOT_DIR}} --force" | bash; do sleep 10; done preconditions: - msg: Missing talhelper config file @@ -87,6 +89,7 @@ tasks: nuke: desc: Resets nodes back to maintenance mode + dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" prompt: This will destroy your cluster and reset the nodes back to maintenance mode... continue? cmd: talhelper gencommand reset --config-file {{.TALHELPER_CONFIG_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} --extra-flags="--reboot {{- if eq .CLI_FORCE false }} --system-labels-to-wipe STATE --system-labels-to-wipe EPHEMERAL{{ end }} --graceful=false --wait=false" | bash