Skip to content

chore(ci): add apt mirror support for ubuntu in cloud-init#2232

Merged
universal-itengineer merged 2 commits into
mainfrom
chore/ci/use-mirrir-apt-e2e-nightly
Apr 17, 2026
Merged

chore(ci): add apt mirror support for ubuntu in cloud-init#2232
universal-itengineer merged 2 commits into
mainfrom
chore/ci/use-mirrir-apt-e2e-nightly

Conversation

@universal-itengineer
Copy link
Copy Markdown
Member

@universal-itengineer universal-itengineer commented Apr 17, 2026

Description

This PR adds APT mirror support for Ubuntu in e2e tests and cloud-init configurations.

Changes

  • CI (e2e-reusable-pipeline.yml): Added apt_mirror_enabled, apt_mirror_name, and apt_mirror_url input parameters with Hetzner mirror as default
  • CI (e2e-matrix.yml): Enabled aptMirror in Deckhouse config for replicated and NFS e2e test jobs
  • Cloud-init (_cloudinit.tpl): New template for configuring APT repositories in VM cloud-init
  • NFS VM: Updated to use the new cloud-init module with mirror support

Why do we need it, and what problem does it solve?

E2e tests running on Hetzner infrastructure experience slow or failing package downloads from default Ubuntu repositories. Using a local Hetzner mirror (https://mirror.hetzner.com/ubuntu/packages) improves reliability and speed.

What is the expected result?

VMs created during e2e tests use Hetzner mirror for apt package downloads, resulting in faster and more reliable test execution on Hetzner infrastructure.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: ci
type: chore
summary: "Added APT mirror support for Ubuntu in e2e tests with Hetzner mirror as default."

Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
@universal-itengineer universal-itengineer added this to the v1.8.0 milestone Apr 17, 2026
@universal-itengineer universal-itengineer force-pushed the chore/ci/use-mirrir-apt-e2e-nightly branch from e8f1f5b to 7c39228 Compare April 17, 2026 09:30
@universal-itengineer universal-itengineer marked this pull request as ready for review April 17, 2026 09:30
@universal-itengineer universal-itengineer merged commit 38e2ec4 into main Apr 17, 2026
43 of 56 checks passed
@universal-itengineer universal-itengineer deleted the chore/ci/use-mirrir-apt-e2e-nightly branch April 17, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants