fix: flatten dist/ contents into plugin root during init container extraction
The init container extracted the tarball preserving the dist/ subdirectory, placing main.js at /plugins/polaris/dist/main.js instead of /plugins/polaris/main.js where Headlamp expects it. Add cp -a dist/* . && rm -rf dist after extraction to flatten the build output into the plugin root directory. Fixes 6/16 E2E test failures (settings + badge navigation timeouts). Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -83,7 +83,7 @@ kubectl patch deployment "$HEADLAMP_DEPLOY" -n "$HEADLAMP_NS" --type=strategic -
|
||||
"image": "busybox:latest",
|
||||
"command": [
|
||||
"sh", "-c",
|
||||
"mkdir -p /plugins/${PLUGIN_NAME} && cd /plugins/${PLUGIN_NAME} && tar xzf /plugin-src/plugin.tar.gz && echo 'Plugin extracted successfully' && ls -la"
|
||||
"mkdir -p /plugins/${PLUGIN_NAME} && cd /plugins/${PLUGIN_NAME} && tar xzf /plugin-src/plugin.tar.gz && cp -a dist/* . && rm -rf dist && echo 'Plugin extracted successfully' && ls -la"
|
||||
],
|
||||
"volumeMounts": [
|
||||
{"name": "static-plugins", "mountPath": "/plugins"},
|
||||
|
||||
Reference in New Issue
Block a user