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

Helm doesn't support an empty requirements yml file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.2
    • Fix Version/s: 6.16.0
    • Component/s: Helm
    • Labels:

      Description

      When uploading a package that contains an empty 'requirements.yaml' Artifactory will not index the helm package. 

      the requirements.yaml file is optional and listing dependencies for the chart

      Update: This also affects commented out requirements.yaml files! Such as:

      # dependencies:
      #   - name: artifactory
      #     version: 1.0.0
      

      The stack trace will just change the line that it starts parsing on:
      [http-nio-8084-exec-84] [DEBUG] (o.j.r.h.HelmMetadataExtractor:54) - Error while extracting metadata from chart: No content to map due to end-of-input

      at [Source: (StringReader); line: 4, column: 1]

      The only workaround is to delete the requirements.yaml file, or have a uncommented requirements.yaml file (it can have comments, just cannot be 100% commented out)

        Attachments

          Activity

            People

            Assignee:
            barh Bar Haim
            Reporter:
            batelt Batel Tova
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: