Skip to content

Commit

Permalink
feat: s390x Ubuntu enablement
Browse files Browse the repository at this point in the history
Signed-off-by: Nestor Acuna Blanco <[email protected]>
  • Loading branch information
nestoracunablanco committed Nov 26, 2024
1 parent 99a9380 commit 4864d7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generate-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@

- name: Load Ubuntu containerdisk and image urls
set_fact:
ubuntu_containerdisk_urls: "{{ ubuntu_containerdisk_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', 'x86_64') |selectattr('format', 'eq', 'containerdisk') |map(attribute='url') |map('replace', 'docker://', '') |list }}"
ubuntu_image_urls: "{{ ubuntu_image_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', 'x86_64') |selectattr('format', 'in', ['raw', 'qcow2']) |map(attribute='url') |list }}"
ubuntu_containerdisk_urls: "{{ ubuntu_containerdisk_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', target_arch) |selectattr('format', 'eq', 'containerdisk') |map(attribute='url') |map('replace', 'docker://', '') |list }}"
ubuntu_image_urls: "{{ ubuntu_image_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', target_arch) |selectattr('format', 'in', ['raw', 'qcow2']) |map(attribute='url') |list }}"
loop: "{{ ubuntu_labels }}"

- name: Generate Ubuntu templates
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ objects:
kubevirt.io/domain: ${NAME}
kubevirt.io/size: {{ item.flavor }}
spec:
architecture: amd64
architecture: "{{ 'amd64' if target_arch == 'x86_64' else target_arch }}"
domain:
{% if item.iothreads %}
ioThreadsPolicy: shared
Expand Down

0 comments on commit 4864d7d

Please sign in to comment.