Skip to content

Commit 9dbf169

Browse files
committed
fix(ci): pin K3s installer to configured release
Fetch the installer for the configured K3s v1.36.3+k3s1 release and verify its SHA-256, following the upstream fix in ai-openshell#5223. Signed-off-by: Shailendra Singh <shailendras@nvidia.com>
1 parent 3df4002 commit 9dbf169

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/ansible/playbooks/k3s.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
state: present
2222
update_cache: true
2323

24+
# get.k3s.io serves the latest script, so pin the one from the k3s_version
25+
# release tag. Update the checksum whenever k3s_version changes.
2426
- name: Download K3s installer
2527
ansible.builtin.get_url:
26-
url: https://get.k3s.io
27-
checksum: sha256:e5cc3b3d9dfc1662c2d9be6da5abc9a4cd317d6abc3a5ffc02e3dd3248207fee
28+
url: "https://raw.githubusercontent.com/k3s-io/k3s/v{{ k3s_version | urlencode }}/install.sh"
29+
checksum: sha256:46177d4c99440b4c0311b67233823a8e8a2fc09693f6c89af1a7161e152fbfad
2830
dest: /tmp/install-k3s.sh
2931
mode: "0755"
3032

0 commit comments

Comments
 (0)