Commit Graph

104186 Commits

Author SHA1 Message Date
Patrick Ohly
963d3c122d resource: support using Quantity as command line value
The Quantity type itself cannot be used because the Set method has the wrong
signature. Embedding Quantity inside a new QuantityValue type makes it possible
to inherit most of the methods while overriding the Set method.
2021-10-08 09:05:08 +02:00
Kubernetes Prow Robot
dd650bd41f
Merge pull request #105527 from rphillips/fixes/filter_terminated_pods
kubelet: set terminated podWorker status for terminated pods
2021-10-07 22:19:51 -07:00
Ryan Phillips
3982fcae64 go fmt 2021-10-07 20:13:43 -05:00
Mike Spreitzer
f2c46c8f9d Calculate the work in each request just once 2021-10-07 17:51:04 -07:00
Sahil Vazirani
3988405c8d
GA TTLAfterFinish 2021-10-07 16:58:50 -07:00
Elana Hashman
c771698de3 Add e2e test to verify kubelet restart behaviour
Succeeded pods should not be counted as running on restart.
2021-10-07 18:30:17 -05:00
Mike Spreitzer
10326282f9 Relax TestDifferentWidths
Make the margin a little wider because flakiness was reported.
2021-10-07 16:09:53 -07:00
Kubernetes Prow Robot
1123a7041e
Merge pull request #105532 from ialidzhikov/1.22-cve
Add CVE 2021-25741 info to 1.22 Release Notes
2021-10-07 15:31:32 -07:00
Kubernetes Prow Robot
956da16a8d
Merge pull request #105344 from jonyhy96/add-benchmark-test
add benchmark test for replaceRegistryInImageURLWithList
2021-10-07 14:21:32 -07:00
Ryan Phillips
0166d446b9 kubelet: set terminated podWorker status for terminated pods 2021-10-07 16:18:59 -05:00
Francesco Romani
d15bff2839 e2e: node: expose the running flag
Each e2e test knows it wants to restart a running kubelet or a
non-running kubelet. The vast majority of times, we want to
restart a running kubelet (e.g. to change config or to check
some properties hold across kubelet crashes/restarts), but sometimes
we stop the kubelet, do some actions and only then restart.

To accomodate both use cases, we just expose the `running` boolean
flag to the e2e tests.

Having the `restartKubelet` explicitly restarting a running kubelet
helps us to trobuleshoot e2e failures on which the kubelet
was supposed to be running, while it was not; attempting a restart
in such cases only murkied the waters further, making the
troubleshooting and the eventual fix harder.

In the happy path, no expected change in behaviour.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-07 22:15:28 +02:00
Francesco Romani
e878c20ac7 e2e: node: improve error logging
In the `restartKubelet` helper, we use `exec.Command`, whose
return value is the output as the command, but as `[]byte`.
The way we logged the output of the command was as value, making
the output, meant to be human readable, unnecessarily hard to read.

We fix this annoying behaviour converting the output to string before
to log it out, making pretty obvious to understand the outcome of
the command.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-07 22:13:49 +02:00
Kubernetes Prow Robot
d7f74ca58c
Merge pull request #104468 from thockin/master
Use github forms for issue templates
2021-10-07 13:03:33 -07:00
Kubernetes Prow Robot
0894dfa204
Merge pull request #105539 from pohly/log-registry
component-base/logs: refactor registry
2021-10-07 11:49:44 -07:00
Kubernetes Prow Robot
ee2ac08907
Merge pull request #105243 from tkashem/apf-seats
apf: introduce final seats
2021-10-07 11:49:32 -07:00
Kubernetes Prow Robot
9b45983d3c
Merge pull request #104251 from ravisantoshgudimetla/scheduling-v1beta3
Scheduling v1beta3
2021-10-07 10:47:32 -07:00
Wei Huang
b7d90ca991
sched: adjust events to register for VolumeBinding plugin 2021-10-07 08:51:04 -07:00
Patrick Ohly
844662e7fa kubelet: use generic ephemeral volume helper functions
The name concatenation and ownership check were originally considered small
enough to not warrant dedicated functions, but the intent of the code is more
readable with them.
2021-10-07 17:31:54 +02:00
Kubernetes Prow Robot
b0eac84937
Merge pull request #105345 from pohly/generic-ephemeral-volume-util
generic ephemeral volume util, base code and controller
2021-10-07 08:19:47 -07:00
Patrick Ohly
ce35b7dbc3 component-base/logs: refactor registry
Moving the registry into its own package will avoid dependency cycles in future
PRs.

Creating loggers through a factory instead of storing pre-created instances
will make it possible to create the loggers differently depending on
configuration parameters.

The factory can also be used to provide additional meta data before creating
instances.
2021-10-07 17:17:49 +02:00
ravisantoshgudimetla
283b176102 [test]: modify integration tests to use v1beta3 2021-10-07 10:58:07 -04:00
ravisantoshgudimetla
1a484c1b9c [scheduler][vendor]: add v1beta3 explicitly
Vendor changes
2021-10-07 10:58:06 -04:00
ravisantoshgudimetla
5c7f602f48 Make v1beta3 default 2021-10-07 10:58:06 -04:00
Swati Sehgal
5043b431b4 excludesharedpool: e2e tests: Test cases for pods with non-integral CPUs
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-07 15:39:41 +01:00
Swati Sehgal
42dd01aa3f excludesharedpool: e2e tests: code refactor to handle non-integral CPUs
This patch changes cpuCount to cpuRequest in order to cater to cases
where guaranteed pods make non-integral CPU Requests.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-07 15:39:40 +01:00
Alexey Perevalov
5d9032007a Return only isolated cpus in podresources interface
Co-Authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
2021-10-07 15:34:08 +01:00
Kubernetes Prow Robot
c4d802b0b5
Merge pull request #103289 from AlexeyPerevalov/DoNotExportEmptyTopology
podresources: do not export empty NUMA topology
2021-10-07 07:11:46 -07:00
Abu Kashem
3d6cc118fe
introduce final seats for work estimate 2021-10-07 09:36:20 -04:00
ialidzhikov
d5e5e73dce Add CVE 2021-25741 info to 1.22 Release Notes
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-10-07 11:09:12 +03:00
Yaakov Selkowitz
acaa24b254 Enable more test images for s390x 2021-10-07 01:25:55 -04:00
Yaakov Selkowitz
82920d99f8 Fix build of apparmor-loader test image
apparmor is no longer found in Alpine edge/testing but in
edge/community, presumably in preparation for full-fledged inclusion in
3.15.  If so, once that is released, BASEIMAGE can be updated again and
the explicit --repository flag to 'apk add' dropped.

Fixes: https://github.com/kubernetes/kubernetes/issues/105528
2021-10-07 01:25:49 -04:00
Kubernetes Prow Robot
79ee735bad
Merge pull request #105337 from Huang-Wei/pr-105303
sched: integration test to cover event registration
2021-10-06 19:53:56 -07:00
Kubernetes Prow Robot
c20ff9839e
Merge pull request #97045 from claudiubelu/tests-windows-containerd-enabled
tests: Enable some [LinuxOnly] tests for Windows Containerd
2021-10-06 19:53:45 -07:00
Kubernetes Prow Robot
b6c01adcee
Merge pull request #105455 from shivanshu1333/patch-1
Update README.md
2021-10-06 18:45:46 -07:00
Kubernetes Prow Robot
5c3a789ad4
Merge pull request #105403 from tkashem/add-watch-init-latency
apf: print watch initialization latency in httplog
2021-10-06 17:42:41 -07:00
Kubernetes Prow Robot
84027bc07d
Merge pull request #104631 from perithompson/kp-userspace-deprecation
Adding deprecation notice to the userspace proxy-mode
2021-10-06 15:32:32 -07:00
Wei Huang
3283e6bb72
sched: integration test to cover event registration 2021-10-06 15:17:38 -07:00
Kubernetes Prow Robot
814b68fb15
Merge pull request #103293 from umangachapagain/logcheck-update
update logcheck version and hack/verify-structured-logging.sh
2021-10-06 13:20:31 -07:00
Kubernetes Prow Robot
d8ba2f1530
Merge pull request #105515 from liggitt/quota-master
[master] Fix quota controller hotloop in integration tests
2021-10-06 12:18:43 -07:00
Kubernetes Prow Robot
dbd8d3bcd6
Merge pull request #105141 from VilledeMontreal/fix/noloadPluginsForComp
Do not try to load plugins for cobra commands
2021-10-06 12:18:31 -07:00
Kubernetes Prow Robot
a861de6d16
Merge pull request #105500 from ibabou/update_owners_cluster_gce
Add [ibabou] & [pjh] to Cluster GCE directory OWNERS
2021-10-06 09:58:41 -07:00
Abu Kashem
9b21e11cf9
apf: print watch init latency in httplog 2021-10-06 11:37:17 -04:00
Jordan Liggitt
81fa9855c1 Fix quota controller hotloop in integration tests 2021-10-06 11:34:32 -04:00
ravisantoshgudimetla
9476237923 [scheduler] [test]: Fix PreferNominatedNode test
Once the node gets deleted, the nodelifecycle controller
is racing to update pod status and the pod deletion logic
is failing causing tests to flake. This commit moves
the testContext creation to within the test loop and deletes nodes,
namespace within the test loop. We don't explicitly call the node
deletion within the loop but the `testutils.CleanupTest(t, testCtx)`
call ensures that the namespace, nodes gets deleted.
2021-10-06 09:07:16 -04:00
Patrick Ohly
4ae0eecb34 controller: use generic ephemeral volume helper functions
The name concatenation and ownership check were originally considered small
enough to not warrant dedicated functions, but the intent of the code is more
readable with them.

There also was a missing owner check in the attach controller.
2021-10-06 14:01:44 +02:00
Swati Sehgal
9337902648 podresource: move the checkForTopology logic inline
As per the recommendation here: https://github.com/kubernetes/kubernetes/pull/103289#pullrequestreview-766949859
we move the check inline.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-06 11:31:48 +01:00
Patrick Ohly
650eba6904 generic ephemeral volumes: helper functions
The name concatenation and ownership check were originally considered small
enough to not warrant dedicated functions, but the intent of the code is more
readable with them.
2021-10-06 10:38:05 +02:00
Stephen Heywood
be65bc3f86 Redirect proxy requests for only GET & HEAD methods
- Extract the current redirect code into a function
  (proxyRedirectsforRootPath) and redirect for only
  http.MethodGet or http.MethodHead
- Create a unit test that confirms that only GET &
  HEAD methods are redirected
2021-10-06 20:55:59 +13:00
Kubernetes Prow Robot
afd55590e2
Merge pull request #104557 from tkashem/optimize-httplog
apiserver: construct logger for httplog only when log level is  3
2021-10-06 00:54:33 -07:00
Kubernetes Prow Robot
4586ff2c7c
Merge pull request #105333 from ibabou/update_win_base_images
Update windows base images - GCE provider
2021-10-05 23:08:33 -07:00