hetznercloud / csi-driver

Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes
MIT License
620 stars 102 forks source link

deps: update module github.com/hetznercloud/hcloud-go/v2 to v2.12.0 #672

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/hetznercloud/hcloud-go/v2 v2.11.0 -> v2.12.0 age adoption passing confidence

Release Notes

hetznercloud/hcloud-go (github.com/hetznercloud/hcloud-go/v2) ### [`v2.12.0`](https://togithub.com/hetznercloud/hcloud-go/releases/tag/v2.12.0) [Compare Source](https://togithub.com/hetznercloud/hcloud-go/compare/v2.11.0...v2.12.0) ##### API Changes for Traffic Prices and Server Type Included Traffic There will be a breaking change in the API regarding Traffic Prices and Server Type Included Traffic on 2024-08-05. This release marks the affected fields as `Deprecated`. Please check if this affects any of your code and switch to the replacement fields where necessary. You can learn more about this change in [our changelog](https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format). ##### Upgrading ##### Server Type Included Traffic If you were using the field `hcloud.ServerType.IncludedTraffic`, you can now get the information through `hcloud.ServerType.Pricings`: ```go func main() { // previous includedTraffic := serverType.IncludedTraffic // now locationOfInterest := "fsn1" var includedTraffic uint64 for _, price := range serverType.Pricings { if price.Location.Name == locationOfInterest { includedTraffic = price.IncludedTraffic break } } } ``` ##### Traffic Prices If you were using the field `hcloud.Pricing.Traffic`, you can now get the information through `hcloud.Pricing.ServerTypes` or `hcloud.Pricing.LoadBalancerTypes`: ```go func main() { // previous trafficPrice := pricing.Traffic // now serverTypeOfInterest := "cx22" locationOfInterest := "fsn1" var trafficPrice hcloud.Price for _, serverTypePricings := range pricing.ServerTypes { if serverTypePricings.ServerType.Name == serverTypeOfInterest { for _, price := range serverTypePricings { if price.Location.Name == locationOfInterest { trafficPrice = price.PerTBTraffic break } } } } } ``` ##### Features - add jitter in the client default retry exponential backoff ([#​492](https://togithub.com/hetznercloud/hcloud-go/issues/492)) ([6205076](https://togithub.com/hetznercloud/hcloud-go/commit/6205076b89350bdbf08bc6b771a1d1267a3ac422)) - add new `WithPollOpts` client option ([#​493](https://togithub.com/hetznercloud/hcloud-go/issues/493)) ([2c1a2d6](https://togithub.com/hetznercloud/hcloud-go/commit/2c1a2d65596bcbe282ff004c1a9da89950e754df)) - allow checking multiple errors codes in `IsError` ([#​491](https://togithub.com/hetznercloud/hcloud-go/issues/491)) ([af59ab8](https://togithub.com/hetznercloud/hcloud-go/commit/af59ab846665abd735c9717eb2a47c0a8c79776d)) - **load-balancer-type:** new traffic price fields ([94e0f44](https://togithub.com/hetznercloud/hcloud-go/commit/94e0f44d269fdb5138485a6e69dae9105690e4b0)) - **pricing:** mark traffic field as deprecated ([94e0f44](https://togithub.com/hetznercloud/hcloud-go/commit/94e0f44d269fdb5138485a6e69dae9105690e4b0)) - **server-type:** mark included traffic field as deprecated ([94e0f44](https://togithub.com/hetznercloud/hcloud-go/commit/94e0f44d269fdb5138485a6e69dae9105690e4b0)) - **server-type:** new traffic price fields ([94e0f44](https://togithub.com/hetznercloud/hcloud-go/commit/94e0f44d269fdb5138485a6e69dae9105690e4b0))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 34.01%. Comparing base (5a6679a) to head (6a941be).

Files Patch % Lines
internal/app/app.go 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #672 +/- ## ========================================== - Coverage 34.05% 34.01% -0.05% ========================================== Files 19 19 Lines 1621 1623 +2 ========================================== Hits 552 552 - Misses 1035 1037 +2 Partials 34 34 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.