Commit Graph

16 Commits

Author SHA1 Message Date
Karol Wychowaniec 5245a5b934 Minor refactor to scale-up orchestrator for more re-usability 2025-01-21 14:19:59 +00:00
Walid Ghallab 720f5946fd Refactor NewAutoscalerError function.
We will have two functions instead of one:
1. One that doesn't do formatting, like klog.Error
2. One that accepts formating, like klog.Errorf

The main reason behind this is to avoid go vet errors and have clear
interfaces to catch accidental bugs and rely on go vet to catch those
accidental bugs (or go test in go 1.24, as those are treated as errors).
2024-12-16 17:46:40 +00:00
Kuba Tużnik bc16a6f55b CA: wrap the provided errors in ToAutoscalerError() and AddPrefix(), implement Unwrap()
This allows using errors.Is() to check if an AutoscalerError wraps
a sentinel error (e.g. cloudprovider.ErrNotImplemented) when a prefix is
added to it.
2024-11-27 12:44:59 +01:00
Yaroslava Serdiuk 5f94f2c429
Add provreqOrchestrator that handle ProvReq classes (#6627)
* Add provreqOrchestrator that handle ProvReq classes

* Review remarks

* Review remarks
2024-04-17 09:37:54 -07:00
Daniel Kłobuszewski accf58f36c Base parallel scale down implementation 2022-10-24 20:14:48 +02:00
Aleksandra Gacek ab2cc2fb8a Bump k/k dependencies to v1.25.0 together with go.mod go version. 2022-08-26 13:38:07 +02:00
Brett Elliott 013fa19be3 Log failed scale up metric based on string of AutoscalerErrorType. 2021-03-23 15:37:04 +01:00
Brett Elliott 4cddaed2f2 Support for reporting authorization errors during scale up 2021-03-17 14:56:03 +01:00
Jayant Jain a632d33b9a added a new NodeGroupDoesNotExistError in errors.go
This is to support no nodepool exists conditions, which crashes Autoscaler
2020-10-01 12:21:08 +00:00
Lukasz Piatkowski 856e58d599 rely on listers instead of watch api 2019-04-16 13:47:54 +02:00
Pengfei Ni 74045053f5 Fix potential panic 2018-07-23 11:13:09 +08:00
AdamDang 5c4693f95f
Typo fix "typ"->"type"
line 31 and line 82: "the typ of AutoscalerError"
here shoule be type
2018-03-13 19:50:19 +08:00
Edward Tsang 4104a91991 more spelling fixes 2017-11-02 14:21:36 -07:00
Marcin Wielgus 69c77791a2 Fix error types 2017-06-12 21:26:50 +02:00
Maciej Pytel 7f5c7ed3a2 Used typed errors in scale up code
Updated some of the functions called by scale up
to return new errors as required.
2017-05-18 14:09:15 +02:00
Maciej Pytel f716a7e496 Add typed errors; add errors_total metric
To keep reasonable commit size only top-level files use
new errors. Will add them in other files in next commits.
2017-05-18 14:09:15 +02:00