From f74f40c061ae144ff3a6877b31e9d4c5d51236b4 Mon Sep 17 00:00:00 2001 From: Maciej Golaszewski Date: Thu, 28 Nov 2024 22:28:10 +0100 Subject: [PATCH] wip3 --- .github/workflows/e2e.yaml | 7 ++++--- pkg/ck8s/workload_cluster.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9d047fda..66df6a94 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -120,6 +120,7 @@ jobs: docker ps docker image ls df -h + sudo chmod -R a+rw _artifacts - name: Upload artifacts uses: actions/upload-artifact@v4 if: ${{ failure() }} @@ -127,6 +128,6 @@ jobs: name: artifacts path: _artifacts - - name: Setup tmate session - if: ${{ failure() }} - uses: canonical/action-tmate@main \ No newline at end of file +# - name: Setup tmate session +# if: ${{ failure() }} +# uses: canonical/action-tmate@main \ No newline at end of file diff --git a/pkg/ck8s/workload_cluster.go b/pkg/ck8s/workload_cluster.go index b333fa23..a8357a86 100644 --- a/pkg/ck8s/workload_cluster.go +++ b/pkg/ck8s/workload_cluster.go @@ -473,7 +473,7 @@ func (w *Workload) doK8sdRequest(ctx context.Context, k8sdProxy *K8sdClient, met return fmt.Errorf("failed to parse HTTP response: %w", err) } if res.StatusCode != http.StatusOK { - return fmt.Errorf("HTTP request failed with status code: %d (%s)", res.StatusCode, responseBody.Error) + return fmt.Errorf("HTTP request failed with status code: %d (%s) %s", res.StatusCode, responseBody.Error, url) } if responseBody.Error != "" { return fmt.Errorf("k8sd request failed: %s", responseBody.Error)