Commit Graph

104447 Commits

Author SHA1 Message Date
Lee Verberne
764859081a Validate ephemeralContainerStatuses during update 2021-10-19 23:00:51 -04:00
cyclinder
dd2d2ea7a7 revise kubeProxy filed as part of the kubeadm configuration
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-10-20 10:32:29 +08:00
Kubernetes Prow Robot
712840904a
Merge pull request #104540 from wzshiming/fix/node-shutdown-e2e
Fix nodeShutdownReason for node shutdown e2e
2021-10-19 18:39:57 -07:00
Kubernetes Prow Robot
6cbe18544d
Merge pull request #94165 from soltysh/fix_cp
Use separate pathSpec for local and remote to properly handle cleaning paths
2021-10-19 15:24:23 -07:00
Wei Huang
3c230af59c
sched: ensure --leader-elect* CLI args are honored 2021-10-19 13:56:08 -07:00
Kubernetes Prow Robot
421cdec3a5
Merge pull request #105666 from nilo19/fix/cherry-pick-842
fix: skip instance not found when decoupling vmss from lb
2021-10-19 13:10:24 -07:00
Namanl2001
d721796259
reverted previous commit change
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-20 01:05:41 +05:30
Aldo Culquicondor
68f2c892e5 Add integration tests for tracking ready Pods
Change-Id: I1f20657f4f9cd4daad73149f969bad52a33698fa
2021-10-19 15:18:37 -04:00
Aldo Culquicondor
60fc90967b Count ready pods in job controller
When the feature gate JobReadyPods is enabled.

Change-Id: I86f93914568de6a7029f9ae92ee7b749686fbf97
2021-10-19 15:18:37 -04:00
Aldo Culquicondor
1bff5eb44d Add ready field to Job status
to keep a count of the pods that have the ready condition.

Also:
- Add feature gate JobReadyPods.
- Add Ready to describe.

Change-Id: Ib934730a430a8e2a2f485671e345fe2330006939
2021-10-19 15:18:34 -04:00
Kubernetes Prow Robot
c733594040
Merge pull request #105687 from alculquicondor/job-tracking
Graduate JobTrackingWithFinalizers to beta
2021-10-19 11:40:37 -07:00
Kubernetes Prow Robot
b2c4269992
Merge pull request #105631 from klueska/upstream-distribute-cpus-across-numa
Add CPUManager policy option to distribute CPUs across NUMA nodes instead of packing them
2021-10-19 11:40:24 -07:00
Namanl2001
c6e0564f53
adding quote in SSH_KEY
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 23:30:01 +05:30
Namanl2001
dda8248a0e
trying quoting
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 21:59:05 +05:30
Namanl2001
1b69338460
amending desc in makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 21:57:42 +05:30
Kubernetes Prow Robot
2dbdd9461d
Merge pull request #105748 from marosset/host-process-emphemeral-contianer-validation
Adding unit test coverage for API validation for ephemeral containers in hostprocess pods on Windows
2021-10-19 08:11:04 -07:00
Kubernetes Prow Robot
5cdc3407ee
Merge pull request #105738 from tkashem/apf-remove-func
apf: return nil for a request that has been removed from queue
2021-10-19 06:30:39 -07:00
Lee Verberne
6f4b8da9a3 Promote EphemeralContainers feature to beta 2021-10-19 08:47:57 -04:00
Lee Verberne
83a4ec90ae Always set feature gates for ContainerVisitor test
This fixes a bug where the test was dependent on the current set of
feature gates. Since AllFeatureEnabledContainers() depends on the
feature gates it must be evaluated after the test case is initialized.
2021-10-19 08:47:57 -04:00
Abu Kashem
cd06ba502c
apf: return nil for a request that has been removed from queue 2021-10-19 08:29:35 -04:00
Patrick Ohly
5462d97e62 storage e2e: test snapshotting of generic ephemeral volumes
Conceptually, snapshots have to be taken while the pod and thus the volume
exist. Snapshotting has an issue where flushing of data is not guaranteed while
the volume is still staged on the node, so the test relied on deleting the pod
and checking for the volume to be unused. That part of the test cannot be done
for ephmeral volumes.
2021-10-19 14:01:21 +02:00
Patrick Ohly
7538d089d5 storage e2e: fix volume metric test for generic ephemeral volume
This is a fix for the new test case from
https://github.com/kubernetes/kubernetes/pull/105636 which had to be merged
without prior testing due to not having a cluster to test on and no pull job
which runs these
tests. https://testgrid.k8s.io/sig-storage-kubernetes#gce-serial then showed a
failure.

The fix is simple: in the ephemeral case, the PVC name isn't set in advance in
pvc.Name and instead must be computed. The fix now was tested on a kubetest
cluster in GCE.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2021-10-19 14:01:21 +02:00
Patrick Ohly
4568cdada2 storage e2e: test volume attach limits of generic ephemeral volumes
There are unit tests for this particular code path in kube-scheduler, but no
E2E tests.
2021-10-19 14:01:20 +02:00
Patrick Ohly
a90a3c6a9c storage e2e: check raw block support for generic ephemeral volumes
This adds a new test pattern and uses it for the inline volume tests. Because
the kind of volume now varies more, validation of the mount or block device is
always done by the caller of TestEphemeral.
2021-10-19 13:30:32 +02:00
Patrick Ohly
a40d2eb18c storage validation: accept generic ephemeral volumes as volume device
Raw block devices are possible with generic ephemeral volumes, so rejecting a
pod with that combination is wrong.
2021-10-19 13:30:32 +02:00
Lukasz Szaszkiewicz
9e2bdfee02 rename to muxAndDiscoveryComplete 2021-10-19 13:26:59 +02:00
Shivanshu Raj Shrivastava
3e6d122ee1
fixed using reference to loop iterator (#105433)
* fixed using reference to loop iterator

* fixed other for loops
2021-10-19 02:40:38 -07:00
Lukasz Szaszkiewicz
c54463d379 kube-aggregator: registeres APIServiceRegistrationControllerInitiated as a MuxComplete signal
apiServiceRegistrationControllerInitiated is closed when APIServiceRegistrationController has finished "installing" all known APIServices.
At this point we know that the proxy handler knows about APIServices and can handle client requests.
Before it might have resulted in a 404 response which could have serious consequences for some controllers like GC and NS
2021-10-19 10:10:21 +02:00
Lukasz Szaszkiewicz
ddfbb5d2bb genericapiserver: indroduce muxCompleteSignals for holding signals that indicate all known HTTP paths have been registered
the new field exists primarily to avoid returning a 404 response when a resource actually exists but we haven't installed the path to a handler.
it is exposed for easier composition of the individual servers.
the primary users of this field are the WithMuxCompleteProtection filter and the NotFoundHandler.
2021-10-19 10:10:15 +02:00
Lukasz Szaszkiewicz
b71fa61b79 apiserver: adds WithMuxCompleteProtection filter
It puts the muxCompleteProtectionKey in the context if a request has been made before muxCompleteSignal has been ready.
Putting the key protect us from returning a 404 response instead of a 503.
It is especially important for controllers like GC and NS since they act on 404s.

The presence of the key is checked in the NotFoundHandler (staging/src/k8s.io/apiserver/pkg/util/notfoundhandler/not_found_handler.go)

The race may happen when a request reaches the NotFoundHandler because not all paths have been registered in the mux
but when the registered checks are examined in the handler they indicate that the paths have been actually installed.
In that case, the presence of the key will make the handler return 503 instead of 404.
2021-10-19 09:55:11 +02:00
Lukasz Szaszkiewicz
b92ff2928a update modules.txt 2021-10-19 09:55:11 +02:00
Lukasz Szaszkiewicz
53867975e7 apiserver: indroduces NotFoundHanlder
The new handler is meant to be executed at the end of the delegation chain.
It simply checks if the request have been made before the server has installed all known HTTP paths.
In that case it returns a 503 response otherwise it returns a 404.

We don't want to add additional checks to the readyz path as it might prevent fixing bricked clusters.
This specific handler is meant to "protect" requests that arrive before the paths and handlers are fully initialized.
2021-10-19 09:55:04 +02:00
Kubernetes Prow Robot
edeab47b36
Merge pull request #105757 from MikeSpreitzer/catch-up
Fix nits noticed in recent code review
2021-10-19 00:00:38 -07:00
Mike Spreitzer
1844a05277 Fix nits noticed in recent code review 2021-10-18 23:51:48 -05:00
haoyun
a600e31c55 test: add test for PatchNode when error happend
Signed-off-by: haoyun <yun.hao@daocloud.io>
2021-10-19 11:01:01 +08:00
Yaakov Selkowitz
4e3f94eb41 test: use newer test images for better s390x coverage
These image versions added s390x builds via
https://github.com/kubernetes/kubernetes/pull/102785.
2021-10-18 23:00:31 -04:00
Kubernetes Prow Robot
b977200a5d
Merge pull request #102785 from yselkowitz/master
Enable more test images for s390x
2021-10-18 19:59:34 -07:00
David Porter
d28db6ee0c Support cgroupv2 in node problem detector test 2021-10-18 19:50:45 -07:00
Kubernetes Prow Robot
1af8a8c026
Merge pull request #105465 from marosset/remove-host-process-contianer-kubelet-annotations
Stop passing WindowsHostProcessContainer annotations for CRI calls in kubelet
2021-10-18 15:50:02 -07:00
Kubernetes Prow Robot
e526cf316f
Merge pull request #105081 from aramase/update-log-mount-util
update the log message for mount windows
2021-10-18 15:49:54 -07:00
Kubernetes Prow Robot
e595d79dfc
Merge pull request #104574 from 249043822/br-repeat-package
fix duplicate package import in pod_worker
2021-10-18 15:49:46 -07:00
Kubernetes Prow Robot
819b021ada
Merge pull request #92433 from claudiubelu/windows/etcd-image
Adds Windows support for etcd image
2021-10-18 15:49:34 -07:00
Mark Rossetti
3ddff55fe6 Adding unit test coverage for API validation for emphermal contaienrs in hostprocess pods on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2021-10-18 15:46:27 -07:00
Kubernetes Prow Robot
5889fb4fbc
Merge pull request #105652 from wzshiming/feat/structure-shutdown-config
Refactor to use structure to pass parameters for GracefulNodeShutdown
2021-10-18 14:45:20 -07:00
Namanl2001
ebb2f426c3
adding SSH_KEY desc to makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 00:21:37 +05:30
Namanl2001
85d16760f0
adding defaultGceKey in remote/ssh.go
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 00:07:36 +05:30
Ross Peoples
0cf3dba1f1 drain node output should say drained not evicted 2021-10-18 11:05:28 -05:00
elbehery
04ad18ce44 Run storage hostpath e2e test client pod as privileged
hostPath volume plugin creates a directory within /tmp on host machine, to be mounted as volume.
inject-pod writes content to the volume, and a client-pod tried the read the contents and verify.
when SELinux is enabled on the host, client-pod can not read the content, with permission denied.
running the client-pod as privileged, so that it can access the volume content, even when SEinux is enabled on the host.
2021-10-18 15:06:20 +02:00
Lukasz Szaszkiewicz
7a342a0f8a kube-apiserver: wires the notFoundHandler 2021-10-18 12:41:42 +02:00
Kubernetes Prow Robot
a78e3133a0
Merge pull request #104327 from sxllwx/fix/dynamic-client
set the content-type Header when the dynamic client sends the request
2021-10-18 03:01:49 -07:00