From ff802a37ab9676d29269f437f24e15774e8102cd Mon Sep 17 00:00:00 2001 From: Dan Voiculeasa Date: Mon, 9 Jan 2023 15:05:44 +0200 Subject: [PATCH] helm2to3: add missing bin directory During an upgrade script it is observed an error: Error: fork/exec /root/.local/share/helm/plugins/2to3/bin/2to3: no such file or directory 'helm 2to3' fails because it is expected to be in bin directory ([1]). We provide this structure in the package itself instead of downloading from github ([2] + [3]) [1]: https://github.com/helm/helm-2to3/blob/v0.10.0/plugin.yaml#L5 [2]: https://opendev.org/starlingx/config/src/commit/8ccf1c235abd8ec522cbd131f9e9870ab463b71c/controllerconfig/controllerconfig/upgrade-scripts/63-helm-v2-to-v3-rel_migration.sh#L35 [3]: https://github.com/helm/helm-2to3/blob/v0.10.0/scripts/install_plugin.sh#L5 Test: PASS: Call script 63-helm-v2-to-v3-rel_migration.sh and observe no error Story: 2009138 Task: 45584 Signed-off-by: Dan Voiculeasa Change-Id: I7ea76407d57f162f51058bc2ecf143147dafbde8 --- kubernetes/helm/debian/deb_folder/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/helm/debian/deb_folder/rules b/kubernetes/helm/debian/deb_folder/rules index 1f5efec59..82ecfdc2a 100755 --- a/kubernetes/helm/debian/deb_folder/rules +++ b/kubernetes/helm/debian/deb_folder/rules @@ -36,6 +36,8 @@ override_dh_auto_install: install -d -m 755 $(ROOT)/usr/local/share/helm install -d -m 755 $(ROOT)/usr/local/share/helm/plugins cp -R 2to3 $(ROOT)/usr/local/share/helm/plugins/ + install -d -m 755 $(ROOT)/usr/local/share/helm/plugins/2to3/bin + mv $(ROOT)/usr/local/share/helm/plugins/2to3/2to3 $(ROOT)/usr/local/share/helm/plugins/2to3/bin cp -R mapkubeapis $(ROOT)/usr/local/share/helm/plugins/ override_dh_usrlocal: