Commit Graph

787 Commits

Author SHA1 Message Date
Lukasz Szaszkiewicz
bb2db379c7 test/e2e/apimachinery/watchlist: select only wellknown secrets
the test should list only well-known secrets, as some platforms might add additional secrets specific to their namespace.
2024-12-06 13:51:48 +01:00
Ben Luddy
42d3e9752c Add E2E test for CBOR client compatibility with older apiservers.
Clients must be able to use CBOR without a guarantee that all apiservers support it. The apiserver
aggregation layer avoids changing in any way that would require an aggregated apiservers to be
updated. This end-to-end test verifies that a client's content negotiation behaviors continue to
work over time when communicating with a 1.17 sample-apiserver.
2024-11-07 09:22:44 -05:00
Patrick Ohly
33ea278c51 DRA: use v1beta1 API
No code is left which depends on the v1alpha3, except of course the code
implementing that version.
2024-11-06 13:03:19 +01:00
Kubernetes Prow Robot
69e30cd642 Merge pull request #128263 from ShazaAldawamneh/typecheck-retry-generation
CRD type check test fix
2024-10-31 13:53:33 +00:00
Joe Betz
c59fba7f26 Promote CRD field selector e2e test to conformance (#128109)
* Promote CRD field selector e2e test to conformance

* Fix release number for conformance test

* re-run update conformance
2024-10-30 21:19:25 +00:00
Shaza Aldawamneh
4b545779c2 CRD type check test fix
Co-authored-by: Ben Luddy <bluddy@redhat.com>
2024-10-22 15:04:07 +02:00
Lukasz Szaszkiewicz
06a15c5cf9 Promote WatchList feature to Beta (#128053)
* e2e/apimachinery/watchlist: always run WatchList e2e tests

* kube-controller-manager: enable WatchListClient

* kube-apiserver: promote WatchList feature to beta
2024-10-17 11:07:04 +01:00
Kubernetes Prow Robot
a454563a8d Merge pull request #127812 from p0lyn0mial/upstream-decode-list-blueprint
client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests
2024-10-14 13:10:21 +01:00
Lukasz Szaszkiewicz
7be192ae0b client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests 2024-10-14 08:48:32 +02:00
Kubernetes Prow Robot
c5f2fc05ad Merge pull request #127099 from jpbetz/object-selectors-ga
Add filtered informers tests for CRD field selectors
2024-10-02 01:39:49 +01:00
Joe Betz
cedae122cc Promote CustomResourceFieldSelectors to GA 2024-10-01 11:58:41 -04:00
Lukasz Szaszkiewicz
ae35048cb0 adds watchListEndpointRestrictions for watchlist requests (#126996)
* endpoints/handlers/get: intro watchListEndpointRestrictions

* consistencydetector/list_data_consistency_detector: expose IsDataConsistencyDetectionForListEnabled

* e2e/watchlist: extract common function for adding unstructured secrets

* e2e/watchlist: new e2e scenarios for convering watchListEndpointRestrict
2024-09-25 10:12:01 +01:00
Kubernetes Prow Robot
f9a57ba82d Merge pull request #126760 from ncdc/ncdc/emeritus
Move ncdc to emeritus
2024-09-20 21:01:58 +01:00
Kubernetes Prow Robot
f2700895a4 Merge pull request #127422 from srivastav-abhishek/go-vet-fix
Go vet fixes for gotip
2024-09-20 14:37:58 +01:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Lukasz Szaszkiewicz
0f933a0b14 test/apimachinery/watchlist: add scenario for metadata client's List method 2024-09-16 15:03:59 +02:00
Lukasz Szaszkiewicz
6d258660fd e2e/apimachinery/watchlist: slighty refactor unstructured tests 2024-09-16 15:03:59 +02:00
Devan Goodwin
b0c3d93d2f Fix invalid label use in validatingadmissionpolicy e2e
If this fallback code was hit, it would always fail due to invalid text
in a label.
2024-09-09 09:08:17 -03:00
Joe Betz
e9744c1ea2 Add field selector filtered informer e2e tests 2024-09-05 20:55:37 -04:00
Davanum Srinivas
52b1c77730 Fix etcd failures in ci-kubernetes-e2e-cos-gce-disruptive-canary
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-09-02 09:05:33 -04:00
Devan Goodwin
98114a9fdf Add required FieldManager for validatingadmissionpolicy e2e
This line would fail if the code path happened to execute, which may not
happen in upstream, but does trigger occasionally in OpenShift testing.
2024-08-29 09:10:47 -03:00
Andy Goldstein
0e228be96f Use emeritus_*
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2024-08-22 17:48:27 -04:00
Kubernetes Prow Robot
d770dd695a Merge pull request #121888 from SD-13/e2e-gomega-be-true-or-false
Enhance boolean assertions when fail
2024-08-20 04:24:42 -07:00
Andy Goldstein
3ab816dcab Move ncdc to emeritus
I am moving myself to emeritus as I am now firmly on the end-user side
of things.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2024-08-17 13:06:45 -04:00
Sujay
223aedcf6b enhance boolean assertions 2024-07-31 15:58:15 +00:00
Patrick Ohly
299ecde5cc DRA quota: add ResourceClaim v1.ResourceQuota limits
Dynamic resource allocation is similar to storage in the sense that users
create ResourceClaim objects to request resources, same as with persistent
volume claims. The actual resource usage is only known when allocating claims,
but some limits can already be enforced at admission time:

- "count/resourceclaims.resource.k8s.io" limits the number of ResourceClaim objects in
  a namespace; this is a generic feature that is already supported also without
  this commit.

- "resourceclaims" is *not* an alias - use "count/resourceclaims.resource.k8s.io"
  instead.

- <device-class-name>.deviceclass.resource.k8s.io/devices limits the number of
  ResourceClaim objects in a namespace such that the number of devices
  requested through those objects with that class does not exceed the limit.

A single request may cause the allocation of multiple devices. For exact
counts, the quota limit is based on the sum of those exact counts. For requests
asking for "all" matching devices, the maximum number of allocated devices per
claim is used as a worst-case upper bound.

Requests asking for "admin access" contribute to the quota.

DRA quota: remove admin mode exception
2024-07-23 18:52:34 +02:00
Dr. Stefan Schimanski
834cd7ca4a aggregator: split availability controller into local and remote part
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-07-21 17:31:24 +02:00
Lukasz Szaszkiewicz
367401cd85 Revert "e2e/apimachinery/watchlist: always run WatchList e2e tests"
This reverts commit be00cded2d.
2024-07-18 09:29:46 +02:00
Lukasz Szaszkiewicz
ba160f6ed3 test/apimachinery/watchlist: add scenario for dynamic client's List method 2024-07-15 11:56:02 +02:00
Lukasz Szaszkiewicz
951d325111 test/apimachinery/watchlist: move common functionality to separate functions 2024-07-15 11:56:02 +02:00
Feilian Xie
9cdacdc514 Mark a test case which sets up a sample-apiserver as serial due to potential conflicts with other test cases which do the same.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-09 19:28:14 +08:00
Kubernetes Prow Robot
79fee524e6 Merge pull request #125483 from wojtek-t/storage_readiness_hook
Implement resilient watchcache initialization post-start-hook
2024-07-01 13:48:29 -07:00
Wojciech Tyczyński
a5772bd425 Implement resilient watchcache initialization post-start-hook 2024-07-01 12:54:57 +02:00
Kubernetes Prow Robot
d729af9446 Merge pull request #125591 from p0lyn0mial/upstream-promote-watch-list-to-beta
Promote WatchList feature to Beta
2024-07-01 02:31:14 -07:00
Matthieu MOREL
7bccbaf996 fix: enable and fixes rules from testifylint on test package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-06-30 05:44:47 +00:00
Lukasz Szaszkiewicz
be00cded2d e2e/apimachinery/watchlist: always run WatchList e2e tests 2024-06-27 08:49:59 +02:00
yintong.huang
2db1b321e0 drop deprecated PollWithContext and adopt PollUntilContextTimeout instead
Signed-off-by: yintong.huang <yintong.huang@daocloud.io>
2024-06-21 19:23:31 +08:00
Lukasz Szaszkiewicz
6cc90d76db e2e/apimachinery/watchlist: when comparing streamed data do not call the API directly instead use the added data. 2024-06-14 13:56:05 +02:00
Lukasz Szaszkiewicz
5b76642909 e2e/apimachinery/watchlist: test if WatchList is requested by client-go's List method when WatchListClient is enabled 2024-06-14 12:52:50 +02:00
Lukasz Szaszkiewicz
ba89ae3ddf e2e/apimachinery/watchlist: uses SetFeatureDuringTest 2024-05-29 12:45:18 +02:00
Lukasz Szaszkiewicz
9248cccc27 replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate 2024-05-21 08:47:31 +02:00
Maciej Szulik
ceb0387e39 Update PodSecurityLevel used during tests 2024-05-15 16:50:30 +02:00
Kubernetes Prow Robot
71d4e4bede Merge pull request #124362 from carlory/clean-e2efeature-labels
remove ScopeSelectors e2e feature label
2024-05-10 06:48:46 -07:00
Joe Betz
6ba3b318d3 Add version testing 2024-05-07 09:11:32 -04:00
Joe Betz
d16ff3d77f Promote CRD field selectors to beta 2024-05-06 11:53:03 -04:00
Kubernetes Prow Robot
76de052680 Merge pull request #124346 from jwcesign/master
upgrade: upgrade dependencies github.com/prometheus/common to the newest version
2024-04-22 07:11:25 -07:00
huweiwen
6ec421e2cf test/e2e: do not use global variable for image
We have "-kube-test-repo-list" command line flag to override the image registry. If we store it in global variable, then that overriding cannot take effect.

And this can cause puzzling bugs, e.g.: containerIsUnused() function will compare incorrect image address.
2024-04-22 19:29:39 +08:00
carlory
a8f7ff8ad6 remove ScopeSelectors e2e feature label 2024-04-22 18:15:10 +08:00
jwcesign
f0aa62bc96 upgrade: upgrade dependencies github.com/prometheus/common to the newest version
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-20 09:53:16 +08:00
cici37
4048598620 Change the API operation e2e test to conformance test. 2024-03-14 20:59:41 +00:00