Skip to content

e2e scripts: add rootless podman and local environment support#2362

Closed
delthas wants to merge 9 commits intodevelopment/2.14from
improvement/local-dev-podman-support
Closed

e2e scripts: add rootless podman and local environment support#2362
delthas wants to merge 9 commits intodevelopment/2.14from
improvement/local-dev-podman-support

Conversation

@delthas
Copy link
Copy Markdown
Contributor

@delthas delthas commented Mar 25, 2026

Summary

  • Auto-detect rootless podman and configure kind with delegated systemd scope
  • Fix DNS resolution issues caused by podman injecting dns.podman search domains
  • Support HOST_DNS override for CoreDNS patching in podman environments
  • Use 127.0.0.1 instead of localhost and add scheme variable for get_token
  • Override VOLUME_ROOT for local development, remove unused local registry setup
  • Allow using a local zenko-operator checkout if available
  • Add /etc/hosts pre-setup documentation and idempotent hosts file checks

delthas added 9 commits March 25, 2026 17:24
… scope

When running kind with rootless podman from a graphical terminal,
cgroup controllers may not be delegated to the process's cgroup.
Detect this and automatically wrap kind create in a systemd scope
with Delegate=yes.
Avoid adding duplicate entries to /etc/hosts on re-runs by checking
if each zenko.local hostname already exists before appending.
The kind local registry was only partially implemented (missing
containerd certs.d configuration on nodes) and was never used by
any script. All images are loaded via kind load docker-image.
Removing it also fixes a podman networking incompatibility.
When ../zenko-operator exists, symlink it instead of cloning from
GitHub. This avoids creating a nested git repo and allows using a
local working copy for development. Also clean up the operator
image after loading it into kind.
Use $PWD/artifacts instead of /artifacts for kind volume mounts
so the setup works outside CI where /artifacts does not exist.
Podman's aardvark-dns (used as the default DNS inside KinD nodes)
fails to forward external DNS queries reliably. CoreDNS forwards
to /etc/resolv.conf which points to aardvark-dns, causing SERVFAIL
for external domains like ghcr.io.

When HOST_DNS is set, patch-coredns.sh uses it as the CoreDNS
forward target instead of /etc/resolv.conf. The devcontainer
setup.sh detects the host nameserver and exports HOST_DNS.
Use a scheme variable based on ENABLE_KEYCLOAK_HTTPS instead of
hardcoding https. Use 127.0.0.1 instead of localhost to avoid
curl resolving to IPv6 ::1, which kind does not bind on.
Podman injects "dns.podman" into node resolv.conf, which leaks
into pod DNS config. CoreDNS cannot resolve this domain, causing
8s timeouts per lookup and killing pods that rely on fast DNS
during init (e.g. zookeeper).
@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Mar 25, 2026

Hello delthas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Mar 25, 2026

Missing Jira issue

It is mandatory to specify a Jira issue in the source branch name
in order to merge into development/2.14. The issue key must follow
the prefix of the branch.

I could not find such an issue in improvement/local-dev-podman-support.

@delthas
Copy link
Copy Markdown
Contributor Author

delthas commented Mar 25, 2026

Oops this was auto-created. Sorry. 😅

@delthas delthas closed this Mar 25, 2026
@delthas delthas deleted the improvement/local-dev-podman-support branch March 25, 2026 21:05
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