You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STACKIT will move to a new way of specifying regions, where the region is provided
as a function argument instead of being set in the client configuration.
Once all services have migrated, the methods to specify the region in the client
configuration will be removed.
Signed-off-by: Alexander Dahmen <[email protected]>
Copy file name to clipboardExpand all lines: core/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
## v0.15.0 (2025-01-02)
2
+
3
+
-**Breaking Change:**: `ConfigureRegion` returns an error if a region is specified for a global URL.
4
+
5
+
STACKIT will move to a new way of specifying regions, where the region is provided as a function argument instead of being set in the client configuration. Once all services have migrated, the methods to specify the region in the client configuration will be removed.
6
+
1
7
## v0.14.0 (2024-10-10)
2
8
3
9
-**Feature:**: Added `IntermediateStateReached` to `AsyncActionHandler` that can be used to check for an intermediate state when executing the wait function of a wait handler.
// ConfigureRegion configures the API server urls with the user specified region.
479
480
// Does nothing if a custom endpoint is provided.
480
481
// Throws an error if no region is given or if the region is not valid
482
+
// Throws an error if a region is given for a global url.
481
483
funcConfigureRegion(cfg*Configuration) error {
484
+
log.Println("WARNING: STACKIT will move to a new way of specifying regions, where the region is provided as a function argument instead of being set in the client configuration."+
485
+
" Once all services have migrated, the methods to specify the region in the client configuration will be removed.")
returnfmt.Errorf("the provided region is not available for this API, available regions are: %s", availableRegions)
521
525
}
522
-
// Global API. The provided region is ignored.
526
+
// Global API.
527
+
// If a region is provided by the user via WithRegion() or via environment variable return an error.
528
+
// The region is provided as a function argument instead of being set in the client configuration.
529
+
ifcfg.Region!="" {
530
+
returnfmt.Errorf("this API does not support setting a region in the the client configuration, please check if the region can be specified as a function parameter")
531
+
}
523
532
// If the url is a template, generated using deprecated config.json, the region variable is replaced
524
533
// If the url is already configured, there is no region variable and it remains the same
0 commit comments