Skip to content

Commit 541791f

Browse files
authored
Fix backup CI failing from not finding Velero CRDs + revert k3s to 1.31.13 (#977)
1 parent c1fb8a2 commit 541791f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

roles/k3s/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22

33
k3s_repo: https://github.com/k3s-io/k3s
4-
k3s_version: v1.33.1+k3s1
4+
k3s_version: v1.31.13+k3s1
55
k3s_binary_url: "{{ k3s_repo }}/releases/download/{{ k3s_version }}/k3s"
66
k3s_binary_checksum_url: "{{ k3s_repo }}/releases/download/{{ k3s_version }}/sha256sum-amd64.txt"
7-
k3s_binary_checksum: "sha256:{{ lookup('url', k3s_binary_checksum_url, wantlist=True) | first | split | first }}"
7+
k3s_binary_checksum: "sha256:{{ lookup('url', k3s_binary_checksum_url, wantlist=True) | select('match', '.+k3s$') | first | split | first }}"
88

99
# Settings for an additional block device that will hold the k3s state, if present
1010
k3s_storage_device: /dev/sdb

roles/velero/tasks/restore.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
--output jsonpath='{.status.phase}'
77
changed_when: false
88
register: velero_target_backup_check
9+
until: velero_target_backup_check.rc == 0
10+
retries: 18
11+
delay: 10
912

1013
- name: Fail if target backup is not in an allowable state
1114
ansible.builtin.fail:

0 commit comments

Comments
 (0)