Commit Graph

9345 Commits

Author SHA1 Message Date
Kubernetes Prow Robot 0ff374134f
Merge pull request #8239 from sbueringer/pr-update-docs
Remove redundant warning in the autoscaler Cluster API documentation
2025-06-12 12:36:56 -07:00
Kubernetes Prow Robot 31eb0a137d
Merge pull request #8181 from MenD32/fix/topology-spread-binpacking
fix: binpacking simulator scale up optimization on pods with topology…
2025-06-12 09:36:57 -07:00
Stefan Bueringer 6c12c60942
Remove redundant warning 2025-06-12 10:08:39 +02:00
Kubernetes Prow Robot 8014ae253d
Merge pull request #8236 from BigDarkClown/update-1.34
Update deps to use k8s 1.34.0-alpha.0
2025-06-11 08:22:56 -07:00
Bartłomiej Wróblewski efdd034d91 Update deps to use k8s 1.34.0-alpha.0 2025-06-11 15:13:28 +00:00
Kubernetes Prow Robot 8e7d62b26e
Merge pull request #8109 from abdelrahman882/dra-node-readiness
Handle node readiness for DRA after a scale-up
2025-06-11 07:40:56 -07:00
Kubernetes Prow Robot 5bc430e9a8
Merge pull request #8235 from mtrqq/dra-delta-snapshot
[DRA] Enable DeltaSnapshotStore to work when DRA is enabled
2025-06-11 05:04:56 -07:00
Omran b07e1e4c70
Handle node readiness for DRA after a scale-up 2025-06-11 08:54:53 +00:00
Maksym Fuhol 61328095ae Enable DeltaSnapshotStore to work when DRA is enabled 2025-06-11 08:29:53 +00:00
MenD32 0002157b3a nit: when scheduling fails on topology constraints, skip the last node that failed scheduling
Signed-off-by: MenD32 <amit.mendelevitch@gmail.com>
2025-06-11 09:38:49 +03:00
Kubernetes Prow Robot 134d636520
Merge pull request #8090 from mtrqq/dra-shapshot-patch
Patches based implementation for DRA snapshot.
2025-06-10 16:52:55 -07:00
Jack Francis a880a2bca3
Merge pull request #8207 from kubernetes/dependabot/docker/vertical-pod-autoscaler/pkg/updater/golang-1.24.4
Bump golang from 1.24.3 to 1.24.4 in /vertical-pod-autoscaler/pkg/updater
2025-06-10 12:09:31 -07:00
Jack Francis 4a989c0268
Merge pull request #8206 from kubernetes/dependabot/docker/vertical-pod-autoscaler/pkg/recommender/golang-1.24.4
Bump golang from 1.24.3 to 1.24.4 in /vertical-pod-autoscaler/pkg/recommender
2025-06-10 12:08:40 -07:00
Kubernetes Prow Robot 5ae532f340
Merge pull request #8148 from mohammaddehnavi/patch-1
bug: Fix the "VolumeAttachment" issue on the AWS providers example in the new version
2025-06-10 11:54:56 -07:00
Maksym Fuhol 98f86a71e6 Refactor PatchSet to be contained in a separate package for reusability. 2025-06-10 18:40:54 +00:00
Kubernetes Prow Robot 189e1397e9
Merge pull request #8204 from voelzmo/enh/improve-admission-controller-logging
include pod namespace when logging updates
2025-06-10 11:06:55 -07:00
Jack Francis 76f2bf8ae3
Merge pull request #8208 from kubernetes/dependabot/docker/vertical-pod-autoscaler/pkg/admission-controller/golang-1.24.4
Bump golang from 1.24.3 to 1.24.4 in /vertical-pod-autoscaler/pkg/admission-controller
2025-06-10 10:57:57 -07:00
Jack Francis 39487100ce
Merge pull request #8217 from elmiko/capi-readme-annotations
update cluster api provider readme
2025-06-10 10:18:30 -07:00
Jack Francis 67da65c813
Merge pull request #8219 from towca/jtuznik/drain-fix
Fix parsing --drain-priority-config
2025-06-10 10:11:26 -07:00
Kubernetes Prow Robot a187bc14d6
Merge pull request #8213 from jackfrancis/azure-agent-pool-ut
azure: fix azure_agent_pool UT
2025-06-10 09:22:25 -07:00
Jack Francis 79114057db azure: fix azure_agent_pool UT
Signed-off-by: Jack Francis <jackfrancis@gmail.com>
2025-06-10 08:55:51 -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
elmiko 9987e76e91 update cluster api provider readme
this change adds some notes about how the scale from zero annotations
will interact with information already present on cluster api resources.
2025-06-10 09:56:54 -04:00
Maksym Fuhol f03a67ed81 Migrate DraSnapshot off PodOwnsClaim/ClaimOwningPod to DRA API IsForPod 2025-06-09 15:45:13 +00:00
Maksym Fuhol 0912f9b4fb Add tests for Patch and PatchSet objects 2025-06-09 15:35:20 +00:00
Maksym Fuhol eb48666180 Patches based implementation for DRA snapshot.
Instead of exposing DeepCloning API - dynamicresources.Snapshot now exposes Fork/Commit/Revert methods mimicking operations in ClusterSnapshot. Now instead of storing full-scale copies of DRA snapshot we are only storing a single object with patches list stored inside, which allows very effective Clone/Fork/Revert operations while sacrificing some performance and memory allocation while doing fetch requests and inplace objects modifications (ResourceClaims).
2025-06-09 15:35:19 +00:00
Maksym Fuhol 35029fed7a Add PredicateSnapshot benchmark for scheduling with DRA objects. 2025-06-09 15:32:37 +00:00
dependabot[bot] 8a975ee130
Bump golang in /vertical-pod-autoscaler/pkg/admission-controller
Bumps golang from 1.24.3 to 1.24.4.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 18:54:44 +00:00
dependabot[bot] 836f0a078c
Bump golang in /vertical-pod-autoscaler/pkg/updater
Bumps golang from 1.24.3 to 1.24.4.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 18:39:05 +00:00
dependabot[bot] 919665f93d
Bump golang in /vertical-pod-autoscaler/pkg/recommender
Bumps golang from 1.24.3 to 1.24.4.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 18:26:17 +00:00
Marco Voelz 18b96f2bc5 include pod namespace when logging updates 2025-06-06 14:44:08 +02:00
Kubernetes Prow Robot 3fdf196403
Merge pull request #8171 from maximrub/fix/bug-8170-alibaba-rrsa-old-envvar-support
fix bug 8170 to support old env var
2025-06-06 03:58:39 -07:00
Kubernetes Prow Robot 9220470d9f
Merge pull request #8188 from towca/jtuznik/tni-fix
CA: stop mutating the result of .TemplateNodeInfo() in SanitizedTemplateNodeInfoFromNodeGroup
2025-06-04 09:20:38 -07:00
Kubernetes Prow Robot 606aef22cb
Merge pull request #7852 from omerap12/migrate-ClaimOwningPod
migrate ClaimOwningPod to use upstream IsForPod
2025-06-04 06:24:38 -07:00
Kuba Tużnik 2f6c19a171 CA: stop mutating the result of .TemplateNodeInfo() in SanitizedTemplateNodeInfoFromNodeGroup
SanitizedTemplateNodeInfoFromNodeGroup() calls .TemplateNodeInfo(),
adds deprecated labels to the result, then sanitizes it - which includes
deep-copying.

This commit moves adding the deprecated labels after the sanitization
process, directly to the deep-copied result.

If .TemplateNodeInfo() caches its result internally, and is called
from a CloudProvider-specific goroutine at the same time as
SanitizedTemplateNodeInfoFromNodeGroup(), CA panics because of a
concurrent map read/write. This change removes the race condition.
2025-06-04 14:46:16 +02:00
Kubernetes Prow Robot 46bf4e4ace
Merge pull request #8202 from adrianmoisey/revert-8191-enable-flakey-tests
Revert "Enable TestUnchangedCAReloader tests"
2025-06-04 03:42:38 -07:00
Adrian Moisey 782af09511
Revert "Enable TestUnchangedCAReloader tests" 2025-06-04 12:36:29 +02:00
Kubernetes Prow Robot 8b9624d7f1
Merge pull request #8185 from kubernetes/x13n-patch-11
Remove stale TODO
2025-06-04 01:30:38 -07:00
Thalia Wang 70f79316f6
Add VMs implementation to master (#8078) 2025-06-03 14:40:39 -07:00
Omer Aplatony bcf3866fb8 migrate ClaimOwningPod to use upstream IsForPod
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2025-06-03 15:45:20 +00:00
Kubernetes Prow Robot daa15703a6
Merge pull request #8178 from elmiko/cleanup-capi-readme
cleanup capi readme note sections
2025-06-03 08:36:41 -07:00
Kubernetes Prow Robot 110cb78422
Merge pull request #8197 from hetznercloud/deps-update-hcloud-go
deps(hetzner): update vendored hcloud-go to v2.21.1
2025-06-03 03:14:43 -07:00
lukasmetzner 2a9103ea4c refactor(hetzner): fix deprecated methods 2025-06-03 11:54:01 +02:00
lukasmetzner 53f7463ee6 deps(hetzner): update hcloud-go to v2.21.1 2025-06-03 11:52:48 +02:00
Kubernetes Prow Robot 347db2d102
Merge pull request #8194 from laoj2/master
Update VPA default version to 1.4.1 (main branch)
2025-06-02 13:18:41 -07:00
Luiz Oliveira fc8599b820 Update VPA default version to 1.4.1 (main branch)
Signed-off-by: Luiz Oliveira <luizaoj@google.com>
2025-06-02 14:41:04 -04:00
Kubernetes Prow Robot 8ae1ad7343
Merge pull request #8192 from adrianmoisey/fix-github-action-caching
Fix the setup-go Github action caching
2025-06-02 08:14:38 -07:00
Adrian Moisey 4c154a7da8
Bump to Go 1.24 2025-06-02 16:25:44 +02:00
Adrian Moisey e1cb498992
Fix the setup-go Github action caching
I noticed that the Github Action caching wasn't working, so I added this
setting to fix it.

https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs

If the cache is populated the tests now take 5 minutes to run (down from
18m).

The one downside is that caching will also cache the test results (along
with the dependencies) so this change adds a `--count=1` to the `go
test` commands to ensure that the go test doesn't use a cached result.
2025-06-02 09:59:01 +02:00
Mohammad Torkamandehnavi abe3e86e90
chore: 🔧 Update image version to v1.32.1 2025-06-01 14:47:57 +01:00