Skip to content

Update STACKIT SDK#882

Draft
robinschneider wants to merge 9 commits into
flatcar:mainfrom
robinschneider:stackit-improvements
Draft

Update STACKIT SDK#882
robinschneider wants to merge 9 commits into
flatcar:mainfrom
robinschneider:stackit-improvements

Conversation

@robinschneider

@robinschneider robinschneider commented Jul 9, 2026

Copy link
Copy Markdown
Member

Update STACKIT SDK & improve garbage collection and deletion

STACKIT resource deletion fails regularly and the garbage collection fails to clean up these resources.

  • delete reources best effort
  • use new SDK path instead of deprecated ones
  • manually add label(s) if they are missing
  • use a single security group only

How to use

[ describe what reviewers need to do in order to validate this PR ]

Testing done

[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

Copilot AI review requested due to automatic review settings July 9, 2026 12:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Copilot AI review requested due to automatic review settings July 9, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Copilot AI review requested due to automatic review settings July 9, 2026 15:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
@robinschneider robinschneider force-pushed the stackit-improvements branch from 63774c4 to e621608 Compare July 9, 2026 15:17
Comment thread platform/api/stackit/api.go Outdated
Comment thread platform/api/stackit/api.go Outdated
Comment on lines +479 to +483
ip.Labels = labels
break
}
verifiedIpAddress = ip
return nil

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
ip.Labels = labels
break
}
verifiedIpAddress = ip
return nil
ipAddress.Labels = labels
return nil
}
return nil

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is now outdated, not sure if it is resolved as requested

Comment thread platform/api/stackit/api.go
Comment on lines +465 to +468
ip, err := a.client.GetPublicIP(ctx, a.projectID, a.region, ipAddress.GetId()).Execute()
if err != nil {
return fmt.Errorf("getting public IP: %w", err)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of "getting" the IP, can't we just update it directly? If the labels are already here, it's a no-op otherwise it sets them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, but now I am thinking about if we should keep it and log it to find out if the issue get fixed in the future?

Copilot AI review requested due to automatic review settings July 10, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants