Commit Graph

119305 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
0304c567b6
Merge pull request #121085 from jiahuif-forks/fix/crd-validation-expressions/enum-cost
CRD Validation Expresions: set maxLength to longest enum.
2023-10-17 23:28:39 +02:00
Kubernetes Prow Robot
a7b8357a55
Merge pull request #118165 from champly/master
kubelet: fix comment typo
2023-10-17 23:28:25 +02:00
Kubernetes Prow Robot
e7fd5b85ed
Merge pull request #121068 from carlory/cleanup-e2e-framework-deprecated-funcs
clean up deprecated funcs in e2e framework
2023-10-17 21:28:57 +02:00
Kubernetes Prow Robot
27ff547a14
Merge pull request #121011 from kannon92/job-pod-replacement-policy-feature-on-but-api-specified
Fix panic when enablement of pod replacement policy is skewed
2023-10-17 21:28:48 +02:00
Yuki Iwai
201c30fba8
Job: Handle error returned from AddEventHandler function (#119917)
* Job: Handle error returned from AddEventHandler function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Use the error message the similar to CronJob

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Clean up error messages

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the tesing.T on the second place in the args for the newControllerFromClient function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.T on the second place in the args for the newControllerFromClientWithClock function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Call t.Helper()

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the createJobControllerWithSharedInformers function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the startJobControllerAndWaitForCaches function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Adapt TestFinializerCleanup to the eventhandler error

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

---------

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-17 21:28:34 +02:00
Kevin Hannon
7a1ac18bc8 Fix panic if there are more terminating pods than active pods
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
2023-10-17 14:50:38 -04:00
Dejan Pejchev
fad4430f9e
cleanup: remove redundant logic in PodReplacementPolicy integration tests 2023-10-17 20:30:54 +02:00
Nabarun Pal
007ef653ad
add feature gates for authorization config
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2023-10-17 23:49:09 +05:30
Kubernetes Prow Robot
3ae76863a5
Merge pull request #121213 from charles-chenzz/e2e_3085_kep
KEP 3085: check PodReadyToStartContainers condition after volume create
2023-10-17 20:08:19 +02:00
Kubernetes Prow Robot
62643ca145
Merge pull request #121083 from thockin/gate_bump_remove_gce_readonly_pd_validation
Set gate SkipReadOnlyValidationGCE to Deprecated
2023-10-17 20:08:11 +02:00
Kubernetes Prow Robot
0095ae3b25
Merge pull request #120195 from Ithrael/fix/error-handling-condition-in-test
fix(test): fix error handling condition in test
2023-10-17 20:08:01 +02:00
Kubernetes Prow Robot
3d77b95bcf
Merge pull request #118704 from dgl/crio-socket-fix
Match on cri-o socket suffix only
2023-10-17 20:07:52 +02:00
Kubernetes Prow Robot
7824ac0f3e
Merge pull request #114336 from claudiubelu/fixes-test-get-file-type
unittests: Fixes hostutil.GetFileType for Windows
2023-10-17 20:07:39 +02:00
Dejan Pejchev
2ccf7e8e49
fix: minor lint issues and redundant check 2023-10-17 20:07:20 +02:00
Dejan Pejchev
056b25dfca
fix: improve PodReplacementPolicy integration test case names and update deprecated methods 2023-10-17 19:18:58 +02:00
Jiahui Feng
bf32f87d00 skip CEL validations for enum violation. 2023-10-17 10:10:13 -07:00
Kubernetes Prow Robot
d22e315c4a
Merge pull request #120910 from palnabarun/3221/fix-kubeconfig-file-type-name
staging/apiserver: correct KubeConfig type name in authorization types
2023-10-17 18:50:33 +02:00
Kubernetes Prow Robot
2ae300f9e9
Merge pull request #120870 from lvedder/chore/update-dependency-filepath-securejoin-to-0.2.4
update filepath-securejoin to 0.2.4 to fix transitional security vulnerability
2023-10-17 18:50:19 +02:00
Dejan Pejchev
e73edf7764
fix: typo in indexed & non-indexed completion policies for failed pod replacement policy integration tests 2023-10-17 18:15:55 +02:00
Dejan Pejchev
bcf1c113f4
cleanup: add new test cases for failed pod replacement policy instead of editing existing ones 2023-10-17 18:04:25 +02:00
Kubernetes Prow Robot
ba7feccfa3
Merge pull request #121290 from pacoxu/revert-119946-ignore_preflight_error
Revert "kubeadm: FeatureGate MergeCLIArgumentsWithConfig is added for ignorePreflightErrors"
2023-10-17 17:21:36 +02:00
Kubernetes Prow Robot
86bcca4713
Merge pull request #121161 from siyuanfoundation/test-delete
k8s.io/apiserver/storage: add 3 new unit tests for delete.
2023-10-17 17:21:27 +02:00
Kubernetes Prow Robot
5b7339b804
Merge pull request #121121 from kiashok/addRuntimeHdlrImageSpec
Add runtime handler field to ImageSpec struct
2023-10-17 17:21:13 +02:00
Jim Hays
911700e64e Fix typos in markdown 2023-10-17 10:55:40 -04:00
Nabarun Pal
2bf2c4f3a4
staging/apiserver: correct KubeConfigFile type in authorization types
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2023-10-17 20:01:27 +05:30
Quan Tian
b500c3d693 Correct the label selector used in TestSampleAPIServer
TestSampleAPIServer tried to validate APIService deletion, but it used
an unmatched selector to delete and list APIServices, which essentially
validated nothing.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-10-17 22:29:34 +08:00
Kubernetes Prow Robot
760599db27
Merge pull request #121282 from neolit123/1.29-fix-typos-in-elliptic-kubeadm-api
kubeadm: fix "eliptic" typo in API package
2023-10-17 16:14:36 +02:00
Kubernetes Prow Robot
639f63c4e5
Merge pull request #121261 from kannon92/revert-119882-podres-client-wait
Revert "podresources: e2e: force eager connection"
2023-10-17 16:14:29 +02:00
Kubernetes Prow Robot
bbcbfe4b97
Merge pull request #121257 from bzsuni/ga/ProbeTerminationGracePeriod
Remove GA featuregate about ProbeTerminationGracePeriod in 1.29
2023-10-17 16:14:19 +02:00
Kubernetes Prow Robot
91c172e670
Merge pull request #121108 from sttts/sttts-validate-cloud-provider
kube-apiserver: move cloud provider validation into options
2023-10-17 16:14:10 +02:00
SataQiu
c281c70bac kubeadm: remove reference to UnknownCRISocket from getInitConfigurationFromCluster 2023-10-17 21:50:05 +08:00
Patrick Ohly
7d077f9271 e2e: move AllNodesReady check to DeferCleanup
Some test cases can make nodes not ready and use DeferCleanup to bring
nodes back online. Checking if all nodes are online would fail
in such cases as AfterEach runs before DeferCleanup.

Scheduling nodes readines check to DeferCleanup should solve this
issue as nodes would be brought back to a `Ready` state before the
check.
2023-10-17 16:45:57 +03:00
Paco Xu
e3c58378bc
Revert "kubeadm: FeatureGate MergeCLIArgumentsWithConfig is added for ignorePreflightErrors" 2023-10-17 20:26:58 +08:00
Swati Sehgal
9a354fc9d0 node: sample-dp: Add retry to handle device plugin restart failure
Add retry mechanism to handle cases where after kubelet restarts, the device
plugin unix socket(s) were created but not ready to serve yet.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
d0d133298d node: sample-dp: Use fsnotify for kubelet restart detection
Add kubeletSocket file to fsnotify instead of polling and waiting for deletion
of device plugin unix socket as a way of detecting kubelet restart. We need to
ensure that the device plugin re-registers itself after kubelet restart depending
on the configured registration mode (auto-registration or controller registration).

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
f46cdf1428 node: sample-dp: set default value for pluginSocksDir
Setting a reasonable default in case `PLUGIN_SOCK_DIR`
environment variable is not specified.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
211d8cc80a node: sample-dp: stubRegisterControlFunc for controlling registration
If the user specifies the intent to control registration process, we rely on
registration triggers (deletion of control file) to prompt registration.

This behvaiour is expected to be consistent across kubelet restarts and therefore
across the watch calls where we watch for changes to the unix socket so we make
this part of Stub object instead of a parameter.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
c4c9d61d66 node: sample-dp: Handle re-registration for controlled registrations
In case `REGISTER_CONTROL_FILE` is specified, we want to ensure that the
registration is triggered by deletion of the control file. This is
applicable both when the registration happens for the first time and
subsequent ones because of kubelet restarts.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:07 +01:00
Swati Sehgal
6714e678d3 node: sample-dp: register by default and re-register on restarts
In issue: 115107 we added an environment variable to control the registration of sample
device plugin to kubelet. The intent of this patch is to ensure that the default
behaviour of the plugin is to register to kubelet (in case no environment
variable is specified).

In addition to that, we want to ensure that the plugin registers itself not just once.
It should re-register itself to kubelet in case of node reboot or kubelet restarts.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:14:09 +01:00
Kubernetes Prow Robot
c46d737ce5
Merge pull request #121280 from chendave/removecfg
kubeadm: remove `ClusterConfiguration` parameter from preflight check
2023-10-17 12:15:58 +02:00
Lubomir I. Ivanov
a45a813d5e kubeadm: fix "eliptic" typo in API package
Should be "elliptic".
2023-10-17 12:16:03 +03:00
lvedder
fced85b27a run hack scripts to update cyphar/filepath-securejoin to v0.2.4 correctly 2023-10-17 10:58:11 +02:00
Sai Ramesh Vanka
1715fc0ca0 Fix issue in enabling evented pleg feature gate
Fixes https://github.com/kubernetes/kubernetes/issues/120941
GetNewerThan() call isn't blocking until the pod status/cache is updated and returning the empty pod status.
Hence, whenever the `SyncLoop ADD/UPDATE/RECONCILE` functions are called multiple times in a very less time interval,
Kubelet calls multiple `CreateContainer` CRI api that results in the creation of duplicate containers within a given pod.
The initially created conainer keeps `Running` and the later container keeps `Exiting` and hence resulting the pod in `CrashLoopBackOff` state forever

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
2023-10-17 13:07:01 +05:30
Dave Chen
defda81bf8 kubeadm: remove ClusterConfiguration parameter from preflight check
Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-10-17 15:17:46 +08:00
Kubernetes Prow Robot
86676bce04
Merge pull request #121235 from dims/track-unmaintained-repo-mailru/easyjson
Track unmaintained repo - mailru/easyjson
2023-10-17 03:38:24 +02:00
Kubernetes Prow Robot
873eb57a4e
Merge pull request #119522 from YTGhost/validation-for-static-pods-name
add validation for static pods to have a name
2023-10-17 03:38:15 +02:00
olderTaoist
5d5958e338 fix ImageLocality plugin score is inconsistent 2023-10-17 09:38:03 +08:00
Kubernetes Prow Robot
c5815fee72
Merge pull request #113825 from harche/ep_comments
Keep PLEG interruptions in a separate interface
2023-10-17 03:37:57 +02:00
Kubernetes Prow Robot
0466ac05cc
Merge pull request #121276 from haircommander/compress-cri-owners
cri-api: compress OWNERS files
2023-10-17 02:29:17 +02:00
Kubernetes Prow Robot
63ae3084b7
Merge pull request #121176 from bzsuni/cleanup/e2e/expect_not_equal
remove deprecated framework.ExpectNotEqual for node
2023-10-17 02:29:06 +02:00