You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ oc-mirror --config=.asoro/airgap/my-image-set-configuration.yaml file://mirror-archive
Creating directory: mirror-archive/oc-mirror-workspace/src/publish
Creating directory: mirror-archive/oc-mirror-workspace/src/v2
Creating directory: mirror-archive/oc-mirror-workspace/src/charts
Creating directory: mirror-archive/oc-mirror-workspace/src/release-signatures
backend is not configured in .asoro/airgap/my-image-set-configuration.yaml, using stateless mode
backend is not configured in .asoro/airgap/my-image-set-configuration.yaml, using stateless mode
No metadata detected, creating new workspace
Pulling chart redhat-developer-hub
error image list []
No new images detected, process stopping
Am I missing something? I would expect at least the images to be detected. I even tried forcing the imagePaths, but no luck.
After checking out and debugging the source code of oc-mirror, I narrowed it down to the way the Chart is being rendered. By manually updating and running the mirror.TestFindImages test case against the Chart above, I noticed the following err:
Then I dug a little bit, and noticed that's because the Chart has a dependency as an alias, and it seems oc-mirror does not correctly merge the values.yaml files from both the parent and the aliased charts, hence the error with this upstream.service.ports.backend, which is missing from the parent chart, but declared in the subchart values.
NOTE: helm template renders the resources correctly against the same Chart:
$ oc mirror version
WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.17.0-202412170235.p0.g07714b7.assembly.stream.el9-07714b7", GitCommit:"07714b7c836ec3ad1b776f25b44c3b2c2f083aa2", GitTreeState:"clean", BuildDate:"2024-12-17T20:25:22Z", GoVersion:"go1.22.9 (Red Hat 1.22.9-2.el9_5) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
Also tried from the main branch:
$ ./bin/oc-mirror version
W0123 23:20:04.652973 4016041 mirror.go:102]
⚠️ oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2
WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-352-gf6df853", GitCommit:"f6df8533", GitTreeState:"dirty", BuildDate:"2025-01-23T14:59:23Z", GoVersion:"go1.23.5", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered:
/kind bug
Description
Hi there,
I'm trying to mirror this Helm Chart (https://github.com/openshift-helm-charts/charts/blob/main/charts/redhat/redhat/redhat-developer-hub/1.4.1/redhat-developer-hub-1.4.1.tgz), but for some reason,
oc-mirror
is not able to detect the images to mirror.Here is my image set config:
Output of
oc-mirror
:Am I missing something? I would expect at least the images to be detected. I even tried forcing the
imagePaths
, but no luck.After checking out and debugging the source code of
oc-mirror
, I narrowed it down to the way the Chart is being rendered. By manually updating and running themirror.TestFindImages
test case against the Chart above, I noticed the following err:Then I dug a little bit, and noticed that's because the Chart has a dependency as an alias, and it seems
oc-mirror
does not correctly merge thevalues.yaml
files from both the parent and the aliased charts, hence the error with thisupstream.service.ports.backend
, which is missing from the parent chart, but declared in the subchart values.NOTE:
helm template
renders the resources correctly against the same Chart:helm template
Versions of software
Operating System:
Fedora 41
Output of
oc-mirror version
:Also tried from the
main
branch:The text was updated successfully, but these errors were encountered: