Commit Graph

106947 Commits

Author SHA1 Message Date
Stephen Heywood
522b9b3de2 Create e2e replace pod template test
The test validates the following endpoint
- replaceCoreV1NamespacedPodTemplate
2022-02-25 15:28:15 +13:00
Kubernetes Prow Robot
3213a92802
Merge pull request #108341 from zshihang/gce
bump kube-addon-manager image version to 9.1.6
2022-02-24 16:19:55 -08:00
Kubernetes Prow Robot
d3ece70f0b
Merge pull request #108269 from kerthcet/refactor/rename-schedulercache-to-cache
refactor: rename SchedulerCache to Cache in Scheduler
2022-02-24 14:46:13 -08:00
Shihang Zhang
5ee418b4c7 bump kube-addon-manager image version to 9.1.6 2022-02-24 14:13:01 -08:00
Carlos Eduardo Arango Gutierrez
bbb8ef1d10
Fix typo in pkg/kubelet/pluginmanager/cache/actual_state_of_world
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2022-02-24 16:20:24 -05:00
Walter Fender
e5b0392f12 Bump konnectivity-client to v0.0.28
Bump konnectivity network proxy to v0.0.28.
Includes a fix to ensure the KAS calls Close() on the egress connection.
2022-02-24 12:35:54 -08:00
Kubernetes Prow Robot
673fa1d9d4
Merge pull request #108313 from zshihang/gce
wait for default service account instead of its token
2022-02-24 11:40:31 -08:00
Shihang Zhang
cf794d0a93 wait for default service account instead of its token 2022-02-24 10:35:44 -08:00
Heba Elayoty
38da5cdb35
Fix kube-scheduler KEP link 2022-02-24 08:49:55 -08:00
Kubernetes Prow Robot
06e107081e
Merge pull request #104732 from mengjiao-liu/remove-flag-experimental-check-node-capabilities-before-mount
kubelet: Remove the deprecated flag `--experimental-check-node-capabilities-before-mount`
2022-02-24 07:56:30 -08:00
sanposhiho
4c3a1000c7 fix by gofmt 2022-02-25 00:23:01 +09:00
Kubernetes Prow Robot
b181e174f2
Merge pull request #108328 from dgrisonnet/fix-go-collector
bump client_golang to v1.12.1
2022-02-24 06:10:31 -08:00
Shubham Kuchhal
54fb058cfb Added timestamp and verbosity value to V(5). 2022-02-24 18:33:00 +05:30
Roman Bednar
507c63c610 azure_file: try to get secret namespace from ClaimRef
This is the actual fix - attempt to obtain a namespace from ClaimRef.
Or fail if namespace could not be found instead of using "default".
2022-02-24 10:59:51 +01:00
Roman Bednar
a2b0eddc44 azure_file: add namespace tests for InTree to CSI conversion
When translating InTree pv to CSI pv we use default secret namespace
when it's not found in the InTree pv.

Using the default is not ideal for several reasons:
1) it can result in failed pod creation after users migrate to cluster
with CSI enabled because the existing intree pvs might not have the
namespace defined. In that case the "default" is used and mount fails
because secret could not be found.

2) falling back to "default" namespace can result in referencing a
secret from different namespace which is a security risk

However, there is another object we can use to determine correct
namespace which presence can be safely assumed - ClaimRef. Mounting a
volume is done only through a PVC which is bound. Binding adds ClaimRef
to PV and finally the volume gets mounted which is where the
translation code is used.
2022-02-24 10:59:51 +01:00
Damien Grisonnet
7f3f8d25c8 bump client_golang to v1.12.1
Bump client_golang to v1.12.1 to fix a concurrency issue in the Go
Collector that was introduced by the library in v1.12.0.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2022-02-24 10:25:12 +01:00
Kubernetes Prow Robot
7588a82bdb
Merge pull request #108293 from chendave/upstream_gopath
e2e: Embed DNS related maninfests into codebase
2022-02-24 01:19:33 -08:00
Sergey Kanzhelev
3f9df1423f two files not being used any longer 2022-02-24 08:03:31 +00:00
chenyw1990
e26df3594c do not return err when PodSandbox not exist
Co-authored-by: pacoxu <paco.xu@daocloud.io>
2022-02-24 14:58:39 +08:00
hyschumi
d8536122b9 endpointslice: remove unnecessary HandleCrash 2022-02-24 09:59:09 +08:00
uhari03
016b96ca38
Issue 105353: Add messages+details to audit logs response (#105415) 2022-02-23 17:53:33 -08:00
kerthcet
eafbaad9f7 refactor: rename SchedulerCache to Cache in Scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 09:47:21 +08:00
kerthcet
09623be0b1 refactor: rename schedulerCache to cacheImpl in internal cache
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 09:42:51 +08:00
W. Trevor King
587f4f04cc kubectl drain: Generic "declare a controller" message
When it initially landed in kubernetes/kubernetes@c6e9ad066e (Initial
node drain implementation for #3885, 2015-08-30,
kubernetes/kubernetes#16698), the drain logic looked in a created-by
annotation for recognized kinds [1], so listing the set of recognized
kinds was a clear approach.

Sometime later, the source moved into ownerReferences, but the
hard-coded set of recognized controller kinds remained.

When kubernetes/kubernetes@2f1108451f (Remove hard-coded
pod-controller check, 2017-12-05, kubernetes/kubernetes#56864) removed
the hard-coded set of recognized controller kinds, it should have also
updated these messages to remove stale references to the previous
hard-coded values.  This commit catches the message strings up with
that commit.

[1]: c6e9ad066e (diff-211259b8a8ec42f105264c10897dad48029badb538684e60e43eaead68c3d219R216)
2022-02-23 16:34:16 -08:00
Kubernetes Prow Robot
2fcdbd098c
Merge pull request #107993 from deads2k/simplify
prevent enabling beta by default for new api groups
2022-02-23 16:03:35 -08:00
Kubernetes Prow Robot
77eb1a03df
Merge pull request #94637 from liggitt/namespace-before-admission
set/validate object namespace before admission
2022-02-23 14:35:58 -08:00
Shihang Zhang
fb6c727fde no auto-generation of secret-based service account token 2022-02-23 14:17:30 -08:00
Kubernetes Prow Robot
08c31088c1
Merge pull request #106858 from cmssczy/add_RegisterWithTaints_validation_test
add kubelet config validation test for RegisterWithTaints
2022-02-23 12:51:58 -08:00
Kubernetes Prow Robot
08d32851fe
Merge pull request #108262 from tkashem/retry-unit-test
client-go: add unit test to verify order of calls with retry
2022-02-23 11:46:08 -08:00
Kubernetes Prow Robot
6d1c9a98ef
Merge pull request #108104 from pbetkier/autoscaling-e2e-resource-consumer-fix
e2e: Fix ResourceConsumer unstable request interval
2022-02-23 11:45:57 -08:00
David Eads
1afcc31b1b add integration test to prevent new beta APIs from being enabled by default 2022-02-23 13:51:43 -05:00
David Eads
af99d192cf prevent enabling beta by default for new api groups 2022-02-23 13:51:43 -05:00
David Eads
a59b92e8c0 reduce API surface area of whether a resource is enabled 2022-02-23 13:36:33 -05:00
Kubernetes Prow Robot
25ccc48c60
Merge pull request #106911 from aojea/client_go_metrics
Update client-go latency metrics bucket
2022-02-23 10:20:18 -08:00
Kubernetes Prow Robot
b435061c80
Merge pull request #108186 from p0lyn0mial/watch-list-reduce-allocations-in-watch-server
reduce the number of allocations in the WatchServer during objects serialisation
2022-02-23 09:04:19 -08:00
sanposhiho
1080c2d717 Make scheduler_perf stable 2022-02-24 01:29:38 +09:00
Jordan Liggitt
e731ccd650 Update storage/handler unit tests to set / expect namespace in object 2022-02-23 11:12:28 -05:00
Jordan Liggitt
92422a7305 set/validate object namespace before admission 2022-02-23 11:12:27 -05:00
Aditi Sharma
2e7b7832f8 Detect CNI installtion in local-up-cluster.sh
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2022-02-23 21:35:58 +05:30
Kubernetes Prow Robot
343125cc6c
Merge pull request #107997 from d-honeybadger/fix-tracking-cronjob-owned-jobs
Fix cronjob status reconciliation when job template labels change
2022-02-23 07:14:18 -08:00
Antonio Ojea
bebf5a608f client-go: remove no longer used finalURLTemplate
The restclient metrics were updated to track only the host field of the
url, the finalURLTemplate is not longer needed, its only goal was to
replace name and namespace in the path to avoid cardinality.
2022-02-23 15:36:05 +01:00
Antonio Ojea
227deba223 update buckets for client-go latency metrics
Current request latency metrics have the following buckets:

0.001, 0.002, 0.004, 0.008, 0.016, 0.032, 0.064, 0.128, 0.256, 0.512

That has two much granularity for http requests, and it gets capped to
aprox half seconds, loosing visibility on the requests that may be more
interested, the ones that take more than 1 second.

Using the same used for etcd request latency, with the same upper and
lower limits than the ones used in the apiserver, but only adding one
bucket more.

[]float64{0.005, 0.025, 0.1, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0, 15.0, 30.0, 60.0},
2022-02-23 15:35:50 +01:00
d-honeybadger
fb094dc44e cronjob_controllerv2: do not filter jobs to be reconciled by labels 2022-02-23 09:10:33 -05:00
Lukasz Szaszkiewicz
9dd77ac017 introduces a new streaming encoder that utilizes a memory allocator during objects serialization 2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
034868e6af fixes TestNestedEncodeError test 2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
52de201b0f introduces a memory allocator
The primary use case for the allocator is to reduce cost of object serialization.
Initially it will be used by the protobuf serializer.
This approach puts less load on GC and leads to less fragmented memory in general.
2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
32ca2b881d provides EncodeWithAllocator method for the protobuf encoder
The new method allows for providing a memory allocator for efficient memory usage during object serialization.
2022-02-23 14:38:23 +01:00
kerthcet
4439fc3590 feat: graduate DefaultPodTopologySpread to GA
Co-authored-by: drfish <drfish.me@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-23 19:45:27 +08:00
Lukasz Szaszkiewicz
81cf096751 codec: exposes EncodeWithAllocator method
The new method is implemented by the protobuf serializer and helps to reduce memory footprint during object serialization.
2022-02-23 11:06:25 +01:00
Lukasz Szaszkiewicz
f3d5f42aa4 codec interfaces 2022-02-23 11:06:25 +01:00