Skip to content

Conversation

Benjosh95
Copy link
Contributor

@Benjosh95 Benjosh95 commented Sep 9, 2025

Description

Jira: https://jira.schwarz/secure/RapidBoard.jspa?rapidView=41274&view=detail&selectedIssue=STACKITCLI-219

Convertion Function "ConvertByteArraysToBase64" got added in go-sdk utils that handles proper convertion of byteArrays to base64 strings. It's used for the server list and server describe commands.

Checkout the GO-SDK with branch bf/userdata-base64-fix and replace SDK with local path:
replace github.com/stackitcloud/stackit-sdk-go => /Users/bfuertsch/work/StackIT/stackit-sdk-go
To access the convertion function

Testing Instructions

already well documented in the jira ticket for server describe command (same applies for list command):
https://jira.schwarz/browse/STACKITCLI-219

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@Benjosh95 Benjosh95 requested a review from a team as a code owner September 9, 2025 07:07
// Convert each server to map with base64 encoded byte arrays
convertedServers := make([]map[string]interface{}, len(servers))
for i, server := range servers {
converted, err := sdkutils.ConvertByteArraysToBase64(server)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about JSON output? Isn't the adjustment also needed there?

Copy link

This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.

@github-actions github-actions bot added the Stale label Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants