Commit Graph

123306 Commits

Author SHA1 Message Date
Ben Luddy
a4c2f78b28
Deduplicate set expression values in metav1.LabelSelector fuzzer.
Internal versions of ScaleStatus types use metav1.LabelSelector to represent label selectors, while
external versions use the textual representation. During conversion to and from text, match
expressions are sorted by key, and values for set operations "in" and "notin" are sorted and
deduplicated. This loss of order and duplication is detected by roundtrip testing.

The existing fuzz function for metav1.LabelSelector sorts match expressions by key and sorts, but
does not deduplicate, set expression values. That function now also deduplicates set expression
values so that fuzzed metav1.LabelSelectors can faithfully roundtrip through the textual label
selector representation.
2024-05-03 11:12:26 -04:00
Ed Bartosh
f24134d7b2 kubelet: DRA: add unit test for ClaimInfo and claimInfoCache 2024-05-03 13:30:31 +00:00
Ed Bartosh
6ce294558a kubelet: DRA: add stress test
The tests calls PrepareResources and UnprepareResources API in
parallel to help discover race conditions.
2024-05-03 13:30:29 +00:00
Kevin Klues
86a18d5333 kubelet: DRA: update manager test to adhere to new claiminfo cache APIs
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-05-03 13:28:37 +00:00
Kevin Klues
805e7c3434 kubelet: DRA: remove check to set pluginName to DriverName if not in ResourceHandle
It has always been validated that a ResourceHandle MUST have DriverName set, so
this check is unnecessary.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-05-03 13:23:29 +00:00
Kevin Klues
f80be2728e kubelet: DRA: change key of claimInfo cache to "namespace/claimname"
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-05-03 13:23:29 +00:00
Kevin Klues
639e887631 kubelet: DRA: add a reconcile loop to unprepare claims for deleted pods
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-05-03 13:23:29 +00:00
Kevin Klues
a8931c6c25 kubelet: DRA: update locking/checkpoint semantics of the claimInfo cache
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-05-03 13:23:27 +00:00
xin.li
d1dff562ad kubeam: increase ut coverage for addon/dns
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-05-03 21:21:06 +08:00
Kubernetes Prow Robot
f97ac220fd
Merge pull request #124666 from chengjoey/ut-for-123465
add integration test for pod with pvc has node-affinity to non-existent/illegal nodes
2024-05-03 05:50:00 -07:00
joey
a56cc6b100
add integration test for pod with pvc has node-affinity to non-existent/existent nodes
Signed-off-by: joey <zchengjoey@gmail.com>
2024-05-03 19:45:31 +08:00
Kubernetes Prow Robot
30ae12d018
Merge pull request #124684 from SataQiu/clean-20240503
kubeadm: remove unused CreateKubeConfigFileFunc type
2024-05-03 02:23:04 -07:00
SataQiu
1c82e03c2a kubeadm: remove unused CreateKubeConfigFileFunc type 2024-05-03 16:19:51 +08:00
Kubernetes Prow Robot
f1d63237ed
Merge pull request #124662 from seantywork/master
Updated & added visibility to apiserver x509 test certificates expiring this year
2024-05-02 20:46:06 -07:00
Taehoon Yoon
12795107a1 Updated & added visibility to apiserver x509 test certificates expiring this year 2024-05-02 23:23:03 +00:00
Kubernetes Prow Robot
201e6262c4
Merge pull request #124665 from neolit123/1.31-fix-windows-priv-preflight-check
kubeadm: update the IsPriviligedUser preflight check on Windows
2024-05-02 13:13:28 -07:00
Lubomir I. Ivanov
d105ddd350 kubeadm: update the IsPriviligedUser preflight check on Windows
Use GetCurrentProcessToken() instead of checking the groups of a user.

The Go stdlib way of fetching the groups of an user appears
to be failing on some Windows setups. Which could be a regression
in later Go versions, or simply the code does not work on certain
setups.
2024-05-02 20:23:02 +03:00
HirazawaUi
7a4531c5ba add ContainerStatusUnknown constant 2024-05-03 00:27:19 +08:00
Kubernetes Prow Robot
bb838fde5b
Merge pull request #124663 from saschagrunert/cri-api-security-contacts
Fix `cri-api` `SECURITY_CONTACTS` by removing a duplicate
2024-05-02 06:59:13 -07:00
Kubernetes Prow Robot
de662bb8e0
Merge pull request #124669 from gabesaba/test_gated
Add unit test which checks QueuedPodInfo.Gated matches its source
2024-05-02 05:54:25 -07:00
Kubernetes Prow Robot
d0e78ef70e
Merge pull request #123797 from saschagrunert/cri-staging
Add `cri-client` staging repository
2024-05-02 03:48:52 -07:00
Ed Bartosh
6ecf0da1a5 node_e2e: refactor RunTogether function 2024-05-02 13:41:47 +03:00
Gabe
9a8197d0c3 Add unit test which checks Gated is set/unset properly 2024-05-02 10:41:19 +00:00
Gabe
6c6be931ee revert unit test 2024-05-02 10:29:15 +00:00
Imre Rad
c7846fd24c gitRepo volume: directory must be max 1 level deep
More details on Hackerone #2266560
2024-05-02 08:26:26 +00:00
Sascha Grunert
aec3701067
Fix cri-api SECURITY_CONTACTS by removing a duplicate
`tallclair` is already part of the list, so we can remove that entry.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-02 09:21:35 +02:00
Sascha Grunert
fef2ecf97d
Add cri-client staging repository
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-02 09:20:17 +02:00
Kubernetes Prow Robot
82cd82aa15
Merge pull request #124645 from matthyx/ms
e2e lifecycle: reduce test flackiness
2024-05-01 16:19:55 -07:00
Davanum Srinivas
7187d9af81
address comments during review
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 18:01:25 -04:00
Guy Templeton
35ee060730
SIG Autoscaling - Update Leads 2024-05-01 22:58:31 +01:00
Matthias Bertschy
f7ea5f3fe1 e2e lifecycle: increase delay for restartable init containers
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 22:12:04 +02:00
Kubernetes Prow Robot
d387c0c903
Merge pull request #124654 from sttts/sttts-controlplane-aggregator
Step 9 – aggregator: move construction to generic controlplane
2024-05-01 12:10:46 -07:00
Dr. Stefan Schimanski
89bafb2fed
controlplane/apiserver: unify options package name
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-05-01 20:08:20 +02:00
Kubernetes Prow Robot
83cdd30873
Merge pull request #124619 from aramase/aramase/c/requestheader_cleanup
Remove unused NewSecure function in requestheader.go
2024-05-01 10:59:18 -07:00
Dr. Stefan Schimanski
1aa24b0951
Make linter happy
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-05-01 19:44:20 +02:00
Dr. Stefan Schimanski
1d0c72d15a
aggregator: move construction to generic controlplane
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-05-01 19:44:20 +02:00
Matthias Bertschy
8833b4def0 e2e lifecycle: fix finishing -> exiting
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 18:27:13 +02:00
Matthias Bertschy
851d149a88 e2e lifecycle: use millisecond resolution for logs
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 18:27:10 +02:00
Lubomir I. Ivanov
74e1438d86 kubeadm: add support for custom cert validity period in v1beta4
Allow the user to pass custom cert validity period with
ClusterConfiguration.CertificateValidityPeriod and
CACertificateValidityPeriod.

The defaults remain 1 year for regular cert and 10 years for CA.
Show warnings if the provided values are more than the defaults.

Additional changes:
- In "certs show-expiration" use HumanDuration() to print
more detailed durations instead of ShortHumanDuration().
- Add a new kubeadm util GetStartTime() which can be used
to consistently get a UTC time for tasks like writing certs
and unit tests.
- Update unit tests to validate the new customizable NotAfter.
2024-05-01 19:01:49 +03:00
Kubernetes Prow Robot
84a6ed4862
Merge pull request #124638 from sttts/sttts-kube-apiserver-config-split-up
kube-apiserver: split up config creation into generic and non-generic part
2024-05-01 08:51:39 -07:00
Kubernetes Prow Robot
e342ab05bb
Merge pull request #124463 from carlory/remove-fg-ConsistentHTTPGetHandlers
remove feature-gate ConsistentHTTPGetHandlers
2024-05-01 07:48:21 -07:00
Kubernetes Prow Robot
29a4812f03
Merge pull request #124080 from claudiubelu/skip-windows-tests
Skip failing Windows tests
2024-05-01 07:48:12 -07:00
Kubernetes Prow Robot
7143856f17
Merge pull request #123756 from saschagrunert/cri-approvers
Sync `cri-api` approvers with kubelet `cri` package
2024-05-01 07:48:03 -07:00
Davanum Srinivas
efdb2961b6
drop unused code pointed out by linter
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 09:03:57 -04:00
Davanum Srinivas
bf268f02a3
Remove gcp in-tree cloud provider and credential provider
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 09:03:53 -04:00
Mikalai Radchuk
80b5dcc1df admission-control: fix error message formatting
Signed-off-by: Mikalai Radchuk <radchuk.m@gmail.com>
2024-05-01 14:19:03 +02:00
Dr. Stefan Schimanski
d8c5f71403
kube-apiserver: split up config creation into generic and non-generic part
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-05-01 11:28:25 +02:00
Daman Arora
df417aa9b8 kubectl/describe/svc: refactor TestDescribeService
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-05-01 14:45:45 +05:30
Kubernetes Prow Robot
b041e54e70
Merge pull request #124644 from aroradaman/temp-pod-logs
e2e/network: stream pod logs for debugging
2024-05-01 01:10:24 -07:00
Kubernetes Prow Robot
6abdfb97c0
Merge pull request #124621 from sttts/sttts-controlplane-admission-initializers
kube-apiserver: split admission initializers into generic and non-generic
2024-05-01 01:10:15 -07:00