Enforce Chart Name and Version

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This functionality ensures that the chart name and version specified in the packaged file name match the values in Chart.yaml and adhere to Semantic Versioning (SemVer2) standards adopted by the Helm official specification. Enforcing these rules promotes uniformity, allowing teams to adopt clear naming conventions that foster better collaboration and understanding of changes across different versions.

Example 1:

When deploying a chart with non-SemVer2 version (1.0.0.0 for example), Artifactory will reject the upload with a 403 response and a proper message.

This action is prevented due to the Enforce Layout Policy, the specified package version chart-1.0.0.0 does not comply with the Semantic Versioning format.

Example 2:

When deploying a chart under chart-1.0.0.tgz, the chart name and chart version inside the Chart.yaml file must be chart and 1.0.0 respectively, otherwise Artifactory will reject the upload with a 403 response code and a proper message.

This action is prevented due to the Enforce Layout Policy, the package file chart-1.0. does not match the package name/version chart:2.0.0 in the metadata file.

Example 3:

When deploying a chart with a malformed name or version, Artifactory will reject the upload with a 403 response code and a proper message.

This action is prevented due to the Enforce Layout Policy, the metadata of the package chart-1.0.0 could not be read or is malformed.