Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Image Builder

## Please see our [Book](https://image-builder.sigs.k8s.io) for more in-depth documentation.
## Please see our [Book](https://image-builder.sigs.k8s.io) for more in-depth documentation

## What is Image Builder?

Expand All @@ -20,28 +20,29 @@ The table below shows the currently provided operating systems for each provider
- ✅: Image is available for the provider
- ❌: Image is not available for the provider

| OS | ami | azure | digitalocean | gce | hcloud | huaweicloud | maas | nutanix | oci | openstack | outscale | ova | powervs | proxmox | qemu | raw | scaleway | vultr |
| OS | ami | azure | digitalocean | gce | hcloud | huaweicloud | maas | nutanix | oci | openstack | outscale | ova | powervs | proxmox | qemu | raw | scaleway | vultr |
|-------------------|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| Amazon Linux 2 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Amazon Linux 2023 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Azure Linux 3 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CentOS 8 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CentOS 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Flatcar | ✅ | 💙 | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | 💙 | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
| Oracle Linux 8 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Oracle Linux 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Photon 4 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Photon 5 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| RHEL 8 | ✅ | ✅ | ❌ | 💙 | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |
| RHEL 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |
| Rocky Linux 8 | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Rocky Linux 9 | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | 💙 | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ |
| Ubuntu 22.04 | ✅ | 💙 | ✅ | 💙 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 💙 | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ubuntu 24.04 | ✅ | 💙 | ✅ | 💙 | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | 💙 | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Windows 2019 | ✅ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows 2022 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows 2025 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows Annual | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Amazon Linux 2 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Amazon Linux 2023 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Azure Linux 3 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CentOS 8 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CentOS 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Flatcar | ✅ | 💙 | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | 💙 | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
| Oracle Linux 8 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Oracle Linux 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Photon 4 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Photon 5 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| RHEL 8 | ✅ | ✅ | ❌ | 💙 | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |
| RHEL 9 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |
| Rocky Linux 8 | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Rocky Linux 9 | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | 💙 | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ |
| Ubuntu 22.04 | ✅ | 💙 | ✅ | 💙 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 💙 | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ubuntu 24.04 | ✅ | 💙 | ✅ | 💙 | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | 💙 | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ubuntu 24.04 ARM64 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows 2019 | ✅ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows 2022 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows 2025 | ❌ | 💙 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Windows Annual | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |

## Community, discussion, contribution, and support

Expand Down
19 changes: 18 additions & 1 deletion images/capi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ COMMON_NODE_VAR_FILES := packer/config/kubernetes.json \
packer/config/additional_components.json \
packer/config/ecr_credential_provider.json

COMMON_AMD64_NODE_VAR_FILES := ${COMMON_NODE_VAR_FILES} \
packer/config/amd64/common.json

COMMON_ARM64_NODE_VAR_FILES := ${COMMON_NODE_VAR_FILES} \
packer/config/arm64/common.json

COMMON_WINDOWS_VAR_FILES := packer/config/kubernetes.json \
packer/config/windows/kubernetes.json \
packer/config/containerd.json \
Expand Down Expand Up @@ -326,7 +332,10 @@ COMMON_POWERVS_VAR_FILES := packer/config/kubernetes.json \
# files from COMMON_VAR_FILES, with each file prefixed by -var-file=.
#
# Any existing values from PACKER_FLAGS take precendence over variable files.
PACKER_NODE_FLAGS := $(foreach f,$(abspath $(COMMON_NODE_VAR_FILES)),-var-file="$(f)" ) \
PACKER_NODE_FLAGS := $(foreach f,$(abspath $(COMMON_AMD64_NODE_VAR_FILES)),-var-file="$(f)" ) \
$(PACKER_FLAGS)
# ARM64 needs to use a different Ubuntu repository (ports.ubuntu.com) for source packages.
PACKER_ARM64_NODE_FLAGS := $(foreach f,$(abspath $(COMMON_ARM64_NODE_VAR_FILES)),-var-file="$(f)" ) \
$(PACKER_FLAGS)
ABSOLUTE_PACKER_VAR_FILES := $(foreach f,$(abspath $(PACKER_VAR_FILES)),-var-file="$(f)" )
PACKER_WINDOWS_NODE_FLAGS := $(foreach f,$(abspath $(COMMON_WINDOWS_VAR_FILES)),-var-file="$(f)" ) \
Expand Down Expand Up @@ -375,10 +384,12 @@ GCE_BUILD_NAMES ?= gce-ubuntu-2204 gce-ubuntu-2404 gce-rhel-8
VHD_TARGETS := $(shell grep VHD_TARGETS azure_targets.sh | sed 's/VHD_TARGETS=//' | tr -d \")
SIG_TARGETS := $(shell grep SIG_TARGETS azure_targets.sh | sed 's/SIG_TARGETS=//' | tr -d \")
SIG_GEN2_TARGETS := $(shell grep SIG_GEN2_TARGETS azure_targets.sh | sed 's/SIG_GEN2_TARGETS=//' | tr -d \")
SIG_ARM64_GEN2_TARGETS := $(shell grep SIG_ARM64_GEN2_TARGETS azure_targets.sh | sed 's/SIG_ARM64_GEN2_TARGETS=//' | tr -d \")
SIG_CVM_TARGETS := $(shell grep SIG_CVM_TARGETS azure_targets.sh | sed 's/SIG_CVM_TARGETS=//' | tr -d \")
AZURE_BUILD_VHD_NAMES ?= $(addprefix azure-vhd-,$(VHD_TARGETS))
AZURE_BUILD_SIG_NAMES ?= $(addprefix azure-sig-,$(SIG_TARGETS))
AZURE_BUILD_SIG_GEN2_NAMES ?= $(addsuffix -gen2,$(addprefix azure-sig-,$(SIG_GEN2_TARGETS)))
AZURE_BUILD_SIG_ARM64_GEN2_NAMES ?= $(addsuffix -gen2,$(addprefix azure-sig-arm64-,$(SIG_ARM64_GEN2_TARGETS)))
AZURE_BUILD_SIG_CVM_NAMES ?= $(addsuffix -cvm,$(addprefix azure-sig-,$(SIG_CVM_TARGETS)))

OCI_BUILD_NAMES ?= oci-ubuntu-2204 oci-oracle-linux-8 oci-oracle-linux-9 oci-windows-2019 oci-windows-2022
Expand Down Expand Up @@ -427,9 +438,11 @@ AZURE_BUILD_VHD_TARGETS := $(addprefix build-,$(AZURE_BUILD_VHD_NAMES))
AZURE_VALIDATE_VHD_TARGETS := $(addprefix validate-,$(AZURE_BUILD_VHD_NAMES))
AZURE_BUILD_SIG_TARGETS := $(addprefix build-,$(AZURE_BUILD_SIG_NAMES))
AZURE_BUILD_SIG_GEN2_TARGETS := $(addprefix build-,$(AZURE_BUILD_SIG_GEN2_NAMES))
AZURE_BUILD_SIG_ARM64_GEN2_TARGETS := $(addprefix build-,$(AZURE_BUILD_SIG_ARM64_GEN2_NAMES))
AZURE_BUILD_SIG_CVM_TARGETS := $(addprefix build-,$(AZURE_BUILD_SIG_CVM_NAMES))
AZURE_VALIDATE_SIG_TARGETS := $(addprefix validate-,$(AZURE_BUILD_SIG_NAMES))
AZURE_VALIDATE_SIG_GEN2_TARGETS := $(addprefix validate-,$(AZURE_BUILD_SIG_GEN2_NAMES))
AZURE_VALIDATE_SIG_ARM64_GEN2_TARGETS := $(addprefix validate-,$(AZURE_BUILD_SIG_ARM64_GEN2_NAMES))
AZURE_VALIDATE_SIG_CVM_TARGETS := $(addprefix validate-,$(AZURE_BUILD_SIG_CVM_NAMES))
DO_BUILD_TARGETS := $(addprefix build-,$(DO_BUILD_NAMES))
DO_VALIDATE_TARGETS := $(addprefix validate-,$(DO_BUILD_NAMES))
Expand Down Expand Up @@ -528,6 +541,10 @@ $(AZURE_BUILD_SIG_TARGETS): deps-azure
$(AZURE_BUILD_SIG_GEN2_TARGETS): deps-azure
. $(abspath packer/azure/scripts/init-sig.sh) $(subst build-azure-sig-,,$@) && $(PACKER) build $(if $(findstring windows,$@),$(PACKER_WINDOWS_NODE_FLAGS),$(PACKER_NODE_FLAGS)) -var-file="$(abspath packer/azure/azure-config.json)" -var-file="$(abspath packer/azure/azure-sig-gen2.json)" -var-file="$(abspath packer/azure/$(subst build-azure-sig-,,$@).json)" -only="$(subst build-azure-,,$@)" $(ABSOLUTE_PACKER_VAR_FILES) packer/azure/packer$(findstring -windows,$@).json

.PHONY: $(AZURE_BUILD_SIG_ARM64_GEN2_TARGETS)
$(AZURE_BUILD_SIG_ARM64_GEN2_TARGETS): deps-azure
. $(abspath packer/azure/scripts/init-sig.sh) $(subst build-azure-sig-,,$@) && $(PACKER) build $(if $(findstring windows,$@),$(PACKER_WINDOWS_NODE_FLAGS),$(PACKER_ARM64_NODE_FLAGS)) -var-file="$(abspath packer/azure/azure-config.json)" -var-file="$(abspath packer/azure/azure-sig-gen2.json)" -var-file="$(abspath packer/azure/$(subst build-azure-sig-,,$@).json)" -only="$(subst build-azure-,,$@)" $(ABSOLUTE_PACKER_VAR_FILES) packer/azure/packer$(findstring -windows,$@).json

.PHONY: $(AZURE_BUILD_SIG_CVM_TARGETS)
$(AZURE_BUILD_SIG_CVM_TARGETS): deps-azure
. $(abspath packer/azure/scripts/init-sig.sh) $(subst build-azure-sig-,,$@) && $(PACKER) build $(if $(findstring windows,$@),$(PACKER_WINDOWS_NODE_FLAGS),$(PACKER_NODE_FLAGS)) -var-file="$(abspath packer/azure/azure-config.json)" -var-file="$(abspath packer/azure/azure-sig-cvm.json)" -var-file="$(abspath packer/azure/$(subst build-azure-sig-,,$@).json)" -only="$(subst build-azure-,,$@)" $(ABSOLUTE_PACKER_VAR_FILES) packer/azure/packer$(findstring -windows,$@).json
Expand Down
24 changes: 20 additions & 4 deletions images/capi/ansible/roles/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,32 @@
dest: /tmp/runc
mode: "0600"

- name: Download containerd-wasm-shims
- name: Download containerd-wasm-shims for AMD64
vars:
sha256sums: "{{ containerd_wasm_shims_sha256 | from_json }}"
sha256sums: "{{ containerd_wasm_shims_sha256_amd64 | from_json }}"
runtime_versions: "{{ containerd_wasm_shims_runtime_versions | from_json }}"
ansible.builtin.get_url:
url: "{{ containerd_wasm_shims_url | replace('<SHIM>', item) | replace('<RTVERSION>', runtime_versions[item]) }}"
url: "{{ containerd_wasm_shims_url | replace('<SHIM>', item) | replace('<RTVERSION>', runtime_versions[item]) | replace('<ARCH>', ansible_architecture) }}"
checksum: sha256:{{ sha256sums[item] }}
dest: /tmp/{{ item }}_wasm_shim.tar.gz
mode: "0600"
when: containerd_wasm_shims_runtimes | length > 0
when: >-
containerd_wasm_shims_runtimes | length > 0
and ansible_architecture == 'x86_64'
loop: "{{ containerd_wasm_shims_runtimes | split(',') }}"

- name: Download containerd-wasm-shims for ARM64
vars:
sha256sums: "{{ containerd_wasm_shims_sha256_aarch64 | from_json }}"
runtime_versions: "{{ containerd_wasm_shims_runtime_versions | from_json }}"
ansible.builtin.get_url:
url: "{{ containerd_wasm_shims_url | replace('<SHIM>', item) | replace('<RTVERSION>', runtime_versions[item]) | replace('<ARCH>', ansible_architecture) }}"
checksum: sha256:{{ sha256sums[item] }}
dest: /tmp/{{ item }}_wasm_shim.tar.gz
mode: "0600"
when: >-
containerd_wasm_shims_runtimes | length > 0
and ansible_architecture == 'aarch64'
loop: "{{ containerd_wasm_shims_runtimes | split(',') }}"

- name: Create a directory if it does not exist
Expand Down
5 changes: 5 additions & 0 deletions images/capi/ansible/roles/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ common_virt_debs:
- linux-tools-virtual
- open-vm-tools

common_virt_azure_debs:
- linux-cloud-tools-azure
- linux-tools-azure
- open-vm-tools

common_virt_photon_rpms:
- open-vm-tools

Expand Down
7 changes: 7 additions & 0 deletions images/capi/ansible/roles/node/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ dependencies:
when: >
ansible_distribution not in ["VMware Photon OS", "Amazon"]
and not (packer_builder_type == "oracle-oci" and ansible_architecture == "aarch64")
and not packer_builder_type == "azure-arm"
and not packer_builder_type is search('qemu')

- role: setup
vars:
rpms: "{{ common_rpms + azurelinux_rpms + lookup('vars', 'common_' + build_target + '_rpms') }}"
when: ansible_distribution in ["Common Base Linux Mariner", "Microsoft Azure Linux"]

- role: setup
vars:
debs: "{{ common_debs + lookup('vars', 'common_virt_azure_debs') }}"
when: >-
packer_builder_type == "azure-arm"
13 changes: 11 additions & 2 deletions images/capi/ansible/roles/setup/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,23 @@
# As a result the there is change in format source configurations and location
when: (packer_builder_type != "oracle-oci") and ((ansible_distribution == "Ubuntu") and (ansible_distribution_major_version is version('24', '<')))

- name: Put templated ubuntu.sources in place
- name: Put templated ubuntu.sources in place (x86 variant)
ansible.builtin.template:
src: etc/apt/sources.list.d/ubuntu.sources.j2
dest: /etc/apt/sources.list.d/ubuntu.sources
mode: "0644"
# Ubuntu 24.04 has changed to deb822 source management
# As a result the there is change in format source configurations and location
when: (ansible_distribution == "Ubuntu") and (ansible_distribution_major_version is version('24', '>='))
when: (ansible_distribution == "Ubuntu") and (ansible_distribution_major_version is version('24', '>=')) and (ansible_architecture == "x86_64")

- name: Put templated ubuntu.sources in place (arm64 variant)
ansible.builtin.template:
src: etc/apt/sources.list.d/ubuntu.sources.arm64.j2
dest: /etc/apt/sources.list.d/ubuntu.sources
mode: "0644"
# Ubuntu 24.04 has changed to deb822 source management
# As a result the there is change in format source configurations and location
when: (ansible_distribution == "Ubuntu") and (ansible_distribution_major_version is version('24', '>=')) and (ansible_architecture == "aarch64")

- name: Put templated apt.conf.d/90proxy in place when defined
ansible.builtin.template:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Types: deb
URIs: http://us.ports.ubuntu.com/
Suites: {{ ansible_distribution_release }} {{ ansible_distribution_release }}-updates {{ ansible_distribution_release }}-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://us.ports.ubuntu.com/
Suites: {{ ansible_distribution_release }}-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
3 changes: 2 additions & 1 deletion images/capi/azure_targets.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VHD_TARGETS="ubuntu-2204 ubuntu-2404 azurelinux-3 rhel-8 windows-2019-containerd windows-2022-containerd"
SIG_TARGETS="ubuntu-2204 ubuntu-2404 azurelinux-3 rhel-8 windows-2019-containerd windows-2022-containerd windows-2025-containerd flatcar"
SIG_GEN2_TARGETS="ubuntu-2204 ubuntu-2404 azurelinux-3 flatcar"
SIG_GEN2_TARGETS="ubuntu-2204 ubuntu-2404 ubuntu-2404-arm64 azurelinux-3 flatcar"
SIG_ARM64_GEN2_TARGETS="ubuntu-2404-arm64"
SIG_CVM_TARGETS="ubuntu-2204 ubuntu-2404 windows-2019-containerd windows-2022-containerd"
18 changes: 9 additions & 9 deletions images/capi/packer/azure/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"image_sku": "{{user `image_sku`}}",
"image_version": "{{user `image_version`}}",
"location": "{{user `azure_location`}}",
"managed_image_name": "{{user `image_name`}}-{{user `build_timestamp`}}",
"managed_image_resource_group_name": "{{user `resource_group_name`}}",
"managed_image_name": "{{user `managed_image_name`}}",
"managed_image_resource_group_name": "{{user `managed_image_resource_group_name`}}",
"managed_image_storage_account_type": "{{user `managed_image_storage_account_type`}}",
"name": "sig-{{user `build_name`}}",
"os_disk_size_gb": "{{user `os_disk_size_gb`}}",
Expand Down Expand Up @@ -166,15 +166,13 @@
"remote_folder": "{{user `goss_remote_folder`}}",
"remote_path": "{{user `goss_remote_path`}}",
"skip_install": "{{user `goss_skip_install`}}",
"tests": [
"{{user `goss_tests_dir`}}"
],
"tests": ["{{user `goss_tests_dir`}}"],
"type": "goss",
"url": "{{user `goss_url`}}",
"use_sudo": true,
"vars_file": "{{user `goss_vars_file`}}",
"vars_inline": {
"ARCH": "amd64",
"ARCH": "{{ user `goss_arch` }}",
"OS": "{{user `distribution` | lower}}",
"OS_VERSION": "{{user `distribution_version` | lower}}",
"PROVIDER": "azure",
Expand All @@ -194,9 +192,7 @@
"version": "{{user `goss_version`}}"
},
{
"environment_vars": [
"BUILD_NAME={{user `build_name`}}"
],
"environment_vars": ["BUILD_NAME={{user `build_name`}}"],
"inline": [
"if [[ $BUILD_NAME != \"flatcar\"* ]]; then exit 0; fi",
"sudo PATH=\"$PATH:/usr/share/oem/python/bin:/usr/share/oem/bin\" bash -c \"waagent -force -deprovision && userdel -f -r $USER && ln -sf ../run/systemd/resolve/resolv.conf /etc/resolv.conf && sync\""
Expand All @@ -211,6 +207,7 @@
"ansible_extra_vars": "",
"ansible_scp_extra_args": "",
"ansible_user_vars": "",
"arch": "amd64",
"azure_location": null,
"build_name": null,
"build_resource_group_name": "{{ env `BUILD_RESOURCE_GROUP_NAME` }}",
Expand All @@ -232,6 +229,7 @@
"distribution_version": null,
"exclude_from_latest": "false",
"existing_ansible_ssh_args": "{{env `ANSIBLE_SSH_ARGS`}}",
"goss_arch": "amd64",
"ib_version": "{{env `IB_VERSION`}}",
"image_offer": "",
"image_publisher": "",
Expand All @@ -256,6 +254,8 @@
"kubernetes_semver": null,
"kubernetes_series": null,
"kubernetes_source_type": null,
"managed_image_name": "{{user `image_name`}}-{{user `build_timestamp`}}",
"managed_image_resource_group_name": "{{user `resource_group_name`}}",
"managed_image_storage_account_type": "{{user `storage_account_type`}}",
"manifest_output": "manifest.json",
"os_disk_size_gb": "",
Expand Down
4 changes: 4 additions & 0 deletions images/capi/packer/azure/scripts/init-sig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ create_image_definition() {
--hyper-v-generation ${3} \
--os-type ${4} \
--features ${5:-''} \
--architecture ${6:-'x64'} \
"${plan_args[@]}" # TODO: Delete this line after the image is GA
fi
}
Expand Down Expand Up @@ -186,6 +187,9 @@ case ${SIG_TARGET} in
ubuntu-2404-gen2)
create_image_definition ${SIG_TARGET} "24_04-lts-gen2" "V2" "Linux"
;;
ubuntu-2404-arm64-gen2)
create_image_definition ${SIG_TARGET} "24_04-lts-arm64-gen2" "V2" "Linux" "" "Arm64"
;;
ubuntu-2404-cvm)
create_image_definition ${SIG_TARGET} "24_04-lts-cvm" "V2" "Linux" ${SECURITY_TYPE_CVM_SUPPORTED_FEATURE}
;;
Expand Down
Loading