From 84a3fe52b6ca88a8c2e28175c3a768ca23ca196f Mon Sep 17 00:00:00 2001 From: Denys Melnyk Date: Tue, 28 Apr 2026 20:22:41 +0300 Subject: [PATCH 1/2] fix: update outdated dev scripts --- .../launchSettings.template.json | 2 +- setup-k8s-agent-for-local-debug.sh | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/k8s-agent-debug-cluster-config/launchSettings.template.json b/k8s-agent-debug-cluster-config/launchSettings.template.json index 45b765225..83853191c 100644 --- a/k8s-agent-debug-cluster-config/launchSettings.template.json +++ b/k8s-agent-debug-cluster-config/launchSettings.template.json @@ -20,7 +20,7 @@ "OCTOPUS__K8STENTACLE__PERSISTENTVOLUMESIZE": "10Gi", "KUBECONFIG": "", "DefaultLogDirectory": "/tmp/k8s-agent-debug-vol/logs", - "BOOTSTRAPRUNNEREXECUTABLEPATH": "/tmp/k8s-agent-debug-vol/bootstrapRunner", + "BOOTSTRAPRUNNEREXECUTABLEDIRECTORY": "/tmp/k8s-agent-debug-vol", "OCTOPUS__K8STENTACLE__PODRESOURCEJSON": "{\"requests\":{\"cpu\":\"25m\",\"memory\":\"100Mi\"}}" } } diff --git a/setup-k8s-agent-for-local-debug.sh b/setup-k8s-agent-for-local-debug.sh index 4bded7714..b54a0abf7 100755 --- a/setup-k8s-agent-for-local-debug.sh +++ b/setup-k8s-agent-for-local-debug.sh @@ -43,7 +43,17 @@ if [ $? -ne 0 ]; then fi echo "🏗️ - Building bootstrap runner" -env GOOS=linux go build -C docker/kubernetes-agent-tentacle/bootstrapRunner -ldflags "-s -w" -o "/tmp/k8s-agent-debug-vol/bootstrapRunner" +case "$(uname -m)" in + x86_64) GOARCH="amd64" ;; + aarch64|arm64) GOARCH="arm64" ;; + i386|i686) GOARCH="386" ;; + armv7l|armv6l) GOARCH="arm" ;; + *) + echo "❗ - Unsupported architecture: $(uname -m). Aborting." + exit 1 + ;; +esac +env GOOS=linux go build -C docker/kubernetes-agent-tentacle/bootstrapRunner -ldflags "-s -w" -o "/tmp/k8s-agent-debug-vol/bootstrapRunner-linux-${GOARCH}" if [ $? -ne 0 ]; then echo "" @@ -52,6 +62,9 @@ if [ $? -ne 0 ]; then exit -1 fi +echo "🏗️ - Coping bootstrap runner executor" +cp docker/kubernetes-agent-tentacle/bootstrapRunner/execute-bootstrapRunner.sh /tmp/k8s-agent-debug-vol + echo "" echo "" echo "The cluster is ready! 👌" From 71461a54b9c38fa2de875d0ef1c029efc7401a1b Mon Sep 17 00:00:00 2001 From: Denys Melnyk Date: Wed, 29 Apr 2026 16:31:42 +0300 Subject: [PATCH 2/2] Update according to comment --- setup-k8s-agent-for-local-debug.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup-k8s-agent-for-local-debug.sh b/setup-k8s-agent-for-local-debug.sh index b54a0abf7..8c2c08e55 100755 --- a/setup-k8s-agent-for-local-debug.sh +++ b/setup-k8s-agent-for-local-debug.sh @@ -46,8 +46,6 @@ echo "🏗️ - Building bootstrap runner" case "$(uname -m)" in x86_64) GOARCH="amd64" ;; aarch64|arm64) GOARCH="arm64" ;; - i386|i686) GOARCH="386" ;; - armv7l|armv6l) GOARCH="arm" ;; *) echo "❗ - Unsupported architecture: $(uname -m). Aborting." exit 1