Activate Helm Enforce Layout

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Enforcement can be enabled either globally for all Helm repositories in Artifactory, or for specific Helm repositories. If you enable enforcement globally, the enforcement cannot be later disabled on any Helm repositories in Artifactory.

Enable Enforcement Globally

To enable global enforcement, in Artifactory click the Administration tab and go to Artifactory Settings->Packages Settings. The Package Settings screen appears, as shown below.

Helm_enforce_layout_globally.png

In the Package Settings screen, select the check boxes by Prevent Duplicate Chart Paths and Enforce Chart Name and Version, then click Save.

Enable Enforcement on Specific Repositories

System Administrators can selectively activate enforcement on specific repositories. This allows tailored enforcement that fits the specific needs of different projects or teams.

To enable enforcement on a specific repository:

  1. In Artifactory click the Administration tab and click Repositories in the navigation panel on the left. The Repositories screen appears, as shown below.

    Repositories_screen.png
  2. In the Repositories screen, click the Create a Repository button and then Local from the drop-down menu. The Select Package Type window appears, as shown below.

    Select_package_type.png
  3. In the Select Package Type window, select Helm. The New Local Repository screen appears, as shown below.

    New_Local_Repo2.png
  4. In the New Local Repository screen, click Use Legacy Helm. At the bottom-right of the screen, the Enforcement Settings appear, as shown below.

    New_Local_Repo_Legacy_Helm.png
  5. Under Enforcement Settings,  select the check boxes by Prevent Duplicate Chart Paths and Enforce Chart Name and Version, then click Create Local Repository.

Note

When two or more local repositories under a virtual repository have the same chart name and version, the resolution will be according to the repositories' resolution order.