Skip to content

Commit

Permalink
Access patch files and manifest files for talhelper (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaykumar4 authored Jun 4, 2024
1 parent b1b2100 commit 85cc1f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .taskfiles/Talos/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tasks:

bootstrap:
desc: Bootstrap the Talos cluster
dir: "{{.KUBERNETES_DIR}}/bootstrap/talos"
cmds:
- |
if [ ! -f "{{.TALHELPER_SECRET_FILE}}" ]; then
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 85cc1f6

Please sign in to comment.