1. Proposed title of this feature request:
oc-mirror should support passing Helm values or "lenient" rendering for charts with required parameters.
2. What is the nature and description of the request?
The oc-mirror tool currently attempts to render Helm charts using default values to discover container images. If a Helm chart enforces input validation (e.g., using the required function in templates), the mirroring process fails because there is no mechanism to supply these values during execution.
Specifically, when the ImageSetConfiguration includes a Helm chart that demands a specific parameter (such as a secret name or license key), oc-mirror aborts with a rendering error before image discovery can complete.
3. Why does the customer need this? (List the business requirements here):
This limitation prevents the disconnected mirroring of enterprise-grade Helm charts that utilize standard safety checks and validation logic. Consequently, users are forced to manually extract images and maintain static lists in additionalImages, defeating the purpose of automated Helm mirroring.
Error:
[Executor] collection error: failed to get template flex-gateway: error rendering chart flex-gateway: execution error at (flex-gateway/templates/deployment.yaml:4:10): registerSecretName, registration.content or registration.secretName is required!
Imagset:
kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 mirror: helm: repositories: - name: flex-gateway url: https://flex-packages.anypoint.mulesoft.com/helm charts: - name: flex-gateway version: 1.10.4 imagePaths: - "{.spec.template.spec.containers[*].image}"