Skip to content

Commit

Permalink
fix: rename var to TALOS_SECUREBOOT
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Nov 17, 2024
1 parent cc3551e commit 74bcc0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .taskfiles/talos/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ tasks:
desc: Upgrade Talos on a single node [HOSTNAME=required]
cmds:
- task: down
- talosctl --nodes {{.HOSTNAME}} upgrade --image="factory.talos.dev/installer{{if eq .TALOS_SECURE 'true'}}-secureboot{{end}}/{{.TALOS_SCHEMATIC_ID}}:{{.TALOS_VERSION}}" --timeout=10m
- talosctl --nodes {{.HOSTNAME}} upgrade --image="factory.talos.dev/installer{{if eq .TALOS_SECUREBOOT 'true'}}-secureboot{{end}}/{{.TALOS_SCHEMATIC_ID}}:{{.TALOS_VERSION}}" --timeout=10m
- talosctl --nodes {{.HOSTNAME}} health --wait-timeout=10m --server=false
- task: up
vars:
TALOS_SCHEMATIC_ID:
sh: kubectl get node {{.HOSTNAME}} --output=jsonpath='{.metadata.annotations.extensions\.talos\.dev/schematic}'
TALOS_SECUREBOOT:
sh: talosctl --nodes {{.HOSTNAME}} get securitystate --output=jsonpath='{.spec.secureBoot}'
TALOS_VERSION:
sh: yq '.talosVersion' {{.TALHELPER_CONFIG_FILE}}
TALOS_SECURE:
sh: talosctl --nodes {{.HOSTNAME}} get securitystate --output=jsonpath='{.spec.secureBoot}'
requires:
vars: [HOSTNAME]
preconditions:
Expand Down

0 comments on commit 74bcc0a

Please sign in to comment.