Commit Graph

111668 Commits

Author SHA1 Message Date
Jordan Liggitt
0737e92da6
Regenerate vendor 2022-10-28 15:15:19 -04:00
Jordan Liggitt
cad5058200
Stop adding requires for everything in the graph 2022-10-28 15:15:18 -04:00
Jordan Liggitt
a82d2b9e08
Stop adding explicit replace directives for all requires
This was originally added in the early days of go.mod in order to ensure that the root k8s.io/kubernetes
go.mod file reflected all the versions of dependencies we were using, and to ensure that go commands didn't spuriously
increment these versions.

With module pruning in go1.17+ and go defaulting to mod=readonly mode in go1.16+, this is no longer necessary.
2022-10-28 15:15:18 -04:00
Kubernetes Prow Robot
367f01f62d
Merge pull request #113423 from sss-ng/bugfix/fix-cmd-test
fixed kubectl test that passes when it should fail on changed test input
2022-10-28 07:32:43 -07:00
Kubernetes Prow Robot
3c9928e4f8
Merge pull request #113304 from mimowo/handling-pod-failures-beta-ssa
Use SSA to add pod failure conditions
2022-10-28 07:32:32 -07:00
Patrick Ohly
5a01a52b0c test: extend gomega to use YAML for API types
Some of our API types contain fields that get rendered very poorly by
gomega.format.Object because they contain lots of internal information, for
example CreationTimestamp. As a result, dumping full API object typically gets
truncated.

What we want is a representation that is a) multi-line (in contrast to the
stringer implemented by our types) and b) drops empty fields where it
was defined that this is okay.

The normal YAML representation fits that requirement. We just need to teach
gomega how and when to do that. This cannot be done for each type through a
generated GomegaString method (lots of code, additional dependency in public
API on YAML encoder), but it can be done inside tests by adding a formatting
handler (new gomega feature).
2022-10-28 15:43:48 +02:00
Patrick Ohly
023baa5e45 e2e framework: truncate too long failure messages when writing JUnit
Our tooling cannot handle very long failure messages well:
- when unfolding a test in the spyglass UI, it fills the entire screen
- failure correlation for http://go.k8s.io/triage has resource constraints

We cannot enforce that all tests only produce short failure messages and even
if we could, depending on the test failure, including more information may be
useful to understand it.

To achieve both goals (summary for correlation and overview, all details
available when digging deeper), too longer failure messages now get truncated,
with the full message guaranteed to be captured in the test output.

"Too long" is arbitrarily chosen to be similar to the gomega.MaxLength because
that has been a limit for failure message size in the past.
2022-10-28 15:43:48 +02:00
Patrick Ohly
b3f4cd66cd e2e framework: add -gomega-max-length parameter
When gomega.format exceeds the default size of 4000, it truncates and prints:

  Gomega truncated this representation as it exceeds 'format.MaxLength'.
  Consider having the object provide a custom 'GomegaStringer' representation
  or adjust the parameters in Gomega's 'format' package.

  Learn more here: https://onsi.github.io/gomega/#adjusting-output

These instructions don't help the user of the e2e.test binary unless we provide
a command line flag.
2022-10-28 15:43:48 +02:00
Kubernetes Prow Robot
9e85581584
Merge pull request #113367 from pohly/dep-ginkgo-gomega
dependencies: update to gomega v1.23.0 and ginkgo v2.4.0
2022-10-28 06:26:30 -07:00
Kubernetes Prow Robot
f9f9f0107d
Merge pull request #112544 from abhijit-dev82/master
HPA : Enhance error message to capture POD details
2022-10-28 04:14:30 -07:00
Wojciech Tyczyński
b3f9272d57 Refactor WatchError test to make it generic 2022-10-28 12:57:21 +02:00
Patrick Ohly
e6ad2f2f23 dependencies: update to gomega v1.23.0 and ginkgo v2.4.0 and dependencies
Gomega adds support for formatting extensions and StopTrying in matchers.
Ginkgo enhances DeferCleanup.

This also triggered an update of other dependencies.
2022-10-28 12:50:09 +02:00
SataQiu
a7b5c8adcd kube-aggregator: remove redundant Scheme registration logic 2022-10-28 17:43:39 +08:00
Kubernetes Prow Robot
e438ea02ec
Merge pull request #113222 from MikeSpreitzer/add-borrowing-inputs
Add borrowing inputs
2022-10-28 02:34:32 -07:00
Kubernetes Prow Robot
3df170d1c4
Merge pull request #113198 from pacoxu/kubectl-alpha-events
kubectl-alpha-events: e2e ignore some timeout errors(flake)
2022-10-28 00:42:41 -07:00
Kubernetes Prow Robot
6cb473b6c4
Merge pull request #112693 from aimuz/fix-GO-2022-0969
Fixed CVE-2022-27664 Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80
2022-10-28 00:42:30 -07:00
Kubernetes Prow Robot
5de293c425
Merge pull request #113413 from logicalhan/doc
update documentation generator
2022-10-27 20:20:40 -07:00
Kubernetes Prow Robot
08644a12b3
Merge pull request #113326 from mborsz/bench3
Add benchmark for json.compact high cpu usage in watch
2022-10-27 20:20:29 -07:00
David Ashpole
f43b4f1b95
plumb context from CRI calls through kubelet 2022-10-28 02:55:28 +00:00
aimuz
78c704d4f6
Fixed (CVE-2022-27664) Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80
Fixed https://pkg.go.dev/vuln/GO-2022-0969

Signed-off-by: aimuz <mr.imuz@gmail.com>
2022-10-28 10:49:16 +08:00
Sam Snarr
45fc1f0d93 fixed test to fail when you change the expectPluginArgs so that it is different than args 2022-10-27 22:18:42 -04:00
Mike Spreitzer
9b684579e2 Add instrumentation for seat borrowing 2022-10-27 14:11:44 -07:00
Kubernetes Prow Robot
f163fae7d5
Merge pull request #113409 from gnufied/disable-generic-ephemeral-expansion
Disable expansion in SC, if driver does not support it
2022-10-27 13:20:42 -07:00
Kubernetes Prow Robot
0d4878e448
Merge pull request #113390 from pohly/e2e-framework-fix-failure-stack
e2e framework: fix incorrect backtrace in Failf
2022-10-27 13:20:30 -07:00
Han Kang
86dfa784bf update documentation generator
Change-Id: I6c4825dc62ee288adcb8cf86bc4225550b456154
2022-10-27 14:27:32 -04:00
Kubernetes Prow Robot
819cadca66
Merge pull request #113370 from wojtek-t/refactor_storage_tests_3
Refactor storage tests - part 3
2022-10-27 11:24:44 -07:00
Kubernetes Prow Robot
021e2d394c
Merge pull request #113361 from SataQiu/fix-20221026
kube-apiserver: keep the types of LeaseEndpointReconcilerType and NoneEndpointReconcilerType the same as MasterCountReconcilerType
2022-10-27 11:24:33 -07:00
Hemant Kumar
fa242ff102 Disable expansion in SC, if driver does not support it 2022-10-27 13:35:36 -04:00
Michal Wozniak
fea883687f SSA to add pod failure conditions - ready for review 2022-10-27 18:21:33 +02:00
Jan Safranek
a910d83070 Reduce log noise on SELinux mount mismatch
The Desired State of World can require a different SELinux mount context than
is in the Actual State of World and it's perfectly OK. For example when
user changes SELinux context of Pods or when the context is reconstructed
after kubelet restart.

Don't spam log and don't report errors to the user as event - reconciler
will do the right thing and unmount the old volume (with wrong context) and
mount a new one in the next reconciliation. It's not an error, it's
expected workflow.
2022-10-27 18:00:42 +02:00
Kubernetes Prow Robot
935bca2df1
Merge pull request #113311 from soltysh/arda_approver
Promote ardaguclu to approver for sig-cli related stuff
2022-10-27 08:42:43 -07:00
Kubernetes Prow Robot
ae6dc598bd
Merge pull request #113172 from dashpole/endpoint_handler_tracing
Migrate apiserver from utils/trace to component-base/tracing
2022-10-27 08:42:32 -07:00
Mengjiao Liu
b9740694f3 StatefulSet: fix kube-controller-manager panic due to StatefulSetPersistentVolumeClaimRetentionPolicy being nil 2022-10-27 23:13:36 +08:00
Kubernetes Prow Robot
ab4907d2f4
Merge pull request #112913 from Garrybest/pr_cpumanager
fix GetAllocatableCPUs in cpumanager
2022-10-27 07:20:33 -07:00
Wojciech Tyczyński
cd5da36c92 Refactor etcd3 list consistency test 2022-10-27 16:00:54 +02:00
David Ashpole
de26b9023f
migrate apiserver utiltrace usage to component-base/tracing 2022-10-27 13:34:51 +00:00
Maciej Borsz
e577a77eb8 Add benchmark for caching object 2022-10-27 13:19:37 +00:00
Francesco Romani
bdc08eaa4b e2e: node: add tests for cpumanager metrics
Add tests to verify the cpumanager metrics are populated.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-10-27 14:40:56 +02:00
Francesco Romani
47d3299781 node: metrics: cpumanager: add pinning metrics
In order to improve the observability of the cpumanager,
add and populate metrics to track if the combination of
the kubelet configuration and podspec would trigger
exclusive core allocation and pinning.

We should avoid leaking any node/machine specific information
(e.g. core ids, even though this is admittedly an extreme example);
tracking these metrics seems to be a good first step, because
it allows us to get feedback without exposing details.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-10-27 14:40:40 +02:00
Garrybest
95eb5670cf add GetAllocatableCPUs test in cpumanager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-10-27 19:57:12 +08:00
Garrybest
d446f5f90e fix GetAllocatableCPUs in cpumanager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-10-27 19:57:06 +08:00
Patrick Ohly
2a7f9723ec e2e framework: fix incorrect backtrace in Failf
Commit 99e9096034 was only supposed to remove the
FailfWithOffset function, but it also changed the behavior by skipping one
additional stack frame. That makes no sense and is inconsistent with Fail, which
also logs the direct caller.
2022-10-27 12:24:00 +02:00
Wojciech Tyczyński
bbe1ebc82a Minor cleanup of etcd3 tests 2022-10-27 09:48:06 +02:00
Kubernetes Prow Robot
6e31c6531f
Merge pull request #111095 from tallclair/audit-single-context
Audit single context
2022-10-26 23:56:32 -07:00
Kubernetes Prow Robot
a74e16fc81
Merge pull request #113306 from jsafrane/csidriver-setup
Move CSIDriver checks from NewMounter to SetUpAt
2022-10-26 17:08:43 -07:00
Kubernetes Prow Robot
2a224dff02
Merge pull request #108874 from jsafrane/rework-csi-mount-json
Move CSI json file saving to SetUpAt()
2022-10-26 17:08:32 -07:00
Kubernetes Prow Robot
52f5816b8b
Merge pull request #113015 from ritazh/crencryption
Custom resource encryption
2022-10-26 14:46:22 -07:00
Kermit Alexander II
ac324cb30c Add metrics for validation admission control. 2022-10-26 20:54:57 +00:00
Rita Zhang
c3df726c7b
Enable encryption for custom resources
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2022-10-26 13:37:11 -07:00
Wojciech Tyczyński
b02f172cbd Refactor storage tests using compaction 2022-10-26 22:02:13 +02:00