Skip to content

Conversation

Kumm-Kai
Copy link
Member

Description

This fixes retrieval of new kubeconfigs via the SKE login plugin when using the CLI in a "cross" region setup: CLI configured for eu01 but login kubeconfig for a cluster in eu02.
Instead of using the CLIs region flag, it will now use the region as included in the login kubeconfig (.clusters.cluster.extensions.extension.region). The region field will be included in all newly retrieved login kubeconfigs at the beginning of next week. But I've kept the current behavior as a fallback in case the field is missing, so this PR doesn't depend on the updated SKE-API.

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)

This wasn't really an issue as unmarshal does prefer an "exact match but
also accepting a case-insensitive match"
@marceljk marceljk force-pushed the fix/ske-login-multiregion branch from 0418d22 to 2ae33a1 Compare September 16, 2025 09:34
@marceljk marceljk enabled auto-merge (squash) September 16, 2025 09:34
@marceljk marceljk merged commit 813914b into stackitcloud:main Sep 16, 2025
5 checks passed
@Kumm-Kai Kumm-Kai deleted the fix/ske-login-multiregion branch September 16, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants