Commit Graph

103171 Commits

Author SHA1 Message Date
Nick Turner
a5b47f7dd0 Allow custom client names to be used for cloud controllers
* This allows a controller to use cloud provider managed RBAC
  when --use-service-account-credentials is set.
* Create ControllerInitFuncConstructor to pass to init funcs to avoid
  future function signature growth.
* Add comments for context around legacy naming of node controllers.
* Add example for setting client names from cloud controller manager.
2021-08-24 00:51:24 +00:00
Kubernetes Prow Robot
f6331c74b6
Merge pull request #103557 from jiahuif/feature/controller-manager/interface
common interface for controllers
2021-08-23 15:27:25 -07:00
Chok Yip Lau
9a13bae510 Added support for multiple --from-env flags 2021-08-23 17:18:00 -04:00
Kubernetes Prow Robot
72b327c685
Merge pull request #104488 from seans3/cmd-headers-cancel-request
Adds CancelRequest function to CommandHeadersRoundTripper
2021-08-23 14:17:25 -07:00
Kir Kolyshkin
c06a851042 pkg/kubelet/cm: use SkipFreezeOnSet
This is a knob added by runc 1.0.2 specifically for kubernetes,
which tells runc/libcontainer/cgroups/systemd v1 manager to not
freeze the cgroup in Set().

We set this knob here because this code is only used for pods
(rather than containers) management, and in this place we create or
update the pod cgroup with no device limits set, so we can skip the
freeze.

If this knob is not set, libcontainer's cgroup v1 manager tries to
figure out whether the freeze is needed or not, but it's a somewhat
expensive check to perform, thus the knob is a shortcut.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-08-23 13:41:51 -07:00
Kir Kolyshkin
9c0f9b204f vendor: bump runc to 1.0.2
For the complete release notes, see
 - https://github.com/opencontainers/runc/releases/tag/v1.0.2

In particular, this fixes the check cgroup v1 systemd manager check
if a container needs to be frozen before Set(), and adds a knob to
skip the check/freeze entirely (to be used by the next commit).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-08-23 13:05:23 -07:00
Kubernetes Prow Robot
4a6792dd10
Merge pull request #104465 from tkashem/httplogger-structured
apiserver: add key/value pair to httplog
2021-08-23 11:48:34 -07:00
Kubernetes Prow Robot
358e509863
Merge pull request #103545 from thockin/rest-create-deepcopy
REST: Document mutable inputs on Create() and fix tests
2021-08-23 11:48:22 -07:00
Indeed
6616655b7b create common interface for controllers. 2021-08-23 10:44:01 -07:00
Kubernetes Prow Robot
e8263c2325
Merge pull request #104460 from verult/livenessprobe-2.4.0
Bump livenessprobe to 2.4.0 in e2e hostpath driver spec
2021-08-23 10:38:12 -07:00
Kubernetes Prow Robot
aeec553fd3
Merge pull request #104369 from mauriciopoppe/regional-pd-storage-class-setup
Fix storage class setup in regional_pd.go
2021-08-23 10:38:00 -07:00
Kubernetes Prow Robot
a799768352
Merge pull request #104187 from j2gg0s/remove-unnecessary-map-in-converter
apimachinery: remove unused ignoredConversions map in converter.
2021-08-23 08:40:00 -07:00
Jordan Liggitt
47859b7781 Ensure serviceaccount admission produces v1 Pod matching defaults after round-trip 2021-08-23 11:32:10 -04:00
Kubernetes Prow Robot
f840bd719d
Merge pull request #104509 from mysunshine92/job-0823
Fix typo PodTrackingWithFinalizers to JobTrackingWithFinalizers
2021-08-23 07:30:00 -07:00
dntosas
cd795fa2eb
[scheduler] Remove deprecated volumeSchedulingLatency metric
As part of https://github.com/kubernetes/kubernetes/pull/100720 we
backported fix on existing releases and in this commit we completely
remove the deprecated metric from master branch.

Signed-off-by: dntosas <ntosas@gmail.com>
2021-08-23 15:18:16 +03:00
Kubernetes Prow Robot
b9565beef0
Merge pull request #104345 from MikeSpreitzer/test-width
Fix extra latency and add tests for that and non-unit width
2021-08-23 02:32:00 -07:00
wangyamei
c128411815 fix typo: Modify PodTrackingWithFinalizers to JobTrackingWithFinalizers 2021-08-23 15:38:30 +08:00
sanposhiho
0252865601 Fix: set SilenceErrors and SilenceUsage not to change error message 2021-08-23 13:29:44 +09:00
Tim Hockin
6dfae64d9b REST: Document mutable inputs on Create()
If one doesn't DeepCopy() on the way into Create, we can end up writing
into the original object.  This is by design, and should not be a
problem EXCEPT for tests.  If a test compares the input to this function
with the result, but the input was mutated in-situ, it may hide errors,
resulting in tests that pass, but shouldn't.
2021-08-22 12:04:23 -07:00
Tim Hockin
42c7e62180 Fix registry tests to look at result objects 2021-08-22 11:59:33 -07:00
Tim Hockin
75dea6b8bc Service REST: Use DeepCopy() on Create() and fix tests 2021-08-22 11:59:33 -07:00
sanposhiho
a06d6138b5 Fix: not change the error messages 2021-08-22 21:20:32 +09:00
sanposhiho
b8ae016ee6 Fix: return error instead of os.Exit when something goes wrong 2021-08-22 19:20:47 +09:00
Nicolas Mitchell
340555476a add backticks to comments containing < or > 2021-08-21 10:59:50 -07:00
Kubernetes Prow Robot
3a26b864f4
Merge pull request #104410 from skyguard1/fix_node_names_util
Fix using variables in the loop in vsphere_util
2021-08-20 19:11:58 -07:00
Kubernetes Prow Robot
499a1f99a9
Merge pull request #104489 from liggitt/signal-buffer
Fix buffered signal channel go vet error
2021-08-20 14:53:58 -07:00
Jordan Liggitt
322bc82777 Fix buffered signal channel go vet error 2021-08-20 16:47:56 -04:00
Sean Sullivan
183498a410 Adds CancelRequest function to CommandHeadersRoundTripper 2021-08-20 13:34:02 -07:00
Kubernetes Prow Robot
7652353523
Merge pull request #104435 from liggitt/convertible-test
Fix slice type comparison bug
2021-08-20 12:38:47 -07:00
Kubernetes Prow Robot
c8a91dc3a8
Merge pull request #104478 from aojea/lb_timeouts
bump e2e loadbalancer timeouts to 15m
2021-08-20 11:19:43 -07:00
Kubernetes Prow Robot
341d312066
Merge pull request #97350 from FabianKramm/master
kubectl proxy: append context host path to request path
2021-08-20 11:19:31 -07:00
Kubernetes Prow Robot
f4e1558af0
Merge pull request #104451 from claudiubelu/test-images/windows-server-2022
test images: Adds Windows Server 2022 to the BASEIMAGEs
2021-08-20 10:09:37 -07:00
Kubernetes Prow Robot
40f05cec28
Merge pull request #104373 from astraw99/fix_typo_rate_limiter
Fix typo of rate limiter
2021-08-20 10:09:25 -07:00
Abu Kashem
bdedd2a4c1
apiserver: add key/value pair to httplog 2021-08-20 11:10:32 -04:00
Kubernetes Prow Robot
b0bc8adbc2
Merge pull request #104368 from aojea/ruleguard
golang 1.17 fails to parse IPs with leading zeros
2021-08-20 07:59:24 -07:00
Kubernetes Prow Robot
64e422dc2a
Merge pull request #104441 from jsturtevant/small-resource-requests-for-hpa
test: e2e: HPA ContainerResource - Lower requests b/c multiple containers will leave pending pods on existing test infra
2021-08-20 04:35:24 -07:00
Antonio Ojea
3a660b7294 bump e2e loadbalancer timeouts to 15m 2021-08-20 12:15:37 +02:00
Iceber Gu
597098a222 code-generator: remove bounding-dirs flag of the deepcopy-gen in the script 2021-08-20 17:17:49 +08:00
Antonio Ojea
2c73d7834a update vendor 2021-08-20 10:47:50 +02:00
Antonio Ojea
e1e4408ab3 allow k8s.io/utils/net imports 2021-08-20 10:42:10 +02:00
Antonio Ojea
0cd75e8fec run hack/update-netparse-cve.sh 2021-08-20 10:42:09 +02:00
Antonio Ojea
e9ddac5d85 rename net.ParseCIDR on messages to avoid false positives 2021-08-20 10:42:09 +02:00
Antonio Ojea
06f2d678ee update and verify netparse
Add script to verify that net.ParseIP and net.ParseCIDR are
not being used.

Add another script to automatically replace those functions
for the ones forked in k8s.io/utils/net
2021-08-20 10:42:09 +02:00
Kubernetes Prow Robot
175776d25a
Merge pull request #104270 from liggitt/1.22-compatibility-data
1.22 compatibility data
2021-08-19 20:45:24 -07:00
Kubernetes Prow Robot
df51e4e63e
Merge pull request #100720 from dntosas/scheduler-metrics-fix-buckets
[volumeScheduling/metrics] Fix buckets initialization
2021-08-19 18:47:24 -07:00
Kubernetes Prow Robot
7fcecc077d
Merge pull request #104466 from stbenjam/bump-utils
vendor: bump k8s.io/util to get fix for LRU cache
2021-08-19 17:21:24 -07:00
Stephen Benjamin
c253235152 vendor: bump k8s.io/util to get fix for LRU cache
This updates the k8s.io/util to pull in the fix for
https://github.com/kubernetes/kubernetes/issues/104452.

Commands run:

  ./hack/pin-dependency.sh k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a
  ./hack/update-vendor.sh
2021-08-19 17:12:16 -04:00
Kubernetes Prow Robot
851b4a2c9a
Merge pull request #104407 from aojea/host_network_collision
hostNetwork tests can't share the same port
2021-08-19 13:45:25 -07:00
Anago GCB
7413f44e59 Merge remote-tracking branch 'origin/master' 2021-08-19 17:43:32 +00:00
Cheng Xing
21491aa5a1 Bump livenessprobe to 2.4.0 in e2e hostpath driver spec 2021-08-19 10:33:12 -07:00