rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
462 stars 261 forks source link

Make extension script allow for multiarch builds #9362

Open dgiebert opened 1 year ago

dgiebert commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, the extensions create a single container image for a build that has a specific architecture (amd64)

Describe the solution you'd like For the UI Extension that uses it e.g. https://github.com/kubewarden/ui

In the dashboard enhance it to:

blackwood821 commented 1 month ago

I just ran into this issue as well:

e4194ad3a5bf:/var/lib/rancher # kubectl -n cattle-ui-plugin-system logs deploy/rancher-extension-triton
exec /usr/sbin/nginx: exec format error

The issue turned out to be that I ran yarn publish-pkgs -c ... on a Mac with an Apple chip which resulted in the docker image being built for arm64 but I needed it to be built for linux/amd64.

To work around the issue I manually added --platform linux/amd64 to ./node_modules/@rancher/shell/scripts/extension/helm/scripts/package in my project.