From f7274e4ccc4c3e9cda174ce2e6c00307c1e2c723 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Wed, 30 Oct 2024 12:53:31 -0400 Subject: [PATCH] fix: talosctl apply-config mode is staged --- .taskfiles/talos/Taskfile.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.taskfiles/talos/Taskfile.yaml b/.taskfiles/talos/Taskfile.yaml index c2943f32a67..560c2fabaf7 100644 --- a/.taskfiles/talos/Taskfile.yaml +++ b/.taskfiles/talos/Taskfile.yaml @@ -27,12 +27,10 @@ tasks: apply-config: desc: Apply Talos configuration to a node cmds: - - '{{if eq .MODE "reboot"}}kubectl drain {{.HOSTNAME}} --ignore-daemonsets --delete-emptydir-data --force{{end}}' - - talosctl apply-config --mode={{.MODE}} --nodes {{.HOSTNAME}} --file {{.TALHELPER_CLUSTER_DIR}}/{{.CLUSTER_NAME}}-{{.HOSTNAME}}.yaml + - talosctl apply-config --mode=staged --nodes {{.HOSTNAME}} --file {{.TALHELPER_CLUSTER_DIR}}/{{.CLUSTER_NAME}}-{{.HOSTNAME}}.yaml + - talosctl --nodes {{.HOSTNAME}} reboot - talosctl --nodes {{.HOSTNAME}} health --wait-timeout=10m --server=false - - '{{if eq .MODE "reboot"}}kubectl uncordon {{.HOSTNAME}}{{end}}' vars: - MODE: '{{.MODE | default "no-reboot"}}' CLUSTER_NAME: sh: yq '.clusterName' {{.TALHELPER_CONFIG_FILE}} requires: