imageswap-webhook icon indicating copy to clipboard operation
imageswap-webhook copied to clipboard

library images with docker.io defined failed to replace correctly

Open daniel-anova opened this issue 5 months ago • 0 comments

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

daniel-anova avatar Sep 26 '24 10:09 daniel-anova