Commit Graph

14 Commits

Author SHA1 Message Date
Karol 51faa0e32f
Merge 7b9a707f5f into a9292351c3 2025-09-18 04:45:44 -07:00
Kubernetes Prow Robot 827ae32352
Merge pull request #8057 from MenD32/fix/cooldown-reset-on-pod-redeploy
Fix: cooldown reset on pod restart
2025-09-17 06:24:15 -07:00
MenD32 4f179bb7e8 feat: added flag to set deletion candidate taint TTL
Signed-off-by: MenD32 <amit.mendelevitch@gmail.com>
2025-09-12 17:03:43 +03:00
Norbert Cyran 5618f9a7c2 Force delete nodes with errors
DeleteNodes checks if the node group is below
its min size. If it is and a scale up fails,
CA is unable to clean up the instances
with errors, which causes CA ending up in
an error loop. Using ForceDeleteNodes instead,
so the min size won't be validated when
removing failed instances.
2025-08-04 20:02:56 +02:00
Kubernetes Prow Robot 31caf5b0bf
Merge pull request #8183 from MenD32/feat/cordon-node-before-terminate-by-default
feat: cordon node before terminate by default
2025-06-25 01:52:29 -07:00
Kuba Tużnik 9e38ce69aa Fix parsing --drain-priority-config
The --drain-priority-config flag was only parsed if isFlagPassed()
returned true for it. However, isFlagPassed() would actually silently
never work. The implementation relied on walking the flags parsed by
the standard Go "flag" pkg. This seems like it would work since CA
defines its flags using the standard "flag" pkg. However, the flags
are then actually parsed and processed by the "github.com/spf13/pflag"
pkg, so isFlagPassed() could never see them.

This commit replaces removes isFlagPassed() and replaces the calls
with a pkg-provided pflag.CommandLine.Changed(). Unit tests are added
to verify that the flag is correctly parsed after this change.
2025-06-10 16:54:43 +02:00
MenD32 741b24e8e9 feat: cordon node before terminate by default
Signed-off-by: MenD32 <amit.mendelevitch@gmail.com>
2025-05-29 13:59:07 +03:00
Karol Wychowaniec 7b9a707f5f Change default for frequent-loops-enabled flag 2025-04-10 09:18:27 +00:00
Omran 696af986ed
Add time based drainability rule for non-pdb-assigned system pods 2025-03-24 12:47:16 +00:00
Yahia Badr 5268053d1e
Update default value for scaleDownDelayAfterDelete (#7957)
* Update default value for scaleDownDelayAfterDelete

Setting defaut value for scaleDownDelayAfterDelete to be scanInterval
instead of 0.

* Revert the change and fix the flag description
2025-03-20 07:04:32 -07:00
Yahia Naguib 241ad7af1e
update address description 2025-03-10 14:25:44 +00:00
Yahia Naguib 738d7dd16d
Migrating flags off main.go to a separate package 2025-03-07 21:11:30 +00:00
Yahia Naguib 57519980c4
Migrating flags off main.go to a separate package 2025-03-07 21:11:29 +00:00
Yahia Naguib 3e9d11b732
Migrating flags off main.go to a separate package 2025-03-07 21:11:27 +00:00