Commit Graph

116826 Commits

Author SHA1 Message Date
Marek Siarkowicz
406899360b Refactor shouldDelegateList/shouldListFromStorage to better explain decisions 2023-06-21 16:06:57 +02:00
Kubernetes Prow Robot
4862614c1c
Merge pull request #118794 from serathius/refactor-watch-context
Refactor WithRequireLeader to make it part of the etcd store
2023-06-21 06:21:41 -07:00
Marek Siarkowicz
e4cf103c9b Test all cases for LIST request cache bypass 2023-06-21 15:15:07 +02:00
Marek Siarkowicz
a9af2de8fd Refactor WithRequireLeader to make it part of the etcd store 2023-06-21 14:23:30 +02:00
Roman Bednar
1bd3f072fa stop ignoring storage class selection errors
The GetDefaultClass() was fixed in scope of this issue:
https://github.com/kubernetes/kubernetes/issues/110514

Before this change assignDefaultStorageClass() was ignoring errors from
this function since it could mean there are multiple defaults - assign
could safely continue and do nothing.

This is no longer true because we always choose one from multiple
defaults - any errors returned from GetDefaultClass() are real errors
and should not be ignored.
2023-06-21 13:09:05 +02:00
Lubomir I. Ivanov
edb59e9bc7 kubeadm: move token defaulting and related constants to token package
Move the defaulting of the BootstrapToken type inside the
bootstraptoken/v1 package. This prevents an error where
codegen complains that a defaulter for the type exists in both
the kubeadm v1beta3 and v1beta4.

Adapt kubeadm code to use the defaulter function and constants
that were moved to bootstraptoken/v1.

NOTE: technically this is a breaking change for direct users of
v1beta3/SetDefaults_BootstrapToken().
2023-06-21 13:34:21 +03:00
guangli.bao
fdd992da86 upgrade image addon-manager/kube-addon-manager:v9.1.6 to v9.1.7
Signed-off-by: guangli.bao <guangli.bao@daocloud.io>
2023-06-21 11:09:15 +08:00
Kubernetes Prow Robot
9e0569f2ed
Merge pull request #118779 from dims/add-a-connection-backoff-to-talk-to-cri-impls
Add a connection backoff to talk to CRI impls
2023-06-20 20:04:21 -07:00
Paco Xu
420fbd11e4 ignore Histogram for prometheus client v1.16.0 2023-06-21 09:38:05 +08:00
Davanum Srinivas
c98e72841b
Add a connection backoff to talk to CRI impls
We can add backoff for connection like we do in cadvisor:
https://github.com/google/cadvisor/blob/master/container/containerd/client.go#L76-L80

for now, don't tune it, just use the default:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-06-20 21:32:50 -04:00
Kubernetes Prow Robot
5a1c62b9d1
Merge pull request #118763 from Shubham82/remove_AdvancedAuditing_featuregate
Remove AdvancedAuditing feature gate.
2023-06-20 17:48:32 -07:00
Kubernetes Prow Robot
bc8e312857
Merge pull request #117903 from sourcelliu/dynamic
feature(DynamicResources): return Skip in PreFilter
2023-06-20 17:48:20 -07:00
Kubernetes Prow Robot
9d90b76bd6
Merge pull request #118552 from humblec/rbd-deprecation
deprecate RBD plugin from available in-tree drivers
2023-06-20 16:50:23 -07:00
Harshal Patil
409bc8ccc0 deps: Bump to cAdvisor v0.47.2
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2023-06-20 15:08:29 -04:00
Han Kang
f72c2c2b7d add process start to prometheus handler opts 2023-06-20 10:13:31 -07:00
Kubernetes Release Robot
bbc7ca94a4 CHANGELOG: Update directory for v1.28.0-alpha.3 release 2023-06-20 17:03:14 +00:00
Kubernetes Prow Robot
2651e70f57
Merge pull request #118759 from mimowo/dont-apibackoff-on-pod-failures
Do not bump API requests backoff in the Job controller due to pod failures
2023-06-20 08:52:21 -07:00
Kubernetes Prow Robot
2d60430a16
Merge pull request #118730 from my-git9/ut-features
[UT] increase coverage ut for kubeadm/app/features
2023-06-20 07:54:36 -07:00
Kubernetes Prow Robot
9ed8cfcc2c
Merge pull request #118721 from bart0sh/PR120-DRA-E2E-Node-add-NodeAlphaFeature
DRA Node E2E: add NodeAlphaFeature to fix CI
2023-06-20 07:54:23 -07:00
Stephen Kitt
ab75e48494
storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
Kubernetes Prow Robot
2e93c65eff
Merge pull request #114849 from padlar/handle-terminating-namespaces
handle event errors caused due to terminating namespaces
2023-06-20 04:52:21 -07:00
Lubomir I. Ivanov
eecac05871 kubeadm: add v1beta4 API boilerplate
Create v1beta4 by copying v1beta3.
2023-06-20 14:33:30 +03:00
Michal Wozniak
784a309b91 Do not error in Job controller sync when there are pod failures 2023-06-20 11:31:24 +02:00
shubham82
f2e3157df0 Remove AdvancedAuditing feature gate. 2023-06-20 14:21:10 +05:30
Paco Xu
bbae445d17 fix metrics test with 1.16.0 prometheus client 2023-06-20 16:46:31 +08:00
xin.li
180c2332bf [UT] increase coverage ut for kubeadm/app/features
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-06-20 12:57:22 +08:00
Kubernetes Prow Robot
c0147ff528
Merge pull request #118747 from dims/do-not-prepull-images-for-e2e-node-jobs
Do not prepull images for e2e-node jobs
2023-06-19 19:58:21 -07:00
Davanum Srinivas
564c236ce2
Do NOT prepull images for e2e-node jobs
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-06-19 22:01:12 -04:00
Kubernetes Prow Robot
a19373f028
Merge pull request #118745 from alculquicondor/test-race-expectations
Fix race in logging expectations
2023-06-19 11:24:22 -07:00
Aldo Culquicondor
c84b5b0a99
Cleanup unnecessary renames of variable t
Change-Id: Idf4d0ed7e09cf14323567381de158041236680b0
2023-06-19 13:27:17 -04:00
Aldo Culquicondor
c9b01dd977
Fix race in logging expectations
Change-Id: I27da7cae741935da6f0815639a54bfd597a2a6c6
2023-06-19 13:26:39 -04:00
Kubernetes Prow Robot
162034db85
Merge pull request #118744 from mimowo/job-it-tests-small-default-backoff
Set small DefaultJobPodFailureBackOff in Job integration tests
2023-06-19 08:50:22 -07:00
Michal Wozniak
3dd1bac4dc Set small DefaultJobPodFailureBackOff in Job integration tests 2023-06-19 16:52:38 +02:00
Kubernetes Prow Robot
d2332eb5fd
Merge pull request #118743 from mimowo/use-generics-in-job-tests
Replace deprecated sets.Int with sets.Set[int] in Job integration tests
2023-06-19 07:04:22 -07:00
Filip Křepinský
85d9339ef8 add KCM names into CCM cmd allowed import-restrictions 2023-06-19 15:01:01 +02:00
Filip Křepinský
3b55f20bd3 update vendor 2023-06-19 15:01:01 +02:00
Filip Křepinský
4e6a3fb9c1 deduplicate cloud provider controller names
and move the to cloud-provider module
2023-06-19 15:01:01 +02:00
Filip Křepinský
e5f5a9bfdb use controller names for CLI FlagSets to show the names in help 2023-06-19 15:01:01 +02:00
Filip Křepinský
cd56748ec5 reference controllers correctly from CLI help 2023-06-19 15:01:01 +02:00
Filip Křepinský
9fd8f568fe introduce CCM controller aliases and unify controller names 2023-06-19 15:01:01 +02:00
Filip Křepinský
94792d85de simplify TestValidateControllersOptions test 2023-06-19 15:00:59 +02:00
Filip Křepinský
9730951136 introduce KCM controller aliases and unify controller names 2023-06-19 14:59:33 +02:00
Filip Křepinský
ba1755132e support controller name aliases in GenericControllerManagerConfigurationOptions 2023-06-19 14:59:33 +02:00
Kubernetes Prow Robot
988094878e
Merge pull request #108075 from ialidzhikov/cleanup/pointer-duration
Make use of `k8s.io/utils/pointer.Duration`
2023-06-19 05:22:21 -07:00
Michal Wozniak
2596245f5a Replace deprecated sets.Int with sets.Set[int] in Job integration tests 2023-06-19 13:55:54 +02:00
Kubernetes Prow Robot
bfd833baf3
Merge pull request #115982 from peaaceChoi/master
Update toplogy keyset initialization
2023-06-19 04:04:21 -07:00
Kubernetes Prow Robot
26f7f8e980
Merge pull request #118733 from neolit123/1.28-etcd-version-fixup
kubeadm: drop older etcd versions from kubeadm support
2023-06-18 23:32:21 -07:00
Kubernetes Prow Robot
0004ce8684
Merge pull request #118689 from bzsuni/clean
[dependencies] update prometheus/client_golang v1.14.0 to v1.16.0
2023-06-18 14:46:20 -07:00
ialidzhikov
958c8fb695 Make use of k8s.io/utils/pointer.Duration
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2023-06-18 21:46:26 +03:00
Lubomir I. Ivanov
ede2ec22b6 kubeadm: drop older etcd versions from kubeadm support
- drop versions < 1.22 in the etcd map
- use 3.5.9-0 for >= 1.22 versions
- make the minimum version for external etcd 3.4.13-4 and max 3.5.9-0
- update images_test to not rely on a pinned etcd version in tests

note: the image 3.4.18-0 was never released in registry.k8s.io!
2023-06-18 15:38:53 +03:00