Step 3: Resolving a chart from the smart remote

ARTIFACTORY: How to Create a Legacy Helm Smart Remote Repository

AuthorFullName__c
Alex Gonglach
articleNumber
000006133
ft:sourceType
Salesforce
FirstPublishedDate
2024-07-02T07:18:58Z
lastModifiedDate
2024-07-02
VersionNumber
3
After creating these repositories, let’s set up the Helm client to interact with the virtual repository. You can use the handy “Set Me Up” instructions in the UI:

User-added image

User-added image
After the repository has been added, run a “helm repo update” for the virtual repository that was just added:

helm repo update helm-legacy-virtual                                                                                          
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "helm-legacy-virtual" chart repository
Update Complete. ⎈Happy Helming!⎈


After performing this update, you should see the upstream local repository’s artifacts in the UI:

User-added image

If we look at the index.yaml for “helm-legacy-virtual”, we will see the URL of this Artifactory as opposed to the URL of the upstream Artifactory. This is due to selecting “Enable Dependency Rewrite” in Step 1. If the URL in the index.yaml still matches the upstream artifactory’s URL, try performing “Zap Caches” on the virtual repository, followed by a “helm repo update”. You can read more about zapping caches here.

User-added image

At this point, you can try pulling a helm chart from the virtual repository. In this example, the upstream has only one chart, postgresql, which I’ll pull here:

helm pull helm-legacy-virtual/postgresql

After pulling this chart, you should also notice that this chart appears in the smart remote’s cache:

User-added image


If you’d like to set up a smart remote repository that points to an upstream remote repository, the steps are identical to these. Remember to point the smart-remote repository directly to the upstream remote repository and not an upstream virtual repository.

Happy Helming!