Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Golaszewski committed Nov 28, 2024
1 parent 7f20730 commit f74f40c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@ jobs:
docker ps
docker image ls
df -h
sudo chmod -R a+rw _artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: artifacts
path: _artifacts

- name: Setup tmate session
if: ${{ failure() }}
uses: canonical/action-tmate@main
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: canonical/action-tmate@main
2 changes: 1 addition & 1 deletion pkg/ck8s/workload_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f74f40c

Please sign in to comment.