Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26268

Helm index.yml creates two double quotes when Version or appVersion contains a comma ","

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.24.1, 7.21.10
    • Fix Version/s: 7.25.4, 7.26.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Artifactory version 7.21.12 and 7.24.3

      Derby

      This was not tested in HA

      Tested On-Prem

    • Location:
      External

      Description

      Problem description:

      When a helm chart has a Version or appVersion with a comma the index.yml that gets generated in an Artifactory helm repository has two double quotes. 

      This breaks resolving local helm charts as the misformatting in the local repository's index.yaml causes the charts not to appear in the index.yaml of the virtual repository

      Expected behavior:

      When deploying a helm chart with a comma in the appVersion or dependency's version fields the resulting index.yml should not contain the extra double quote.

      Steps to reproduce:

      1. Create a helm chart with a comma in dependency's version or appVersion.

      Example:

      apiVersion: v2
      dependencies:

      alias: crdbredisio
      condition: use_celery.enabled
      name: mariadb
      repository: https://charts.helm.sh/stable
      version: ">=1.1.0-0, < 1.1.1-0 || ^1.1.0+0"
      description: A Helm chart for Kubernetes
      name: foo
      type: application
      version: "1.08"
      appVersion: 1.0.6+11,

      2. Create the helm package containing this Chart.yaml (i.e. helm package ./foo)

      3. Deploy to a local helm repository (i.e. curl -u<USERNAME>:<PASSWORD> -T <PATH_TO_FILE> "http://mill.jfrog.info:12902/artifactory/helm-helm-local/<TARGET_FILE_PATH>")

      4. Look at the generated index.yaml and observe the misformatting

      apiVersion: v1
      entries:
      foo:

      apiVersion: v2
      created: DATE
      description: A Helm chart for Kubernetes
      digest: 6dbd2909eee7b2cade724e10793f760a73e6efe15894c0d772a67cbb169ede23
      name: foo
      URLs:

      local://foo-1.08.tgz
      type: application
      dependencies:

      name: mariadb
      repository: https://charts.helm.sh/stable
      version: "">=1.1.0-0, < 1.1.1-0 || ^1.1.0+0""
      appVersion: ""1.0.6+11,""
      version: "1.08"

      Possible Workaround:

      Find and redeploy the helm charts with the commas, remove them and redeploy.

      Environment details:

      Artifactory version 7.21.12 and 7.24.3

      Derby

      This was not tested in HA

      Tested On-Prem

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              derekp Derek Pang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26270 -
                  ERROR
                  • Last Sync Date: