Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
0ff3741
Merge pull request #8239 from sbueringer/pr-update-docs
k8s-ci-robot Jun 12, 2025
88bedd4
Add created node group to considered node groups during scale-up
pmendelski Jun 13, 2025
187f023
Merge branch 'master' into patch-1
marcdavoli Jun 13, 2025
2bdd964
Merge pull request #8210 from marcdavoli/patch-1
k8s-ci-robot Jun 14, 2025
73badca
Update deployment.yaml to add volumeattachments permission
YanzhaoLi Jun 16, 2025
4a5b307
Merge pull request #8243 from pmendelski/fix-xonidered-node-groups
k8s-ci-robot Jun 16, 2025
08b281d
Merge pull request #8244 from YanzhaoLi/patch-1
k8s-ci-robot Jun 17, 2025
8c51ff6
Fix vpa in-place metrics
yalosev Jun 19, 2025
ee360d4
Merge pull request #8253 from yalosev/fix/vpa-in-place-metrics
k8s-ci-robot Jun 20, 2025
19b6295
do not update webhook CA when registerWebhook is disabled
vflaux Jun 18, 2025
ffd18e3
Merge pull request #8249 from vflaux/fix_8248
k8s-ci-robot Jun 20, 2025
a3fb18b
Use factory start to fill caches instead of separate informers
yalosev Jun 20, 2025
fb1dddb
Add factory start to the test
yalosev Jun 20, 2025
1332499
Error and exit on failure
yalosev Jun 23, 2025
dd40212
Merge pull request #8259 from yalosev/fix/factory-start
k8s-ci-robot Jun 23, 2025
b167235
Merge pull request #8201 from jlamillan/jlamillan/404-is-not-success
k8s-ci-robot Jun 24, 2025
c509bb2
Merge pull request #8169 from maximrub/fix/bug-8168-alibaba-cloud-end…
k8s-ci-robot Jun 24, 2025
31caf5b
Merge pull request #8183 from MenD32/feat/cordon-node-before-terminat…
k8s-ci-robot Jun 25, 2025
771b9ee
add logging for failed node balancing
elmiko Jun 25, 2025
ecb4297
Decouple Startup CPU Boost from VPA modes
laoj2 May 27, 2025
c942ff3
azure: Add volumeattachments read to ClusterRole for examples
hakman Jun 26, 2025
20a59a9
azure: Make it easier to compare examples
hakman Jun 26, 2025
af75d6e
Merge pull request #8175 from laoj2/aep-7862-fixes-to-api
k8s-ci-robot Jun 26, 2025
8e0d47c
add h4d pricing (#8205)
echyam Jun 26, 2025
77e3f57
Merge pull request #8266 from elmiko/add-more-balance-logging
k8s-ci-robot Jun 27, 2025
2814dca
Export fake pods definition to a dedicated module
krzysied Jun 27, 2025
d5c1e15
update-deps.sh
dsafdsa1 Jun 30, 2025
897989f
tmp: make apis/ a package
dsafdsa1 Jun 30, 2025
353b446
update-codegen.sh
dsafdsa1 Jun 30, 2025
4560f69
Revert "tmp: make apis/ a package"
dsafdsa1 Jun 30, 2025
5149494
Give sig-autoscaling-leads approval of the AEP directory
adrianmoisey Jun 30, 2025
7a1e49a
removing UT cases where changes in azure api may affect results, fake…
MaximilianoUribe Jun 30, 2025
4f177c9
Merge pull request #8280 from MaximilianoUribe/master
k8s-ci-robot Jun 30, 2025
5b25b56
Merge pull request #8277 from adrianmoisey/add-tech-leads-as-approver…
k8s-ci-robot Jul 1, 2025
ffe6219
Merge pull request #8203 from jklaw90/julian/golangci-lint-v2
k8s-ci-robot Jul 1, 2025
792fba7
Filterout non-existing node-groups before scale-up balancing
pmendelski Jul 3, 2025
ce81a6a
Merge pull request #8289 from pmendelski/exclude-injected-node-groups…
k8s-ci-robot Jul 3, 2025
7912e2d
Revert filter out non-existing node-groups before scale-up balancing
pmendelski Jul 3, 2025
2ae7495
ci: Add Dependabot for GitHub Actions and update action versions
ErikJiang Jul 4, 2025
ae181a2
[VPA] Add prometheus bearer auth support (#8263)
yalosev Jul 4, 2025
b44c40d
chore: bump CA Chart image to v1.33
luizm Jul 4, 2025
c93df03
Merge pull request #8275 from dsafdsa1/deps
k8s-ci-robot Jul 4, 2025
9424dee
add price info for M4 machine family
drjackild Jul 4, 2025
77cb4c8
add files
pat-s Jul 5, 2025
008a3b9
typo
pat-s Jul 5, 2025
8217888
Omit fake pod evictions
krzysied Jun 27, 2025
815da21
feat: improve external gPRC ca example
jincong8973 Jul 7, 2025
563f074
Merge pull request #8295 from luizm/chart-1.33.0
k8s-ci-robot Jul 7, 2025
65c4d6f
Merge pull request #8292 from pmendelski/revert-exclude-injected-node…
k8s-ci-robot Jul 7, 2025
b1780e6
Merge pull request #8267 from hakman/update-examples
k8s-ci-robot Jul 7, 2025
3f95268
azure: 2025-06-30 CA E2E module updates
jackfrancis Jun 30, 2025
14ce611
Merge pull request #8285 from jackfrancis/azure-e2e-go-mod-2025-06
k8s-ci-robot Jul 7, 2025
f3c58da
Merge pull request #8273 from krzysied/fake-pods
k8s-ci-robot Jul 7, 2025
8e47b51
Merge pull request #8300 from jincong8973/master
k8s-ci-robot Jul 8, 2025
4086830
Add support for additional rule in role/clusterrole
ffais May 17, 2025
40b4290
feat(recommender): add round memory bytes (#8298)
m-messiah Jul 8, 2025
055aa33
Fallback to eviction when InPlaceUpdate fail
omerap12 Jul 8, 2025
88a3b42
Merge pull request #8303 from omerap12/fallback-to-eviction
k8s-ci-robot Jul 9, 2025
cc01c87
Merge pull request #8293 from ErikJiang/action_dependabot
k8s-ci-robot Jul 9, 2025
2abd557
docs: Unify the header for a section
ialidzhikov Jul 9, 2025
8f9a24a
Merge pull request #8307 from ialidzhikov/fix/header
k8s-ci-robot Jul 9, 2025
12e6e2e
Merge pull request #8268 from hakman/compare-examples
k8s-ci-robot Jul 9, 2025
115c816
Bump golang in /vertical-pod-autoscaler/pkg/recommender
dependabot[bot] Jul 9, 2025
8d76026
Bump golang in /vertical-pod-autoscaler/pkg/updater
dependabot[bot] Jul 9, 2025
bd2ff7b
Bump golang in /vertical-pod-autoscaler/pkg/admission-controller
dependabot[bot] Jul 9, 2025
3389877
dependabot: add release-note-none label
jackfrancis Jul 9, 2025
1d421cb
Merge pull request #8312 from jackfrancis/dependabot-release-note-none
k8s-ci-robot Jul 9, 2025
2945e95
Merge pull request #8309 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Jul 10, 2025
6f0f000
Do not consider pod PreemptionPolicy while determining whether pod is…
mtrqq Jul 10, 2025
58e302c
Remove exit after scale-up is performed
BigDarkClown Jul 8, 2025
df9718c
Merge pull request #8310 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Jul 10, 2025
0ed3da3
Merge pull request #8311 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Jul 10, 2025
637d9ad
Merge pull request #8314 from mtrqq/remove-preemption-policy-expendable
k8s-ci-robot Jul 10, 2025
0fb7d53
Merge pull request #8296 from drjackild/add-m4-prices
k8s-ci-robot Jul 11, 2025
8482fd7
Merge pull request #8130 from ffais/support-additional-rbac-rule
k8s-ci-robot Jul 11, 2025
9bc4220
Merge pull request #8027 from HadrienPatte/contributing
k8s-ci-robot Jul 13, 2025
ad1866c
feat(chart): support configuring dnsConfig
sslavic May 7, 2025
c187e7f
AEP-8026: per-vpa-component-configuration (#8026)
omerap12 Jul 18, 2025
aae2a01
Switch VPA checkpoint to use a lister
adrianmoisey Jul 17, 2025
0d14eca
Merge pull request #7993 from pierreozoux/pierreozoux-patch-2
k8s-ci-robot Jul 21, 2025
f9b93ec
adding env variable EnableLabelPrediction (#8324)
MaximilianoUribe Jul 21, 2025
9a256e5
Merge pull request #8138 from aleskandro/patch-1
k8s-ci-robot Jul 21, 2025
e8941e5
add readiness and liveness for vpa admission
jklaw90 Jul 23, 2025
1fbc7a9
Handle Out of host capacity scenario in OCI nodepools
vbhargav875 Jul 11, 2025
1d5f047
Merge pull request #8315 from vbhargav875/oci-oke-handle-ooc
k8s-ci-robot Jul 25, 2025
b2df71a
Protect clusterstate.getContributiveAggregateStateKeys() from race co…
adrianmoisey Jul 13, 2025
c7f0511
Protect ObjectCounter.Add() from race condition
adrianmoisey Jul 13, 2025
5aab4b6
Protect AggregateContainerState.LastRecommendation from race condition
adrianmoisey Jul 13, 2025
b01e23d
Fix recommender's --update-worker-count output
adrianmoisey Jul 13, 2025
0d36de3
CA: add elmiko as maintainer
jackfrancis Jul 28, 2025
2eb5add
just approver
jackfrancis Jul 28, 2025
3d74804
Improve error message for unknown error in `validateTargetRef` (#8299)
RadaBDimitrova Jul 29, 2025
1938d39
updated all deployments with health check
jklaw90 Jul 29, 2025
fc3e97e
Add a test to detect race conditions with processVPAUpdate()
adrianmoisey Jul 18, 2025
017738e
Make API changes for CPU Startup boost
kamarabbas99 Jul 23, 2025
ff6e93b
Merge pull request #8346 from jklaw90/readiness-prob
k8s-ci-robot Jul 30, 2025
26d6b38
CA: add release automation validation
jackfrancis Jul 31, 2025
72bf359
Merge pull request #8388 from jackfrancis/ca-validate-make-release
k8s-ci-robot Jul 31, 2025
4bd2e67
Merge pull request #8331 from adrianmoisey/list
k8s-ci-robot Jul 31, 2025
172a22c
Merge pull request #8376 from jackfrancis/ca-maintainer-elmiko
k8s-ci-robot Jul 31, 2025
36804f1
Add update_mode label to VPA updater metrics
laoj2 Jul 31, 2025
bf12ae2
balancer & CA kwok build / govet errors
joelsmith Jul 31, 2025
c1352da
Merge pull request #8297 from pat-s/feat/imagesForArch-nodepool
k8s-ci-robot Aug 1, 2025
c7a5142
Merge pull request #8395 from laoj2/add-label-to-vpa-metric
k8s-ci-robot Aug 2, 2025
ed6fc0f
chore(autoscaler): fix typo in Autoscaler interface comment
kincoy Aug 4, 2025
1e3cede
Do not remove healthy nodes from partially failing zero-or-max-scalin…
adamoldak Jul 3, 2025
3344f06
Merge pull request #8291 from adamoldak/zero_or_max_scaling_scaleup_e…
k8s-ci-robot Aug 4, 2025
14f7925
Merge pull request #8403 from kincoy/fix-typo-autoscaler-interface-co…
k8s-ci-robot Aug 4, 2025
6e1da17
CI: make update-deps.sh macOS compatible
jackfrancis Aug 4, 2025
135e662
Merge pull request #8103 from sslavic/stevo-dns-config
k8s-ci-robot Aug 4, 2025
d6c98bc
deprecate humanized memory flag (#8400)
omerap12 Aug 4, 2025
5618f9a
Force delete nodes with errors
norbertcyran Jul 30, 2025
24ba0e7
Merge pull request #8404 from jackfrancis/ca-update-deps-improvements
k8s-ci-robot Aug 5, 2025
b058217
Update vendored kubernetes to 1.34.0-beta.0
BigDarkClown Aug 5, 2025
159afb1
Make API changes for CPU Startup boost
kamarabbas99 Jul 23, 2025
02e2afa
Fix CA's command
atwamahmoud Aug 5, 2025
2289138
Merge pull request #8407 from BigDarkClown/vendor-update
k8s-ci-robot Aug 5, 2025
1943ec9
Add a counter to the test to ensure the correct amount of jobs ran
adrianmoisey Aug 6, 2025
bdec0f8
Update comment to include thread safety
adrianmoisey Aug 6, 2025
f5ce3b4
Use thread-safe method
adrianmoisey Aug 6, 2025
f7c435e
Add mutex to cluster.emptyVPAs
adrianmoisey Aug 6, 2025
44e0f63
Switch to RWMutex
adrianmoisey Aug 6, 2025
5937907
AEP-8026: Allow oomBumpUpRatio=1 and oomMinBumpUp=0
omerap12 Aug 6, 2025
c3257e9
Fix scale to 0 for Cluster API NodePool
sbueringer Aug 7, 2025
739c6a8
Bump golang in /vertical-pod-autoscaler/pkg/recommender
dependabot[bot] Aug 7, 2025
fc4ae4a
Bump golang in /vertical-pod-autoscaler/pkg/admission-controller
dependabot[bot] Aug 7, 2025
d7721b9
Bump golang in /vertical-pod-autoscaler/pkg/updater
dependabot[bot] Aug 7, 2025
6d32a56
fix: not failing the main loop when one NodeGroup fails on TemplateNo…
comtalyst Aug 8, 2025
f4c2fde
Add process with apiGroup in capi provider
wjunott Aug 6, 2025
21ca04a
Replace capi v1alpha3 with v1beta2 in test cases
wjunott Aug 8, 2025
1ca5f44
Add detailed error messages
wjunott Aug 8, 2025
8c46590
Merge pull request #8414 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Aug 8, 2025
4dbc8f3
Merge pull request #8415 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Aug 8, 2025
c12135c
Merge pull request #8416 from kubernetes/dependabot/docker/vertical-p…
k8s-ci-robot Aug 8, 2025
ab803f0
VPA - Cleanup OWNERS
omerap12 Aug 9, 2025
7ca3bb2
deprecate UpdateMode Auto in VPA
rushmash91 Aug 10, 2025
8de8a2f
Promote In-Place to Beta
adrianmoisey Aug 9, 2025
af2bc81
Handle featuregate in test
adrianmoisey Aug 9, 2025
f99c5e1
address comments
rushmash91 Aug 10, 2025
cc1fd28
Merge pull request #8411 from omerap12/per-vpa-component-configuratio…
k8s-ci-robot Aug 11, 2025
1fe2801
Merge pull request #8425 from omerap12/clean-vpa-approvers
k8s-ci-robot Aug 11, 2025
65be976
Merge pull request #8423 from adrianmoisey/bump-in-place-to-beta
k8s-ci-robot Aug 11, 2025
126b76d
Utho autoscaler (#8398)
manojdhanda Aug 11, 2025
0ffe04d
Create a proposal for CapacityBuffers API.
jbtk May 21, 2025
4f30519
Add CoreWeave Cluster Autoscaler provider (#8332)
keedya Aug 11, 2025
0ec850d
Merge pull request #8349 from kamarabbas99/aep-changes-api
k8s-ci-robot Aug 12, 2025
612fdbb
Merge pull request #8151 from jbtk/buffersproposal
k8s-ci-robot Aug 12, 2025
9b8558e
Merge pull request #8412 from sbueringer/pr-fix-scale-to-0
k8s-ci-robot Aug 12, 2025
eac6c12
Combine in-place and regular e2e tests
adrianmoisey Aug 12, 2025
404993f
feat(utils/metrics/updater): Add a new counter metric measuring faile…
vitanovs Aug 12, 2025
1ff4b7c
feat(utils/metrics/updater/test): Test failed Pod evictions counter m…
vitanovs Aug 12, 2025
cc7a83c
feat(logic/updater): Increase failed Pods eviction counter metric whe…
vitanovs Aug 12, 2025
d9d2e0f
Merge pull request #8387 from norbertcyran/force-delete-failed-nodes
k8s-ci-robot Aug 13, 2025
d84c982
Merge pull request #8429 from adrianmoisey/combine-tests
k8s-ci-robot Aug 13, 2025
3d22e4c
update docs
rushmash91 Aug 13, 2025
13dde43
Merge pull request #8320 from adrianmoisey/fix-race
k8s-ci-robot Aug 13, 2025
172bf01
Merge pull request #8396 from joelsmith/k8smaster
k8s-ci-robot Aug 13, 2025
a7df3cf
Merge pull request #8426 from rushmash91/deprecate-auto-updatemode
k8s-ci-robot Aug 14, 2025
190f08b
Merge pull request #8430 from vitanovs/feat/vpa-updater-failed-evicti…
k8s-ci-robot Aug 14, 2025
cb0c862
fix: typo in GCE chart README code script
fabienduhamel Aug 14, 2025
6283c90
Merge pull request #8436 from fabienduhamel/readme-typo
k8s-ci-robot Aug 14, 2025
a9cb59f
Merge pull request #8410 from wjunott/consume-capi-v1beta2-from-zero
k8s-ci-robot Aug 14, 2025
94fe24f
feat(metrics/updater): Add `vpa` name and namespace labels to update …
vitanovs Aug 15, 2025
ba4a929
feat(logic/updater): add `vpa` name and namespace when emitting Pod u…
vitanovs Aug 15, 2025
2927257
feat(metrics/updater): Add `vpa` name and namespace to successful upd…
vitanovs Aug 15, 2025
be88f4f
feat(logic/updater): Add `vpa` name and namespace when emitting succe…
vitanovs Aug 15, 2025
2e528f9
Merge pull request #8445 from vitanovs/feat/vpa-updater-enrich-counte…
k8s-ci-robot Aug 17, 2025
a21cd06
Add NodeGroupScaleUpTime() to CSR
dsafdsa1 Jul 29, 2025
f0e08c6
Coreweave UpdateNodeGroup
keedya Aug 18, 2025
58ee3d4
make sure nodegroups are updates in the coreweave manager
keedya Aug 18, 2025
10513fd
update unit test and add few to cover empty np
keedya Aug 18, 2025
760edd4
correct labels for dependabot PRs to master
jackfrancis Aug 18, 2025
38ddaaa
Return empty slice to avoid "not registered" warnings
keedya Aug 18, 2025
ea6e29e
Merge pull request #8379 from dsafdsa1/csr-scaleup-time
k8s-ci-robot Aug 20, 2025
7993d64
adding support for force delete in azure
MaximilianoUribe Aug 20, 2025
79aea9b
Merge pull request #8457 from jackfrancis/dependabot-master-labels
k8s-ci-robot Aug 20, 2025
426e273
Add tests for NodeGroupScaleUpTime()
dsafdsa1 Aug 21, 2025
220d5fb
Merge branch 'kubernetes:master' into csr-scaleup-time
dsafdsa1 Aug 21, 2025
d9543b2
Merge pull request #8466 from dsafdsa1/csr-scaleup-time
k8s-ci-robot Aug 21, 2025
8e1b388
Update cluster-autoscaler/cloudprovider/azure/azure_scale_set.go
MaximilianoUribe Aug 21, 2025
b8f910f
Merge pull request #8313 from BigDarkClown/remove-scale-up-exit
k8s-ci-robot Aug 22, 2025
d88d1ab
adding ut and changing logging level
MaximilianoUribe Aug 22, 2025
6d90976
Bump VPA dependencies
adrianmoisey Aug 28, 2025
bd192f6
Bump VPA e2e dependencies
adrianmoisey Aug 28, 2025
fde4ba3
Fix struct
adrianmoisey Aug 28, 2025
47fd167
go mod tidy
adrianmoisey Aug 28, 2025
efc9a31
Bump all e2e dependencies
adrianmoisey Aug 28, 2025
f15a08a
Merge pull request #8483 from adrianmoisey/bump-vpa-deps
k8s-ci-robot Aug 28, 2025
b49298b
Switch away from github.com/golang/mock
omerap12 Aug 29, 2025
48a5974
Merge pull request #8489 from omerap12/mock-uber
k8s-ci-robot Aug 29, 2025
4c86aae
Update VPA defaults to 1.4.2 in the master branch
laoj2 Sep 3, 2025
1d3b2ed
Merge pull request #8495 from laoj2/release-vpa-1.4.2
k8s-ci-robot Sep 3, 2025
e45e630
hetzner: add node.kubernetes.io/instance-type label to template
lotheac Sep 2, 2025
f1251a1
Merge pull request #8496 from lotheac/push-ovslxuvtsvto
k8s-ci-robot Sep 4, 2025
50c3d3e
Merge pull request #8408 from atwamahmoud/master
k8s-ci-robot Sep 5, 2025
c32ce8d
Update VPA version.go to 1.6.0 for release
kamarabbas99 Sep 5, 2025
45d513d
Merge pull request #8499 from kamarabbas99/release-process
k8s-ci-robot Sep 6, 2025
b7115db
Merge pull request #8465 from MaximilianoUribe/muribefalcon/feature-a…
k8s-ci-robot Sep 8, 2025
8c43575
add prometheus auth via environment variables
devpulse94-ui Aug 30, 2025
509aa6b
Add capacity buffer CRD
abdelrahman882 Sep 9, 2025
7b9cb8c
Merge pull request #8508 from abdelrahman882/capacitybuffer
k8s-ci-robot Sep 9, 2025
5095b62
read min and max values from nodepool tags for oci autodiscovery
gvnc Aug 29, 2025
14652be
read min and max values from nodepool tags for oci autodiscovery
gvnc Sep 9, 2025
e77e29c
compare autodiscover nodepools with previous cycle and log the updates
gvnc Sep 11, 2025
4f179bb
feat: added flag to set deletion candidate taint TTL
MenD32 Sep 12, 2025
54e1faf
Merge pull request #8500 from coreweave/bugfix-update-nodegoup
k8s-ci-robot Sep 12, 2025
bf86702
Merge pull request #8491 from gvnc/oci-auto-discovery-enhancement
k8s-ci-robot Sep 12, 2025
51b44d7
Update K8S dependency to use 1.34.1
BigDarkClown Sep 12, 2025
6f0d49c
add TestConfigBuilder interface to clusterapi
elmiko Sep 14, 2025
2eb783b
move common functions from v1 to utils
phuhung273 Jul 29, 2025
e6a6817
add integration test
phuhung273 Sep 11, 2025
d5ecc68
add securityContext,resources,probe,port
phuhung273 Sep 14, 2025
fe61e26
Add Capacity Buffer controller logic
abdelrahman882 Sep 11, 2025
d260381
Update resource api to use v1, add missing DRA methods
BigDarkClown Sep 12, 2025
64a815f
Merge pull request #8521 from abdelrahman882/capacity-buffer-controller
k8s-ci-robot Sep 15, 2025
3e0578b
Replace schedulerframework.NodeInfo pointers with fwk.NodeInfo interface
BigDarkClown Sep 15, 2025
a366e62
Fix unit-tests
BigDarkClown Sep 15, 2025
ff7874d
Apply suggestions from code review
phuhung273 Sep 15, 2025
827ae32
Merge pull request #8057 from MenD32/fix/cooldown-reset-on-pod-redeploy
k8s-ci-robot Sep 17, 2025
9e81c35
Merge pull request #8539 from BigDarkClown/update-dep
k8s-ci-robot Sep 17, 2025
8e5101c
Add rapid release channel to GKE cluster creation command
laoj2 Sep 17, 2025
20f76e9
Merge pull request #8544 from laoj2/fix-release-readme
k8s-ci-robot Sep 17, 2025
cd2db00
change kwok nodegroup annotation key
drmorr0 Sep 17, 2025
a929235
Merge pull request #8545 from drmorr0/drmorr/fix-kwok-annotation-key
k8s-ci-robot Sep 18, 2025
f40ff46
deps(hetzner): update hcloud-go to v2.24.0
tloesch Sep 22, 2025
ca53831
Merge pull request #8554 from tloesch/deps-update-hcloud-go-2-24-0
k8s-ci-robot Sep 22, 2025
1311229
Merge pull request #8501 from devpulse94-ui/feat-prom-env-auth
k8s-ci-robot Sep 23, 2025
c3c339c
Merge pull request #8348 from phuhung273/vpa-recommender-namespace-test
k8s-ci-robot Sep 23, 2025
902e6ea
Merge pull request #8536 from elmiko/refactor-clusterapi-tests-1
k8s-ci-robot Sep 23, 2025
79aa75b
add TestMachineController interface to clusterapi
elmiko Sep 14, 2025
952d6e2
Merge pull request #8537 from elmiko/refactor-clusterapi-tests-2
k8s-ci-robot Sep 23, 2025
5d7044e
Update VPA default version to 1.5.0
kamarabbas99 Sep 23, 2025
af53141
Merge pull request #8569 from kamarabbas99/master
k8s-ci-robot Sep 23, 2025
4cce41f
Add buffer resource limits and implement status update
abdelrahman882 Sep 12, 2025
dd3af04
Merge pull request #8540 from abdelrahman882/capacity-buffer-ca
k8s-ci-robot Sep 25, 2025
d7b397f
Update versions to correct values
BigDarkClown Sep 25, 2025
42f767b
Deprecate ProvisioningRequest v1beta1 (#8549)
partykamdev Sep 25, 2025
77891d7
Merge pull request #8572 from BigDarkClown/update-ver
k8s-ci-robot Sep 25, 2025
38cc45b
Merge pull request #8573 from kubernetes/master
k8s-ci-robot Sep 25, 2025
ee760e6
Fix capacity buffers injector order in pod list processor
abdelrahman882 Sep 26, 2025
dd28ada
Merge pull request #8578 from BigDarkClown/ca-1.34-fix
k8s-ci-robot Sep 26, 2025
0430e22
merge upstream/cluster-autoscaler-1.34.0
maxcao13 Oct 1, 2025
05b4a9a
UPSTREAM: <carry>: configure repository for OpenShift releases
joelsmith Aug 21, 2025
09539d9
UPSTREAM: <carry>: vendor deps for OpenShift releases
joelsmith Aug 21, 2025
aad3703
UPSTREAM: <carry>: Rename FailureMessage to ErrorMessage
JoelSpeed Mar 27, 2020
bb8fe06
UPSTREAM: <carry>: Handle old Machine API specific machine delete ann…
JoelSpeed May 31, 2022
0ed08da
UPSTREAM: <carry>: Have VPA ignore phantom containers named "POD"
joelsmith Feb 13, 2023
10af767
UPSTREAM: <carry>: add machine api label and taint functionality
elmiko Feb 16, 2023
d9a5e81
UPSTREAM: <carry>: Fix unstructured taint parsing in Cluster API prov…
JoelSpeed Jan 22, 2024
09260d1
UPSTREAM: <carry>: Update to prefer upstream annotations if present
racheljpg Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ updates:
open-pull-requests-limit: 0 # setting this to 0 means only allowing security updates, see https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#open-pull-requests-limit
labels:
- "area/vertical-pod-autoscaler"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: docker
directory: "/vertical-pod-autoscaler/pkg/recommender"
schedule:
Expand All @@ -17,6 +19,8 @@ updates:
open-pull-requests-limit: 3
labels:
- "area/vertical-pod-autoscaler"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: docker
directory: "/vertical-pod-autoscaler/pkg/updater"
schedule:
Expand All @@ -27,6 +31,8 @@ updates:
open-pull-requests-limit: 3
labels:
- "area/vertical-pod-autoscaler"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: docker
directory: "/vertical-pod-autoscaler/pkg/admission-controller"
schedule:
Expand All @@ -37,9 +43,24 @@ updates:
open-pull-requests-limit: 3
labels:
- "area/vertical-pod-autoscaler"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: gomod
directory: "/addon-resizer"
schedule:
interval: daily
target-branch: "addon-resizer-release-1.8"
open-pull-requests-limit: 3
labels:
- "release-note-none"
- "area/addon-resizer"
- "ok-to-test"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
GO111MODULE: auto

- name: golangci-lint - vertical-pod-autoscaler
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
args: --timeout=30m
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/vertical-pod-autoscaler
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
- id: filter
uses: dorny/paths-filter@v2.2.0
uses: dorny/paths-filter@v2.11.1
with:
filters: |
charts:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
fi
- if: steps.list-changed.outputs.changed == 'true'
name: Create kind cluster
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@v1.12.0
- if: steps.list-changed.outputs.changed == 'true'
name: Run chart-testing (install)
run: ct install
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ We'd love to accept your patches! Before we can take them, we have to jump a cou

All changes must be code reviewed. Coding conventions and standards are explained in the official
[developer docs](https://github.com/kubernetes/community/tree/master/contributors/devel). Expect
reviewers to request that you avoid common [go style mistakes](https://github.com/golang/go/wiki/CodeReviewComments)
reviewers to request that you avoid common [go style mistakes](https://go.dev/wiki/CodeReviewComments)
in your PRs.

### Merge Approval
Expand Down
4 changes: 2 additions & 2 deletions charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.32.0
appVersion: 1.33.0
description: Scales Kubernetes worker nodes within autoscaling groups.
engine: gotpl
home: https://github.com/kubernetes/autoscaler
Expand All @@ -11,4 +11,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.46.6
version: 9.50.1
8 changes: 5 additions & 3 deletions charts/cluster-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ To use Managed Instance Group (MIG) auto-discovery, provide a YAML file setting

```console
$ helm install my-release autoscaler/cluster-autoscaler \
--set "autoscalingGroupsnamePrefix[0].name=your-ig-prefix,autoscalingGroupsnamePrefix[0].maxSize=10,autoscalingGroupsnamePrefi[0].minSize=1" \
--set "autoscalingGroupsnamePrefix[0].name=your-ig-prefix,autoscalingGroupsnamePrefix[0].maxSize=10,autoscalingGroupsnamePrefix[0].minSize=1" \
--set autoDiscovery.clusterName=<CLUSTER NAME> \
--set cloudProvider=gce
```
Expand Down Expand Up @@ -454,7 +454,7 @@ vpa:
| civoClusterID | string | `""` | Cluster ID for the Civo cluster. Required if `cloudProvider=civo` |
| civoRegion | string | `""` | Region for the Civo cluster. Required if `cloudProvider=civo` |
| cloudConfigPath | string | `""` | Configuration file for cloud provider. |
| cloudProvider | string | `"aws"` | The cloud provider where the autoscaler runs. Currently only `gce`, `aws`, `azure`, `magnum`, `clusterapi` and `civo` are supported. `aws` supported for AWS. `gce` for GCE. `azure` for Azure AKS. `magnum` for OpenStack Magnum, `clusterapi` for Cluster API. `civo` for Civo Cloud. |
| cloudProvider | string | `"aws"` | The cloud provider where the autoscaler runs. Currently only `gce`, `aws`, `azure`, `magnum`, `clusterapi`, `civo` and `coreweave` are supported. `aws` supported for AWS. `gce` for GCE. `azure` for Azure AKS. `magnum` for OpenStack Magnum, `clusterapi` for Cluster API. `civo` for Civo Cloud. `coreweave` for CoreWeave. |
| clusterAPICloudConfigPath | string | `"/etc/kubernetes/mgmt-kubeconfig"` | Path to kubeconfig for connecting to Cluster API Management Cluster, only used if `clusterAPIMode=kubeconfig-kubeconfig or incluster-kubeconfig` |
| clusterAPIConfigMapsNamespace | string | `""` | Namespace on the workload cluster to store Leader election and status configmaps |
| clusterAPIKubeconfigSecret | string | `""` | Secret containing kubeconfig for connecting to Cluster API managed workloadcluster Required if `cloudProvider=clusterapi` and `clusterAPIMode=kubeconfig-kubeconfig,kubeconfig-incluster or incluster-kubeconfig` |
Expand All @@ -463,6 +463,7 @@ vpa:
| containerSecurityContext | object | `{}` | [Security context for container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| customArgs | list | `[]` | Additional custom container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. List of arguments as strings. |
| deployment.annotations | object | `{}` | Annotations to add to the Deployment object. |
| dnsConfig | object | `{}` | [Pod's DNS Config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config) |
| dnsPolicy | string | `"ClusterFirst"` | Defaults to `ClusterFirst`. Valid values are: `ClusterFirstWithHostNet`, `ClusterFirst`, `Default` or `None`. If autoscaler does not depend on cluster DNS, recommended to set this to `Default`. |
| envFromConfigMap | string | `""` | ConfigMap name to use as envFrom. |
| envFromSecret | string | `""` | Secret name to use as envFrom. |
Expand All @@ -480,7 +481,7 @@ vpa:
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.pullSecrets | list | `[]` | Image pull secrets |
| image.repository | string | `"registry.k8s.io/autoscaling/cluster-autoscaler"` | Image repository |
| image.tag | string | `"v1.32.0"` | Image tag |
| image.tag | string | `"v1.33.0"` | Image tag |
| initContainers | list | `[]` | Any additional init containers. |
| kubeTargetVersionOverride | string | `""` | Allow overriding the `.Capabilities.KubeVersion.GitVersion` check. Useful for `helm template` commands. |
| kwokConfigMapName | string | `"kwok-provider-config"` | configmap for configuring kwok provider |
Expand All @@ -498,6 +499,7 @@ vpa:
| prometheusRule.interval | string | `nil` | How often rules in the group are evaluated (falls back to `global.evaluation_interval` if not set). |
| prometheusRule.namespace | string | `"monitoring"` | Namespace which Prometheus is running in. |
| prometheusRule.rules | list | `[]` | Rules spec template (see https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#rule). |
| rbac.additionalRules | list | `[]` | Additional rules for role/clusterrole |
| rbac.clusterScoped | bool | `true` | if set to false will only provision RBAC to alter resources in the current namespace. Most useful for Cluster-API |
| rbac.create | bool | `true` | If `true`, create and use RBAC resources. |
| rbac.pspEnabled | bool | `false` | If `true`, creates and uses RBAC resources required in the cluster with [Pod Security Policies](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) enabled. Must be used with `rbac.create` set to `true`. |
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ To use Managed Instance Group (MIG) auto-discovery, provide a YAML file setting

```console
$ helm install my-release autoscaler/cluster-autoscaler \
--set "autoscalingGroupsnamePrefix[0].name=your-ig-prefix,autoscalingGroupsnamePrefix[0].maxSize=10,autoscalingGroupsnamePrefi[0].minSize=1" \
--set "autoscalingGroupsnamePrefix[0].name=your-ig-prefix,autoscalingGroupsnamePrefix[0].maxSize=10,autoscalingGroupsnamePrefix[0].minSize=1" \
--set autoDiscovery.clusterName=<CLUSTER NAME> \
--set cloudProvider=gce
```
Expand Down
14 changes: 14 additions & 0 deletions charts/cluster-autoscaler/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ metadata:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.fullname" . }}
rules:
{{- if (eq .Values.cloudProvider "coreweave") }}
- apiGroups:
- "compute.coreweave.com"
resources:
- nodepools
verbs:
- get
- list
- patch
- update
{{- end }}
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -173,4 +184,7 @@ rules:
- patch
- update
{{- end }}
{{- if .Values.rbac.additionalRules }}
{{ toYaml .Values.rbac.additionalRules | indent 2 }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: "{{ .Values.dnsPolicy }}"
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cluster-autoscaler/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@ rules:
verbs:
- get
- update
{{- if .Values.rbac.additionalRules }}
{{ toYaml .Values.rbac.additionalRules | indent 2}}
{{- end }}
{{- end }}
{{- end -}}
28 changes: 26 additions & 2 deletions charts/cluster-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,11 @@ civoRegion: ""
cloudConfigPath: ""

# cloudProvider -- The cloud provider where the autoscaler runs.
# Currently only `gce`, `aws`, `azure`, `magnum`, `clusterapi` and `civo` are supported.
# Currently only `gce`, `aws`, `azure`, `magnum`, `clusterapi`, `civo` and `coreweave` are supported.
# `aws` supported for AWS. `gce` for GCE. `azure` for Azure AKS.
# `magnum` for OpenStack Magnum, `clusterapi` for Cluster API.
# `civo` for Civo Cloud.
# `coreweave` for CoreWeave.
cloudProvider: aws

# clusterAPICloudConfigPath -- Path to kubeconfig for connecting to Cluster API Management Cluster, only used if `clusterAPIMode=kubeconfig-kubeconfig or incluster-kubeconfig`
Expand Down Expand Up @@ -170,6 +171,18 @@ deployment:
# deployment.annotations -- Annotations to add to the Deployment object.
annotations: {}

# dnsConfig -- [Pod's DNS Config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config)
dnsConfig: {}
# nameservers:
# - 1.2.3.4
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0

# dnsPolicy -- Defaults to `ClusterFirst`. Valid values are:
# `ClusterFirstWithHostNet`, `ClusterFirst`, `Default` or `None`.
# If autoscaler does not depend on cluster DNS, recommended to set this to `Default`.
Expand Down Expand Up @@ -285,7 +298,7 @@ image:
# image.repository -- Image repository
repository: registry.k8s.io/autoscaling/cluster-autoscaler
# image.tag -- Image tag
tag: v1.32.0
tag: v1.33.0
# image.pullPolicy -- Image pull policy
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
Expand Down Expand Up @@ -366,6 +379,17 @@ rbac:
name: ""
# rbac.serviceAccount.automountServiceAccountToken -- Automount API credentials for a Service Account.
automountServiceAccountToken: true
# rbac.additionalRules -- Additional rules for role/clusterrole
additionalRules: []
# - apiGroups:
# - infrastructure.cluster.x-k8s.io
# resources:
# - kubemarkmachinetemplates
# verbs:
# - get
# - list
# - watch


# replicaCount -- Desired number of pods
replicaCount: 1
Expand Down
2 changes: 1 addition & 1 deletion cluster-autoscaler/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ The following startup parameters are supported for cluster autoscaler:
| `check-capacity-provisioning-request-batch-timebox` | Maximum time to process a batch of provisioning requests. | 10s |
| `check-capacity-provisioning-request-max-batch-size` | Maximum number of provisioning requests to process in a single batch. | 10 |
| `cloud-config` | The path to the cloud provider configuration file. Empty string for no configuration file. | |
| `cloud-provider` | Cloud provider type. Available values: [aws,azure,gce,alicloud,cherryservers,cloudstack,baiducloud,magnum,digitalocean,exoscale,externalgrpc,huaweicloud,hetzner,oci,ovhcloud,clusterapi,ionoscloud,kamatera,kwok,linode,bizflycloud,brightbox,equinixmetal,vultr,tencentcloud,civo,scaleway,rancher,volcengine] | "gce" |
| `cloud-provider` | Cloud provider type. Available values: [aws,azure,gce,alicloud,cherryservers,cloudstack,baiducloud,magnum,digitalocean,exoscale,externalgrpc,huaweicloud,hetzner,oci,ovhcloud,clusterapi,ionoscloud,kamatera,kwok,linode,bizflycloud,brightbox,equinixmetal,vultr,tencentcloud,civo,scaleway,rancher,volcengine,utho] | "gce" |
| `cloud-provider-gce-l7lb-src-cidrs` | CIDRs opened in GCE firewall for L7 LB traffic proxy & health checks | 130.211.0.0/22,35.191.0.0/16 |
| `cloud-provider-gce-lb-src-cidrs` | CIDRs opened in GCE firewall for L4 LB traffic proxy & health checks | 130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16 |
| `cluster-name` | Autoscaled cluster name, if available | |
Expand Down
6 changes: 5 additions & 1 deletion cluster-autoscaler/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ALL_ARCH = amd64 arm64 s390x
all: $(addprefix build-arch-,$(ALL_ARCH))

# TODO: #8127 - Use default analyzers set by `go test` to include `printf` analyzer.
# Default analyzers that go test runs according to https://github.com/golang/go/blob/52624e533fe52329da5ba6ebb9c37712048168e0/src/cmd/go/internal/test/test.go#L649
# This doesn't include the `printf` analyzer until cluster-autoscaler libraries are updated.
GO_TEST_DEFAULT_ANALYZERS?=atomic,bool,buildtags,directive,errorsas,ifaceassert,nilfunc,slog,stringintconv,tests
TAG?=dev
FLAGS=
LDFLAGS?=-s
Expand Down Expand Up @@ -129,7 +133,7 @@ container-arch-%: build-in-docker-arch-% make-image-arch-%
@echo "Full in-docker image ${TAG}${FOR_PROVIDER}-$* completed"

test-in-docker: clean docker-builder
docker run ${RM_FLAG} -v `pwd`:/cluster-autoscaler/:Z autoscaling-builder:latest bash -c 'cd /cluster-autoscaler && go test -race ./... ${TAGS_FLAG}'
docker run ${RM_FLAG} -v `pwd`:/cluster-autoscaler/:Z autoscaling-builder:latest bash -c 'cd /cluster-autoscaler && go test -race ./... -vet="${GO_TEST_DEFAULT_ANALYZERS}" ${TAGS_FLAG}'

.PHONY: all build test-unit clean format execute-release dev-release docker-builder build-in-docker release generate push-image push-manifest

Expand Down
4 changes: 4 additions & 0 deletions cluster-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ You should also take a look at the notes and "gotchas" for your specific cloud p
* [Civo](./cloudprovider/civo/README.md)
* [CloudStack](./cloudprovider/cloudstack/README.md)
* [ClusterAPI](./cloudprovider/clusterapi/README.md)
* [CoreWeave](./cloudprovider/coreweave/README.md)
* [DigitalOcean](./cloudprovider/digitalocean/README.md)
* [Exoscale](./cloudprovider/exoscale/README.md)
* [Equinix Metal](cloudprovider/equinixmetal/README.md#notes)
Expand All @@ -40,6 +41,7 @@ You should also take a look at the notes and "gotchas" for your specific cloud p
* [Scaleway](./cloudprovider/scaleway/README.md)
* [TencentCloud](./cloudprovider/tencentcloud/README.md)
* [Vultr](./cloudprovider/vultr/README.md)
* [Utho](./cloudprovider/utho/README.md)

# Releases

Expand All @@ -49,6 +51,7 @@ Starting from Kubernetes 1.12, versioning scheme was changed to match Kubernetes

| Kubernetes Version | CA Version | Chart Version |
|--------------------|--------------------------|---------------|
| 1.33.x | 1.33.x |9.47.0+|
| 1.32.x | 1.32.x |9.45.0+|
| 1.31.x | 1.31.x |9.38.0+|
| 1.30.x | 1.30.x |9.37.0+|
Expand Down Expand Up @@ -224,3 +227,4 @@ Supported cloud providers:
* Scaleway https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/scaleway/README.md
* TencentCloud https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/tencentcloud/README.md
* Vultr https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/vultr/README.md
* Utho https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/utho/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright 2025 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// +k8s:deepcopy-gen=package
// +groupName=autoscaling.x-k8s.io
// +k8s:openapi-gen=true
// +k8s:protobuf-gen=package
// +k8s:prerelease-lifecycle-gen=true
// +kubebuilder:object:generate=true

package v1alpha1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
Copyright 2025 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)

// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: "autoscaling.x-k8s.io", Version: "v1alpha1"}

// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}

var (
// SchemeBuilder points to a list of functions added to Scheme.
SchemeBuilder runtime.SchemeBuilder
localSchemeBuilder = &SchemeBuilder
// AddToScheme applies all the stored functions to the scheme.
AddToScheme = localSchemeBuilder.AddToScheme
)

func init() {
// We only register manually written functions here. The registration of the
// generated functions takes place in the generated files. The separation
// makes the code compile even when the generated files are missing.
localSchemeBuilder.Register(addKnownTypes)
}

// Adds the list of known types to api.Scheme.
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&CapacityBuffer{},
&CapacityBufferList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}
Loading