Skip to content

e2e: Use fully qualified image name for images#1472

Open
RamLavi wants to merge 3 commits intok8snetworkplumbingwg:masterfrom
RamLavi:fix_alpine_short_name
Open

e2e: Use fully qualified image name for images#1472
RamLavi wants to merge 3 commits intok8snetworkplumbingwg:masterfrom
RamLavi:fix_alpine_short_name

Conversation

@RamLavi
Copy link
Member

@RamLavi RamLavi commented Jan 19, 2026

CRI-O 1.34+ enforces short name mode by default, which refuses to pull images with unqualified names like 'alpine/centos:8/ubuntu' because they are ambiguous.

This PR changes the use short name image to the fully qualified images, in order to fix image pull failures on Kubernetes 1.34+ clusters.

Fixes: #1471

@gemini-code-assist
Copy link

Summary of Changes

Hello @RamLavi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a compatibility issue with newer Kubernetes environments running CRI-O 1.34+ by updating an image reference in an end-to-end test template. The modification ensures that images are pulled successfully by providing their fully qualified names, thereby preventing test failures related to CRI-O's stricter image name resolution policy.

Highlights

  • Image Reference Update: The alpine image reference has been updated to its fully qualified name, docker.io/library/alpine, within the e2e/templates/cni-install.yml.j2 file.
  • CRI-O Compatibility Fix: This change resolves image pull failures occurring in Kubernetes 1.34+ clusters, where CRI-O 1.34+ enforces the use of fully qualified image names by default, preventing issues with ambiguous short names.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly resolves an image pull failure on newer Kubernetes clusters by using a fully qualified image name for Alpine. This is a necessary and well-executed change. I have one suggestion to further improve the stability of the e2e tests by pinning the Alpine image to a specific version, which is a recommended best practice to ensure reproducible builds.

containers:
- name: install-cni-plugins
image: alpine
image: docker.io/library/alpine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

For better reproducibility and to avoid unexpected changes, it's recommended to pin the Docker image to a specific version tag instead of relying on the implicit :latest tag. This ensures that the e2e tests always use the same version of the Alpine image, preventing potential failures due to upstream changes in the image.

        image: docker.io/library/alpine:3.20

@RamLavi RamLavi force-pushed the fix_alpine_short_name branch from fdb3d73 to 1c4b0b7 Compare January 19, 2026 21:53
@coveralls
Copy link

coveralls commented Jan 19, 2026

Coverage Status

coverage: 49.721% (-0.2%) from 49.907%
when pulling ed71f70 on RamLavi:fix_alpine_short_name
into 9c05100 on k8snetworkplumbingwg:master.

Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tks

CRI-O 1.34+ enforces short name mode by default, which refuses
to pull images with unqualified names like 'alpine' because they
are ambiguous.

Use a full image docker.io/library/alpine

Fixes k8snetworkplumbingwg#1471

Signed-off-by: Ram Lavi <ralavi@redhat.com>
CRI-O 1.34+ enforces short name mode by default, which refuses
to pull images with unqualified names like 'centos:8' because they
are ambiguous.

Use the full image quay.io/centos/centos:8

Fixes k8snetworkplumbingwg#1471

Signed-off-by: Ram Lavi <ralavi@redhat.com>
CRI-O 1.34+ enforces short name mode by default, which refuses
to pull images with unqualified names like 'ubuntu:22.04' because they
are ambiguous.

Use the full image docker.io/library/ubuntu:22.04

Fixes k8snetworkplumbingwg#1471

Signed-off-by: Ram Lavi <ralavi@redhat.com>
@RamLavi RamLavi force-pushed the fix_alpine_short_name branch from 1c4b0b7 to ed71f70 Compare January 21, 2026 20:56
@RamLavi RamLavi changed the title e2e: Use fully qualified image name for alpine e2e: Use fully qualified image name for images Jan 21, 2026
Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tks

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.

e2e: alpine image pull failure on CRI-O 1.34+ due to short name enforcement

3 participants