Commit Graph

6651 Commits

Author SHA1 Message Date
Julian Tölle 2f5ea34f86
docs: fix invalid flag name 2023-03-30 17:16:08 +02:00
songzheng 0d167b4e05
Add Volcengine cloud provider support 2023-03-30 19:04:02 +08:00
Kubernetes Prow Robot 568f695f17
Merge pull request #5635 from jayantjain93/fix-os-distribution
[GCE] default os_distribution to default if extraction from kube-env …
2023-03-29 07:51:48 -07:00
Jayant Jain 0c29fddfa9 [GCE] default os_distribution to default if extraction from kube-env is unknown 2023-03-29 11:27:26 +00:00
Kubernetes Prow Robot e29dff136f
Merge pull request #5627 from kisieland/nit-fix
Remove Factory interface since it is not used.
2023-03-28 17:09:24 -07:00
Daniel Gutowski 3c414b8e1d Couple post-refactor clean-ups:
* Remove Factory interface since it is not used
* Remove mentions of wrapper from comments
* change the 'w' to 'o' in methods of "ScaleUpOrchestrator" structore
* Add "NewSkippedReasons" constructor
2023-03-28 03:46:40 -07:00
Manish Satwani ea9ff4d0eb refactor as per feedback, added test case for Flex 2023-03-27 10:52:16 -07:00
Kubernetes Prow Robot a8d322942d
Merge pull request #5623 from kgolab/master
Fix the setup for allow containers to fail (they should be OOM-killed)
2023-03-27 10:30:28 -07:00
Kubernetes Prow Robot 27cab2e30a
Merge pull request #5550 from DataDog/lt-overrides-and-instancetyperequirements
AWS: only look for InstanceRequirements when needed
2023-03-27 07:28:28 -07:00
Karol Golab 4c4ff67d61 Fix the setup for allow containers to fail (they should be OOM-killed) 2023-03-27 15:47:17 +02:00
Kubernetes Prow Robot 28a1abf601
Merge pull request #5558 from ionos-cloud/add-vpa-to-chart
chart: Add option to install VPA
2023-03-27 06:26:30 -07:00
Kubernetes Prow Robot 52f6c67596
Merge pull request #5621 from kgolab/master
Make the "OOMing pods under VPA" test more robust.
2023-03-27 03:49:55 -07:00
Karol Golab 20420986a4 Make the "OOMing pods under VPA" test more robust. 2023-03-27 11:52:28 +02:00
Kubernetes Prow Robot 39e4d59b69
Merge pull request #5495 from mwielgus/controller-impl
Balancer controller implementation
2023-03-27 01:35:57 -07:00
Kubernetes Prow Robot dcf8f822f5
Merge pull request #5551 from askoriy/memory-volumes-evictable
Consider pods with emptydir volume in memory be evictable
2023-03-24 08:14:32 -07:00
Marcin Wielgus 0f51c06352 Balancer controller impl 2023-03-24 13:46:42 +01:00
Kubernetes Prow Robot d91bee9e4e
Merge pull request #5613 from hezhizhen/chore
Fix typo & replace deprecated functions & replace literals with constants
2023-03-24 05:32:33 -07:00
Zhizhen He f953f5c8fa
Fix typo & replace deprecated functions & replace literals with constants 2023-03-24 18:07:52 +08:00
Kubernetes Prow Robot b8ba2334e4
Merge pull request #5507 from vadasambar/feature/5387/allow-scale-down-with-custom-controller-pods-2
feat: check only controller ref to decide if a pod is replicated
2023-03-24 02:56:31 -07:00
Kubernetes Prow Robot 44771ef3f8
Merge pull request #5609 from Shubham82/add-link-mirror_pod
Improvement: Added the Link for Mirror pods.
2023-03-23 09:56:33 -07:00
shubham82 1ea7fb0ce5 link DaemonSet and Mirror Pods to k8s docs. 2023-03-23 13:34:07 +09:00
Kubernetes Prow Robot 543fb03975
Merge pull request #5610 from jayantjain93/fallback-machine-family
GCE: Fallback f1 and g1 machine families to n1
2023-03-22 06:06:36 -07:00
Jayant Jain 9f8916d3a5 Fallback f1 and g1 machine families to n1 2023-03-22 12:15:04 +00:00
vadasambar ff6fe5833d feat: check only controller ref to decide if a pod is replicated
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
(cherry picked from commit 144a64a402)

fix: set `replicated` to true if controller ref is set to `true`
- forgot to add this in the last commit

Signed-off-by: vadasambar <surajrbanakar@gmail.com>
(cherry picked from commit f8f458295d)

fix: remove `checkReferences`
- not needed anymore
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

(cherry picked from commit 5df6e31f8b)

test(drain): add test for custom controller pod
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

feat: add flag to allow scale down on custom controller pods
- set to `false` by default
- `false` will be set to `true` by default in the future
- right now, we want to ensure backwards compatibility and make the feature available if the flag is explicitly set to `true`
- TODO: this code might need some unit tests. Look into adding unit tests.
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

fix: remove `at` symbol in prefix of `vadasambar`
- to keep it consistent with previous such mentions in the code
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

test(utils): run all drain tests twice
- once for  `allowScaleDownOnCustomControllerOwnedPods=false`
- and once for `allowScaleDownOnCustomControllerOwnedPods=true`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs(utils): add description for `testOpts` struct
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs: update FAQ with info about `allow-scale-down-on-custom-controller-owned-pods` flag
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename `allow-scale-down-on-custom-controller-owned-pods` -> `skip-nodes-with-custom-controller-pods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename `allowScaleDownOnCustomControllerOwnedPods` -> `skipNodesWithCustomControllerPods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

test(utils/drain): fix failing tests
- refactor code to add cusom controller pod test
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: fix long code comments
- clean-up print statements
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: move `expectFatal` right above where it is used
- makes the code easier to read
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: fix code comment wording
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: address PR comments
- abstract legacy code to check for replicated pods into a separate function so that it's easier to remove in the future
- fix param info in the FAQ.md
- simplify tests and remove the global variable used in the tests
- rename `--skip-nodes-with-custom-controller-pods` -> `--scale-down-nodes-with-custom-controller-pods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename flag `--scale-down-nodes-with-custom-controller-pods` -> `--skip-nodes-with-custom-controller-pods`
- refactor tests
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs: update flag info
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

fix: forgot to change flag name on a line in the code
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: use `ControllerRef()` directly instead of `controllerRef`
- we don't need an extra variable
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: create tests consolidated test cases
- from looping over and tweaking shared test cases
- so that we don't have to duplicate shared test cases
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: append test flag to shared test description
- so that the failed test is easy to identify
- shallow copy tests and add comments so that others do the same
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
2023-03-22 10:51:07 +05:30
shubham82 b849ddf30e Improvement: Added the Link for Mirror pods. 2023-03-22 12:51:31 +09:00
Kubernetes Prow Robot 241643dc05
Merge pull request #5597 from kisieland/scale-up-changes-v2
Put ScaleUp logic behind an interface
2023-03-21 08:38:12 -07:00
Kubernetes Prow Robot b31b006170
Merge pull request #5553 from mboersma/capi-err-checks
[cluster-api] Handle ignored errors
2023-03-21 08:19:08 -07:00
Daniel Gutowski 5b6c50e1c6 Apply code reivew remarks:
* Rename scaleup.Manager to scaleup.Orchestrator
* Remove factory and add Initialize function
* Rename the wrpapper package to orchestrator
* Rename NewOrchestrator func to just New
2023-03-20 10:16:53 -07:00
Kubernetes Prow Robot 137bcf1f48
Merge pull request #5582 from hetznercloud/fix-version
fix(ca/hetzner): specify application name & version
2023-03-20 07:31:19 -07:00
Kubernetes Prow Robot 785444a229
Merge pull request #5603 from gandhipr/prachigandhi/cloud-based-uri-skuClient
baseURI for skuClient based on cloud
2023-03-17 16:31:15 -07:00
Prachi Gandhi 49dca4df03 baseURI for skuClient based on cloud 2023-03-17 10:36:05 -07:00
Kubernetes Prow Robot 57bd2bca97
Merge pull request #5600 from voelzmo/fix/controller-gen-download-version
Fix controller-gen version in automatic download
2023-03-16 04:03:17 -07:00
Kubernetes Prow Robot 01972d2f33
Merge pull request #5586 from XavierDuthil/ovhcloud/add-support-for-nodepool-templating
ovhcloud: Add support for nodepool templating
2023-03-16 03:51:15 -07:00
Kubernetes Prow Robot 2c264272a8
Merge pull request #5583 from XavierDuthil/ovhcloud/fallback-to-canadian-api-on-500
ovhcloud: For any call to api.ovh.com returning a 500 error, retry call on ca.api.ovh.com
2023-03-16 03:49:16 -07:00
Kubernetes Prow Robot 606ca3b12b
Merge pull request #5584 from XavierDuthil/ovhcloud/fix-multiple-scale-down
ovhcloud: Fix deletion of multiple nodes at the same time
2023-03-16 03:47:16 -07:00
Kubernetes Prow Robot 205eeca118
Merge pull request #5585 from XavierDuthil/ovhcloud/fix-crash-concurrent-map-access
ovhcloud: Fix panic on concurrent map read/write
2023-03-16 03:45:17 -07:00
Kubernetes Prow Robot 3ac07e7ce5
Merge pull request #5593 from zendesk/grosser/doc
docs: fix faq around expendable-pods-priority-cutoff
2023-03-16 03:31:17 -07:00
Kubernetes Prow Robot 7bb1f0fc64
Merge pull request #5589 from MaciekPytel/patch_release_schedule
Introduce a regular patch release schedule for CA
2023-03-16 03:27:18 -07:00
Manish Satwani c418175c7d Adding 'enableVmssFlex' feature flag. 2023-03-15 12:18:16 -07:00
Daniel Gutowski 9cd44fdcf2 ScaleUp wrapper tests refactor
* Add field names to struct literals
* Slice iteration/population standardized
* Add boilerplate and fix comment lint errors
2023-03-15 07:10:17 -07:00
Marco Voelz 7fee123bf6 Fix controller-gen version in automatic download 2023-03-15 14:22:42 +01:00
Daniel Gutowski 4805251cce ScaleUpManager refactoring
* Make the structures public, as well as some helper functions
* manager.go to scaleup.go file rename
* Minor code simplifications
* Minor comment fixes/style consolidations
2023-03-15 04:59:19 -07:00
Daniel Gutowski 3d796deca8 ScaleUpManager refactors
* Introduced ExecuteScaleUp function, which runs chosen expansion options.
* Lowered intendation of ScaleUp function, by reverting bestOption check.
* Unified error and Autoscaling error variable names to 'err' and 'aErr'.
2023-03-14 03:22:09 -07:00
Daniel Gutowski 88cdd7ab4e ScaleUp logic refactors
* Simplify the ScaleUp* functions parameter list
* Introduce the ScaleUpManagerFactory to allow greater expandability
* Simplify helper functions in scale up wrapper
* Make the SkippedReasons public and move those to a dedicated file
2023-03-14 03:22:05 -07:00
Daniel Gutowski 675ca31c36 Add ScaleUpManager interface
* Add ScaleUpManager interface, which is copy of existing stand-alone functions
* Add a wrapper which contains the current scale up logic code
2023-03-14 03:22:00 -07:00
Daniel Gutowski 2be8f8ed93 Create core/scaleup package.
* Move resource manager to a dedicated package
* Move pod equivalence groups to dedicated package
2023-03-14 03:21:55 -07:00
Kubernetes Prow Robot 1931ea654b
Merge pull request #5557 from kisieland/gce-autopilot-client
Simplify the GCE client FetchMigInstances function.
2023-03-14 03:04:17 -07:00
Michael Grosser acdeb92a15
docs: fix faq around expendable-pods-priority-cutoff 2023-03-13 17:19:17 -07:00
Manish Satwani 61f2700fc4 Modified test case and added test case for Flex 2023-03-13 10:18:47 -07:00
Daniel Gutowski ee08e5bffe Update the FetchMigInstances GCE call.
This will result in call not failing due to the malformed
instance url.

Change-Id: I46cbaabbb6e2adabe32abe12b46d22429a414aa3
2023-03-13 05:25:28 -07:00