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

Remote Helm repository does not work when hosted on google cloud storage

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Not a Bug
    • Affects Version/s: 6.10.0
    • Fix Version/s: None
    • Component/s: Helm, Remote Repository
    • Environment:

      Artifactory Pro 6.10.4

      CentOS 7.6

      Description

      Reproduction is quite simple as the official stable helm repository is hosted on google cloud storage:

      1. Create a new remote helm repository with the default url (https://storage.googleapis.com/kubernetes-charts)
      2. Create a virtual helm repo and include the repo from above
      3. Look at the artifacts tree and observe that only the first few chart *.tgz are displayed (currently up until drupal)

      The cause of this is that google limits the results for the bucket list query to a maximum of 1000 items (https://cloud.google.com/storage/docs/xml-api/get-bucket-list). 

      When visiting the repo url in the browser the following can be seen:

      <ListBucketResult xmlns="http://doc.s3.amazonaws.com/2006-03-01">
      <Name>kubernetes-charts</Name>
      <Prefix/>
      <Marker/>
      <NextMarker>drupal-0.4.3.tgz</NextMarker>
      <IsTruncated>true</IsTruncated>
      <Contents>
      

      The IsTruncated property is set and the NextMarker point to the last element. This is the pagination as defined in the above mentioned google API docs.

      Artifactory needs to support this for remote helm charts to work that are hosted on google cloud storage. It is especially critical as the default "stable" repo is hosted this way.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stefan.lengauer Stefan Lengauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: