Commit Graph

108810 Commits

Author SHA1 Message Date
cpanato
aac61cea97
Update Go to 1.18.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-06-07 13:32:07 +02:00
Antonio Ojea
c0db77b208 graduate ServiceIPStaticSubrange to beta 2022-06-07 10:52:09 +02:00
Kubernetes Prow Robot
79cef12276
Merge pull request #110191 from rphillips/fixes/probe_shutdowns_readiness
Re-enable Kubelet Pod Readiness Probes on Termination and Pod probes should be handled by pod worker
2022-06-07 00:55:48 -07:00
scott
286a67d78c Fix issue that Audit Server could not correctly encode DeleteOption 2022-06-07 11:57:26 +08:00
Kubernetes Prow Robot
b6fb5a2878
Merge pull request #110394 from Abirdcfly/newfix
update kubectl api-resources help info
2022-06-06 16:45:47 -07:00
Ryan Phillips
97db4ac963 add service e2e tests 2022-06-06 17:00:59 -05:00
Ryan Phillips
230124f3d4 kubelet: add e2e test to verify probe readiness 2022-06-06 17:00:55 -05:00
Ryan Phillips
f25ca15e1c kubelet: only shutdown probes for pods that are terminated
This fixes a bug where terminating pods would not run their readiness
probes. Terminating pods are found within the possiblyRunningPods map.
2022-06-06 17:00:54 -05:00
Clayton Coleman
1d518adb76 kubelet: Pod probes should be handled by pod worker
The pod worker is the owner of when a container is running or not,
and the start and stop of the probes for a given pod should be
handled during the pod sync loop. This ensures that probes do not
continue running even after eviction.

Because the pod semantics allow lifecycle probes to shorten grace
period, the probe is removed after the containers in a pod are
terminated successfully. As an optimization, if the pod will have
a very short grace period (0 or 1 seconds) we stop the probes
immediately to reduce resource usage during eviction slightly.

After this change, the probe manager is only called by the pod
worker or by the reconcile loop.
2022-06-06 17:00:54 -05:00
Jiawei Wang
760365d5c9 CSIMigration feature gate to GA 2022-06-06 21:19:19 +00:00
Wojciech Tyczyński
006ff4510b Clean shutdown of nodecontroller integration tests 2022-06-06 20:33:20 +02:00
Wojciech Tyczyński
2af8d0bbd7 Clean shutdown of events integration tests 2022-06-06 20:33:20 +02:00
Wojciech Tyczyński
b54363aceb Clean shutdown of storageversion integration tests 2022-06-06 20:33:20 +02:00
Wojciech Tyczyński
e5ec28ff86 Clean shutdown of network integration tests 2022-06-06 20:33:20 +02:00
Lubomir I. Ivanov
2134026e3b kubeadm: allow passing the --patches flag to init/join/node phases
Allow passing the --patches flag to init/join/node phases
relevant to the kubelet writing the config file on disk.
2022-06-06 20:37:27 +03:00
Lubomir I. Ivanov
428c3fe954 kubeadm: document "kubeletconfiguration" as a patch target
Document the "kubeletconfiguration" as a patch target in the
v1beta3 API Init/JoinConfiguration.Patches struct
and also for the --patches flag.
2022-06-06 20:37:26 +03:00
Lubomir I. Ivanov
c3c9fb8608 kubeadm: add unit tests for patching a "kubeletconfiguration" target 2022-06-06 20:37:26 +03:00
Lubomir I. Ivanov
85fb6b01f8 kubeadm: apply patches to the kubelet config before writing it to disk
In phases/kubelet/WriteConfigToDisk() create a patch
manager for the root patches directory and apply
the user patches with a target "kubeletconfiguration".
2022-06-06 20:37:26 +03:00
Lubomir I. Ivanov
665f66d2bc kubeadm: pass io.Writer and "patches dir" to WriteConfigToDisk()
With phases/kubelet/WriteConfigToDisk() about to support patches
it is required that the function accepts an io.Writer
where the PatchManager can output to and also a patch directory.

Modify all call sites of the function WriteConfigToDisk()
to properly prepare an pass an io.Writer and patches dir to it.
This results in command phases for init/join/upgrade to pass
the root io.Writer (usually stdout) and the patchesDir populated
either via the config file or --patches flag.
2022-06-06 20:37:26 +03:00
Kubernetes Prow Robot
59ffc93678
Merge pull request #110404 from humblec/e2e-flag
correct the e2e framework flag description typos
2022-06-06 08:06:22 -07:00
Humble Chirammal
3988ac1498 correct the e2e framework flag description typos
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-06-06 19:23:28 +05:30
Kubernetes Prow Robot
913e8536f2
Merge pull request #110240 from yselkowitz/storage-e2e
Update storage e2e test images
2022-06-06 06:52:23 -07:00
Kubernetes Prow Robot
2d7dcf928c
Merge pull request #109594 from linux-on-ibm-z/fastbuild_s390x
Add fast build support for s390x
2022-06-05 23:42:23 -07:00
lokichoggio
60327c9090
code optimization 2022-06-06 14:23:42 +08:00
Quan Tian
5dd9184945 Fix SCTP default-deny test
The test is about SCTP and the accessed service only forwarded SCTP
traffic to the server Pod but the client Pod used TCP protocol, so the
test traffic never reached the server Pod and the test NetworkPolicy
was never enforced, which lead to test success even if the default-deny
policy was implemented wrongly. In some cases it may got failure result
if there was an external server having same IP as the cluster IP and
listening to TCP 80 port.

Signed-off-by: Quan Tian <qtian@vmware.com>
2022-06-06 13:14:07 +08:00
Sanskar Jaiswal
4314e58ae5 move the ignore logic higher up to the reconciler
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-06-06 09:49:57 +05:30
Abirdcfly
58043b936a
update kubectl api-resources help info
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-06 10:21:17 +08:00
Kubernetes Prow Robot
35940b707c
Merge pull request #109773 from danielhelfand/short-kubectl-comp
Include powershell in short description for kubectl completion
2022-06-05 01:14:20 -07:00
Piotr Nosek
a724818ad0 Add e2e test for HPA behavior: scale up delay 2022-06-05 06:52:44 +00:00
andyzhangx
7ac98854e2 upgrade Azure/go-autorest/autorest to v0.11.27
update
2022-06-04 01:52:47 +00:00
Kubernetes Prow Robot
ca630bc118
Merge pull request #109828 from pohly/polling-failures
[E2E] enhance pod polling failures
2022-06-03 18:08:31 -07:00
Kubernetes Prow Robot
1f90b7980b
Merge pull request #108997 from dobsonj/issue79980
Fix volume reconstruction for CSI ephemeral volumes
2022-06-03 18:08:20 -07:00
Kubernetes Prow Robot
b7337cb171
Merge pull request #110235 from jsturtevant/fix-new-restricted-pod-tests
test: RunAsUser causes pods to not start on Windows
2022-06-03 13:32:20 -07:00
Kubernetes Prow Robot
4988bfce91
Merge pull request #110319 from chendave/newline
Remove `newlineReporter` custom report
2022-06-03 11:42:32 -07:00
Kubernetes Prow Robot
62351e24c5
Merge pull request #109552 from cyclinder/fix_CVE-2022-27191
fix CVE-2022-27191: Bump golang.org/x/crypto to v0.0.0-20220315160706
2022-06-03 11:42:20 -07:00
Kubernetes Prow Robot
bad4c8c464
Merge pull request #110184 from acumino/update/changelog
Remove release note added twice
2022-06-03 09:31:14 -07:00
Kubernetes Prow Robot
8d5518d426
Merge pull request #109813 from saschagrunert/cri-tools
Update cri-tools to v1.24.2
2022-06-03 09:31:05 -07:00
Kubernetes Prow Robot
b578d61606
Merge pull request #109709 from shiftstack/nonfatal_openstack_config_k8s
Don't fail when OpenStack config contains unknown directives
2022-06-03 09:30:59 -07:00
Kubernetes Prow Robot
60902b7caf
Merge pull request #109692 from yxxhero/remove_ioutil_in_kubelet
remove ioutil in kubelet
2022-06-03 09:30:51 -07:00
Kubernetes Prow Robot
0c0b528ec4
Merge pull request #109516 from kaydxh/master
refactor(hack): use ${BASH_SOURCE[0]} to get script name
2022-06-03 09:30:44 -07:00
Kubernetes Prow Robot
70dca66271
Merge pull request #109388 from ialidzhikov/cleanup/experimental-kernel-memcg-notification
kubelet: Remove the deprecated `--experimental-kernel-memcg-notification` flag
2022-06-03 09:30:33 -07:00
Kubernetes Prow Robot
c74c82e845
Merge pull request #109228 from pacoxu/cleanup-ut
prevent the unit test name too long in report
2022-06-03 09:30:21 -07:00
Patrick Ohly
f02c72eaf9 pods: more tolerant checking of poll tests
Under load we might skip some of the poll events, leading to less output. Now
we expect only at least one output line for polling.
2022-06-03 13:41:11 +02:00
Patrick Ohly
2b299526b2 e2e: include more information in pod timeout error
The advantage is that the extra error information is guaranteed to be printed
directly before the failure and we avoid one extra log line that would have to
be correlated with the failure.
2022-06-03 13:41:05 +02:00
Patrick Ohly
8e79f4ce27 e2e: make failure message for unexpected errors more readable
The failure message from Gomega was hard to read because explanation and error
text were separated by the error dump. In many cases, that error dump doesn't
add any relevant information.

Now the error is dumped first as info message (just in case that it is
relevant) and then a shorter failure message is created from explanation and
error text.
2022-06-03 13:41:02 +02:00
Patrick Ohly
486744e814 e2e: test output of e2epod wait
Both output during the test and the failure message are covered.
2022-06-03 11:03:16 +02:00
Patrick Ohly
0e0e51d792 e2e: refactor Ginkgo output testing
The helper code will be useful for testing other parts of the e2e framework.
2022-06-03 10:25:23 +02:00
Patrick Ohly
2ad1fc5f8f e2e: include expected line number in output test
This makes it easier to see when comment lines must be added or removed.
2022-06-03 10:04:40 +02:00
Kubernetes Prow Robot
ccfac6d320
Merge pull request #110360 from 21kyu/fix_defer_in_for_loop_listwatch_test
fix defer in for loop, maybe resource leak
2022-06-02 22:38:19 -07:00
Yaakov Selkowitz
9c2be70e44 storage e2e: hostpath driver v1.8.0
Changes includes results of the following command:

test/e2e/testing-manifests/storage-csi$ ./update-hostpath.sh v1.8.0

This also includes backports from the following post-release commits:
https://github.com/kubernetes-csi/csi-driver-host-path/pull/355
https://github.com/kubernetes-csi/csi-driver-host-path/pull/357

Also includes a manual update of the busybox image to match the tag used
elsewhere in kubernetes e2e.
2022-06-02 19:33:35 -04:00