Skip to content

Commit da130f1

Browse files
authored
Fix unresolved name for release version (#2997)
While setting up an environment and attempting to use the CI scripts to create a couple of worker nodes, an error was raised due to the `release.stdout` value not being resolved to anything. While setting up the master nodes, we do use `k3s_release` to define the version to be used in the URL. This change fixes the worker node set up script to use the value of `k3s_release`. Signed-off-by: Carlos da Silva <[email protected]>
1 parent 9a6c890 commit da130f1

File tree

1 file changed

+2
-2
lines changed
  • tests/playbooks/roles/install-k3s/tasks

1 file changed

+2
-2
lines changed

tests/playbooks/roles/install-k3s/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
runcmd:
127127
- update-ca-certificates
128128
- mkdir -p /var/lib/rancher/k3s/agent/images/
129-
- curl -sSL https://github.com/k3s-io/k3s/releases/download/{{ release.stdout }}/k3s-airgap-images-amd64.tar -o /var/lib/rancher/k3s/agent/images/k3s-airgap-images.tar
130-
- curl -sSL https://github.com/k3s-io/k3s/releases/download/{{ release.stdout }}/k3s -o /usr/local/bin/k3s
129+
- curl -sSL https://github.com/k3s-io/k3s/releases/download/{{ k3s_release }}/k3s-airgap-images-amd64.tar -o /var/lib/rancher/k3s/agent/images/k3s-airgap-images.tar
130+
- curl -sSL https://github.com/k3s-io/k3s/releases/download/{{ k3s_release }}/k3s -o /usr/local/bin/k3s
131131
- curl -sSL https://get.k3s.io -o /var/lib/rancher/k3s/install.sh
132132
- chmod u+x /var/lib/rancher/k3s/install.sh /usr/local/bin/k3s
133133
- INSTALL_K3S_SKIP_DOWNLOAD=true K3S_URL=https://{{ k3s_fip }}:6443 K3S_TOKEN={{ cluster_token }} /var/lib/rancher/k3s/install.sh --docker --kubelet-arg="cloud-provider=external"

0 commit comments

Comments
 (0)