Commit Graph

111859 Commits

Author SHA1 Message Date
David Ashpole
f830d971b8
fix and extend apiserver tracing tests 2022-10-31 19:42:14 +00:00
Kubernetes Prow Robot
4a3bac5eae
Merge pull request #113281 from ialidzhikov/seccomp-default-fg
Update the doc string of the SeccompDefault feature gate
2022-10-31 11:50:56 -07:00
Kubernetes Prow Robot
62b21069d7
Merge pull request #113119 from marosset/hpc-local-account-e2e
Adding e2e test for running Windows hostprocess containers as members of a local usergroup
2022-10-31 11:50:45 -07:00
Jan Safranek
8dd3510032 Fix SELinux context mount with unknown context
Don't mount with SELinux mount option if kubelet does not know the SELinux
context, i.e. MounterArgs.SELinuxLabel is ""
2022-10-31 19:11:48 +01:00
Kubernetes Prow Robot
038da2bb13
Merge pull request #113472 from logicalhan/docs
update paths for documentation
2022-10-31 10:34:46 -07:00
Wojciech Tyczyński
bbcf5e3877 Fix setting resource version on deletion 2022-10-31 17:48:40 +01:00
Han Kang
fbdd02da40 update paths for documentation
Change-Id: I369b6972b2b6af2bab4561b1af824812ead95e0e
2022-10-31 09:20:39 -07:00
Michał Woźniak
3628532311
Extend metrics with the new labels (#113324)
* Extend job metrics

* Refactor TestMetrics to extract its checks into dedicated tests per feature
2022-10-31 08:50:45 -07:00
Kubernetes Prow Robot
4d2128b523
Merge pull request #113458 from CatherineF-dev/fix-tracing-wrapper-comment
Fix tracing wrapper comment
2022-10-31 06:14:44 -07:00
Jan Safranek
d37808faae Report error on a pod startup on SELinux mismatch
When a volume is already mounted with an unexpected SELinux label,
kubelet must unmount it first and then mount it back with the expected one.
Report an error to user, just in case the unmount takes too long.

In therory, this error should not happen too often, because two Pods with
different SELinux label will not enter Desired State of World, see
dsw.AddPodToVolume. It can happen when DSW and ASW SELinux labels only when
a volume has been deleted from DSW (= Pod was deleted) or a volume was
reconstructed after kubelet restart. In both cases, volume manager should
unmount the volume quickly.
2022-10-31 13:59:23 +01:00
Jan Safranek
805482413a Fix SELinux check of mounted volumes
In PodExistsInVolume with volumeObj.seLinuxMountContext != nil we know that
the volume has been previously mounted with a given SELinuxMountContext.

Either it has been mounted by this kubelet and we know it's correct or it
was by a previous instance of kubelet and the context has been
reconstructed from the filesystem. In both cases, the actual context is
correct, regardless if the volume plugin or PV access mode supports SELinux
mounts.
2022-10-31 13:39:48 +01:00
Jan Safranek
63ab1c86e7 Add SELinux mount support to all volume plugins
.. that are not migrated to CSI in 1.26 *and* are based on a block device.
NFS and CephFS may use the same volume as several PVs and then mounting
with -o context won't work.
2022-10-31 13:02:51 +01:00
Marcel Zięba
2f7b4ca685 Fix APF width estimate for creating service account's token 2022-10-31 11:06:07 +00:00
Kubernetes Prow Robot
d0e86111ef
Merge pull request #112855 from fromanirh/cpumanager-metrics
node: metrics: cpumanager: add metrics about pinning
2022-10-31 03:12:56 -07:00
Kubernetes Prow Robot
9702161caa
Merge pull request #112597 from mythi/grpc-authority
grpc: set localhost Authority to unix client calls
2022-10-31 03:12:45 -07:00
Kubernetes Prow Robot
ac59b03214
Merge pull request #113448 from pacoxu/remove-UnversionedKubeletConfigMap
remove  UnversionedKubeletConfigMap feature gate: GAed in v1.25
2022-10-31 01:18:43 -07:00
Paco Xu
9e8dc1d4a5 cleanup psp related rbac in cluster addons 2022-10-31 11:29:20 +08:00
Kubernetes Prow Robot
a65d76a5b6
Merge pull request #113454 from ii/promote-namespace-finalizer-test
Promote replaceCoreV1NamespaceFinalize +1 Endpoints
2022-10-30 18:34:45 -07:00
Catherine Fang
2f30a80b33 Fix tracing wrapper comment 2022-10-30 21:25:52 -04:00
Stephen Heywood
cdfdf0f6ce Promote Namespace e2e test to Conformance 2022-10-31 09:48:28 +13:00
neogopher
400c8f71cf docs: Correct the log message for pv controller to make it more accurately descriptive 2022-10-30 23:17:55 +05:30
Kubernetes Prow Robot
526650fc13
Merge pull request #109525 from jonyhy96/feat-wait
feat: make jsonpath wait logics consistent with condition
2022-10-30 09:12:43 -07:00
David Leadbeater
dad0e937c0
Escape terminal special characters in kubectl (#112553)
* Escape terminal special characters in kubectl

* Add escaping for kubectl alpha events
2022-10-30 08:08:43 -07:00
Kubernetes Prow Robot
90f50488c7
Merge pull request #112002 from ardaguclu/apiresources-restgetter
(kubectl apiresources): Use restclientgetter instead cmdutil.Factory
2022-10-30 06:24:54 -07:00
Kubernetes Prow Robot
93ebccb2a7
Merge pull request #111990 from ardaguclu/remove-v1beta1-csr
(kubectl certificates): Remove certificates/v1beta1 client usage
2022-10-30 06:24:43 -07:00
Paco Xu
e57985a3f4 remove UnversionedKubeletConfigMap feature gate: GAed in v1.25 2022-10-30 11:17:24 +08:00
Kubernetes Prow Robot
a0b69ecd01
Merge pull request #113349 from maxsmythe/refactor-matcher-interface
Refactor matcher interface
2022-10-28 16:12:52 -07:00
Kubernetes Prow Robot
53afe3b674
Merge pull request #113430 from wojtek-t/refactor_storage_tests_4
Refactor WatchError test to make it generic
2022-10-28 14:38:53 -07:00
Kubernetes Prow Robot
dd3dfab895
Merge pull request #112994 from DangerOnTheRanger/validation-admission-metrics
Add metrics for CEL for admission control KEP
2022-10-28 13:22:52 -07:00
Jordan Liggitt
f488c67eb5
Fix unwanted dependencies scanner 2022-10-28 15:15:20 -04:00
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