Using Flattened Image Names
Some registries require image and chart names without additional path segments. Flattening rewrites PAS-X MES image and Helm chart references to meet this requirement.
This applies to the OpenShift integrated registry with ImageStreams and to registries with customer-specific naming restrictions. For the OpenShift scenario, see OpenShift Internal Registry and ImageStreams.
Flattening rule
When flattening is enabled, SmartInstall keeps the last path segment of each name and places it under the configured registry and repository. SmartInstall truncates the name to 63 characters. The tag and digest remain unchanged.
| Delivered reference | Rendered reference |
|---|---|
|
|
|
|
|
|
Scope
Helm applies flattening when it renders each chart. It rewrites every image reference in the chart, including service containers, database installers, init containers, operators, and Argo Workflows executor and tools images. The same rule applies on every Kubernetes platform.
Two settings control flattening:
| Setting | Effect |
|---|---|
Flattens container image references. Set it in the global values file to apply it across charts, or in chart-specific values files to apply it to selected charts. |
|
Flattens the child Helm chart references generated by PAS-X MES Applications for Argo CD. |
Considerations
-
Images and charts must be published to the target registry under their flattened names. SmartInstall does not copy or publish these artifacts.
-
Flattened names must be unique in the target repository. Images with the same last path segment map to the same name, including when truncation makes two names identical.
-
Pods need pull access to the target registry. Configure Pull Secrets or use a Service Account with pull access.