Skip to content

Images with underscore in name not seen by zarf dev find-images #3868

@alexifsp

Description

@alexifsp

Environment

Device and OS: Linux
App version: 0.51.0 - 0.55.5
Kubernetes distro being used: K3S (doesn't matter)
Other:

Steps to reproduce

  1. Create a chart with reference to an image that contains "_" in name:
    Example: percona/mongoldb_exporter (the one where I found the issue)

Expected result

When using container images with underscore in their names find-images should be able to discover them.

Actual Result

Images with underscore in their names are not returned by zarf dev find-images command.

Visual Proof (screenshots, videos, text, etc)

mongodb-exporter:

components:
  - name: myproject
    images:
      - my.artifactory/dockerhub/percona/percona-server-mongodb-operator:1.19.1
      - my.artifactory/ghcr.io/ot-container-kit/redis-operator/redis-operator:v0.20.2
      # Possible images - myproject - myproject
      - my.artifactory/dockerhub/percona/percona-server-mongodb:5.0.29-25
      - my.artifactory/dockerhub/percona/percona-server-mongodb:6.0.21-18
      - my.artifactory/dockerhub/percona/percona-server-mongodb:7.0.18-11
      - my.artifactory/dockerhub/percona/percona-server-mongodb:8.0.8-3
      - my.artifactory/myproject-docker-dev/percona/mongodb-exporter:0.44.0
      - my.artifactory/quay.io/opstree/redis-exporter:v1.48.0
      - my.artifactory/quay.io/opstree/redis-sentinel:v6.2.17
      - my.artifactory/quay.io/opstree/redis-sentinel:v7.2.7
      - my.artifactory/quay.io/opstree/redis:v6.2.17
      - my.artifactory/quay.io/opstree/redis:v7.2.7

mongodb_exporter:

components:
  - name: myproject
    images:
      - my.artifactory/dockerhub/percona/percona-server-mongodb-operator:1.19.1
      - my.artifactory/ghcr.io/ot-container-kit/redis-operator/redis-operator:v0.20.2
      # Possible images - myproject - myproject
      - my.artifactory/dockerhub/percona/percona-server-mongodb:5.0.29-25
      - my.artifactory/dockerhub/percona/percona-server-mongodb:6.0.21-18
      - my.artifactory/dockerhub/percona/percona-server-mongodb:7.0.18-11
      - my.artifactory/dockerhub/percona/percona-server-mongodb:8.0.8-3
      - my.artifactory/quay.io/opstree/redis-exporter:v1.48.0
      - my.artifactory/quay.io/opstree/redis-sentinel:v6.2.17
      - my.artifactory/quay.io/opstree/redis-sentinel:v7.2.7
      - my.artifactory/quay.io/opstree/redis:v6.2.17
      - my.artifactory/quay.io/opstree/redis:v7.2.7

Severity/Priority

Additional Context

As a workaround I had to tag the official image to an image name with "-" but this will of course disrupt my automatic dependency update as I can't refer to official image.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions