Skip to content

library images with docker.io defined failed to replace correctly #119

@danielpof

Description

@danielpof

What happened:

When there a library image with docker.io domain defined the replacement fails.

What you expected to happen:

The image to be replaced correctly like library images without docker.io domain defined

How to reproduce it (as minimally and precisely as possible):

define an image as docker.io/bash:latest

set replacement rule for docker.io and docker.io/library

Anything else we need to know?:

I've submitted a PR with a fix

Environment:

  • Kubernetes version (use kubectl version): `Client Version: v1.29.7; Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3; Server Version: v1.29.7
  • Cloud provider or hardware configuration: Azure AKS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions