Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
1707 commits
Select commit Hold shift + click to select a range
e7425cf
improve loadbalancer IPMode testing
aojea May 31, 2024
87a7f22
bump kube-network-policies to v0.3.0
aojea Jun 24, 2024
0d17892
Merge pull request #123184 from googs1025/delete_repeat_comments
k8s-ci-robot Jun 24, 2024
d5dd5b1
Merge pull request #125317 from jpbetz/fix-nop-empty-map
k8s-ci-robot Jun 24, 2024
d236a91
Merge pull request #125560 from jpbetz/apply-gen-fake
k8s-ci-robot Jun 24, 2024
921fb0b
Merge pull request #125237 from aojea/ipmode_integration
k8s-ci-robot Jun 25, 2024
326e0a4
Reject CBOR simple values other than true, false, and null.
benluddy May 9, 2024
037ba12
Encode byte array to CBOR as array of integer, not byte string.
benluddy Jun 10, 2024
ba19ecb
Merge pull request #123298 from henry118/spell
k8s-ci-robot Jun 25, 2024
535e833
Merge pull request #125575 from dashpole/update_otel_27
k8s-ci-robot Jun 25, 2024
5b6fe2f
e2e: node: ensure no pod leaks in the container_manager test
ffromani Mar 5, 2024
cb8cbc6
cacher: returns an error when watch list was requested and storage.Re…
p0lyn0mial Jun 17, 2024
8021292
Merge pull request #124025 from saschagrunert/log-container-status
k8s-ci-robot Jun 25, 2024
8cf93c8
Merge pull request #125405 from p0lyn0mial/upstream-consistent-read-f…
k8s-ci-robot Jun 25, 2024
16e2451
drop OWNERS in kubeadm
dims Jun 25, 2024
636f38a
e2e_kubeadm: move chendave to emeritus
neolit123 Jun 25, 2024
639f869
scheduler: add FIFO queue
pohly Apr 1, 2024
1716207
ktesting: add Step
pohly Apr 28, 2024
dea1675
scheduler: AddEventHandler for assume cache
pohly Apr 1, 2024
9a6f3b9
scheduler: central ResourceClaim assume cache
pohly Apr 1, 2024
1b63639
DRA scheduler: use assume cache to list claims
pohly Jun 15, 2024
a95f636
Merge pull request #125693 from neolit123/1.31-remove-chendave
k8s-ci-robot Jun 25, 2024
ea6ca27
clean: add nodeinfo to cache
likakuli Jun 25, 2024
900457c
ktesting: improve per-test log output
pohly Jun 25, 2024
7f87629
DRA e2e: fix error reporting in test driver
pohly Jun 25, 2024
dbe4c09
Bump github.com/fxamacker/cbor/v2 to v2.7.0.
benluddy Jun 24, 2024
2da9e66
resourceclaim controller: add missing log output
pohly Jun 15, 2024
9d9b6fb
Merge pull request #125261 from bart0sh/PR145-DevicePluginCDIDevices-…
k8s-ci-robot Jun 25, 2024
8b72795
Merge pull request #125536 from this-is-yaash/documentation-enhance
k8s-ci-robot Jun 25, 2024
d081fd5
Validate stored messageExpressions with the correct CEL environment
sbueringer Jun 25, 2024
c29a196
add tests
HirazawaUi Jun 23, 2024
1095af8
Remove test dependency on swwagger.json to fix client-go repo
jpbetz Jun 25, 2024
8c478a0
Merge pull request #124595 from pohly/dra-scheduler-assume-cache-even…
k8s-ci-robot Jun 25, 2024
34dd200
Merge pull request #125263 from jpbetz/fix-nop-apply
k8s-ci-robot Jun 25, 2024
0913b90
Merge pull request #125402 from iholder101/swap/skip-e2e-test-if-no-swap
k8s-ci-robot Jun 25, 2024
d198961
Merge pull request #125418 from benluddy/cbor-byte-array-to-array
k8s-ci-robot Jun 25, 2024
2200f5e
Merge pull request #125446 from AkihiroSuda/rro-e2e-remove-withserial
k8s-ci-robot Jun 25, 2024
59673f0
Merge pull request #125578 from nayihz/fix_sche_queue_update
k8s-ci-robot Jun 25, 2024
c2fc338
Merge pull request #125667 from p0lyn0mial/upstream-watchlist-off-whe…
k8s-ci-robot Jun 25, 2024
beb48b7
Merge pull request #125669 from benluddy/cbor-bump-v2.7.0
k8s-ci-robot Jun 25, 2024
d0579b6
Merge pull request #125683 from likakuli/fix-benchmarkupdatesnapshot
k8s-ci-robot Jun 25, 2024
3e03707
Move public key getter to interface
liggitt May 29, 2024
403301b
apiserver: Add API emulation versioning.
siyuanfoundation Jan 20, 2024
701e5fc
Add composition flags for emulation version and feature gate.
siyuanfoundation May 30, 2024
4352c4a
Add version mapping in ComponentGlobalsRegistry.
siyuanfoundation Jun 1, 2024
379676c
add DefaultComponentGlobalsRegistry flags in ServerRunOptions
siyuanfoundation Jun 10, 2024
727fe16
Merge pull request #125421 from benluddy/cbor-simple-values
k8s-ci-robot Jun 25, 2024
d48a303
Merge pull request #125537 from seans3/rc-fallback-log
k8s-ci-robot Jun 25, 2024
f848e4d
Merge pull request #125679 from dims/add-sig/etcd-labels-for-related-…
k8s-ci-robot Jun 25, 2024
85ede67
Merge pull request #125681 from aojea/netpol_3
k8s-ci-robot Jun 25, 2024
38f87df
Enable JSON-compatible base64 encoding of []byte for CBOR.
benluddy Jun 10, 2024
2029bba
Remove temporary mechanism for skipping CBOR tests.
benluddy Jun 26, 2024
7a6062f
Merge pull request #122891 from siyuanfoundation/api-comp-ver1
k8s-ci-robot Jun 26, 2024
c6fd466
Merge pull request #125703 from sbueringer/pr-fix-message-expression-…
k8s-ci-robot Jun 26, 2024
df17ea2
Revert "apiserver/storage/cacher: consistent read from cache supports…
pacoxu Jun 26, 2024
fb0195d
Merge pull request #123428 from atiratree/UnhealthyPodEvictionPolicy-GA
k8s-ci-robot Jun 26, 2024
10e3ec8
Merge pull request #125706 from jpbetz/fix-fixture-test
k8s-ci-robot Jun 26, 2024
fc55fec
ktesting: support capturing log output
pohly Jun 25, 2024
719a49c
scheduler: fix klog.KObjSlice when applied to []*NodeInfo
pohly Jun 25, 2024
0880712
update publishing rules to use go1.22.4 for all branches
cpanato Jun 26, 2024
01f9712
Merge pull request #125419 from benluddy/cbor-byteslice-base64
k8s-ci-robot Jun 26, 2024
e073148
Merge pull request #125713 from pacoxu/revert-125405-upstream-consist…
k8s-ci-robot Jun 26, 2024
084d6c4
Merge pull request #125699 from pohly/scheduler-framework-logging
k8s-ci-robot Jun 26, 2024
c6ef512
apiserver/storage: decrease running time of RunWatchSemantics
p0lyn0mial Jun 26, 2024
1c111c6
Remove 5 seconds from TestWatchStreamSeparation execution by reusing …
serathius Jun 26, 2024
4b2fafc
Merge pull request #125722 from serathius/remove-5s
k8s-ci-robot Jun 26, 2024
5f8fb17
added resourceclaim_controller log info
googs1025 Jun 22, 2024
cc7063e
kube-controller-manager: refactor watchlist unit tests
p0lyn0mial Jan 19, 2024
662672a
storage/cacher/cacher_whitebox_test.go: deflake TestWaitUntilFreshAnd…
p0lyn0mial Jun 26, 2024
cc5a186
Disable recognition of Binary(Unm|M)arshaler in CBOR serializer.
benluddy Jun 10, 2024
7996836
Merge pull request #125717 from cpanato/update-rules
k8s-ci-robot Jun 26, 2024
66126bb
Merge pull request #125721 from p0lyn0mial/upstream-cacher-tests-decr…
k8s-ci-robot Jun 26, 2024
e94047c
Revert "update OpenTelemetry dependencies"
dashpole Jun 26, 2024
56fdcf0
Revert "update unwanted dependencies"
dashpole Jun 26, 2024
8a62765
Revert "update go workspace"
dashpole Jun 26, 2024
7bcb2a9
Revert "fix tracing integration test"
dashpole Jun 26, 2024
e89a2bf
./hack/update-vendor.sh
dashpole Jun 26, 2024
44c1a0e
Merge pull request #124667 from linxiulei/trim
k8s-ci-robot Jun 26, 2024
5081ba4
Fix test flakes for TestWatchSemantics
wojtek-t Jun 26, 2024
4bc4618
update kube-network-policies to v0.4.0
aojea Jun 26, 2024
8cb4a19
hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
pohly Jun 26, 2024
5ba8773
Ignore reported goroutine leak during SPDY shutdown
seans3 Jun 26, 2024
027630a
fix: increases timeout on CRD update check
nilekhc Jun 26, 2024
e57f8ad
Merge pull request #125439 from Octopusjust/k8s-pr22
k8s-ci-robot Jun 26, 2024
b29dce0
Merge pull request #125627 from yt-huang/clean-up
k8s-ci-robot Jun 26, 2024
437f6e9
Merge pull request #125641 from nirs/sample-cli-plugin-help
k8s-ci-robot Jun 26, 2024
2b122bc
Merge pull request #125650 from mjudeikis/mjudeikis/generic-controlplane
k8s-ci-robot Jun 26, 2024
a4b8d0f
Merge pull request #125731 from dashpole/revert_otel
k8s-ci-robot Jun 26, 2024
126a47d
Add KUBE_EMULATED_VERSION env variable to set the emulated-version of…
siyuanfoundation Jun 26, 2024
7dbc2a9
pod-resize-scheduler-tests: fix ci-kubernetes-e2e-ec2
Jun 13, 2024
2d3e6f8
Add OWNERS to test/fuzz.
benluddy Jun 25, 2024
25a4307
Merge pull request #123468 from ffromani/fix-mm-metrics-test
k8s-ci-robot Jun 26, 2024
8637867
Merge pull request #125422 from benluddy/cbor-disable-binarymarshaler
k8s-ci-robot Jun 26, 2024
1d51766
Merge pull request #125698 from pohly/dra-log-output
k8s-ci-robot Jun 26, 2024
c5aa8fd
bump github.com/moby/spdystream to v0.3.0
BenTheElder Jun 26, 2024
59d90eb
Make the output of `kubectl describe service` more informative (#125117)
tnqn Jun 26, 2024
c7e3163
Merge pull request #125733 from wojtek-t/test_watch_semantics_flake
k8s-ci-robot Jun 26, 2024
cd19796
Merge pull request #125475 from AkihiroSuda/rro
k8s-ci-robot Jun 26, 2024
a3a4f96
Merge pull request #125492 from Nordix/esotsal/123951
k8s-ci-robot Jun 26, 2024
3084c15
Merge pull request #125723 from p0lyn0mial/upstream-refactor-watch-li…
k8s-ci-robot Jun 26, 2024
9626cd3
Merge pull request #125741 from nilekhc/svm-crd-flake
k8s-ci-robot Jun 26, 2024
11446a3
Merge pull request #125745 from BenTheElder/ping-ping
k8s-ci-robot Jun 26, 2024
152a0ca
Merge pull request #125712 from benluddy/remove-cbor-test-skips
k8s-ci-robot Jun 27, 2024
905fdda
Merge pull request #125739 from seans3/ignore-portforward-leak
k8s-ci-robot Jun 27, 2024
4805074
Merge pull request #125742 from siyuanfoundation/api-comp-ver1
k8s-ci-robot Jun 27, 2024
327324a
fix base64 invalid argument when running gce util.sh
chengjoey Apr 9, 2024
8ce056d
add DefaultSelector method ut
googs1025 Jun 26, 2024
921b69b
Merge pull request #125582 from chrischdi/pr-kubeadm-kep-4471
k8s-ci-robot Jun 27, 2024
bffc02b
Merge pull request #125738 from pohly/hack-local-up-cluster-cors-fix
k8s-ci-robot Jun 27, 2024
210ab3c
Merge pull request #124241 from chengjoey/fix/gce-base64
k8s-ci-robot Jun 27, 2024
d4c18e5
Merge pull request #125709 from benluddy/test-fuzz-owners
k8s-ci-robot Jun 27, 2024
6190152
kubeadm: update the long description about 'kubeadm config' command
SataQiu Jun 27, 2024
4411a07
Make CRI service interface function arguments consistent
saschagrunert Jun 27, 2024
f9b1570
apiserver/storage: storagetesting.RunTestList validates RemainingItem…
p0lyn0mial Jun 27, 2024
e31d2ce
Merge pull request #125736 from aojea/netpol_v0.4.0
k8s-ci-robot Jun 27, 2024
92e0db2
Merge pull request #125640 from googs1025/resourceclaim_controller_lo…
k8s-ci-robot Jun 27, 2024
7210f2a
Merge pull request #125752 from SataQiu/fix-cmd-desc-20240627
k8s-ci-robot Jun 27, 2024
7120b39
kubeadm: improve the error/warning messages of 'validateSupportedVers…
SataQiu Jun 27, 2024
24478e0
Merge pull request #125729 from p0lyn0mial/upstream-deflake-test-wait…
k8s-ci-robot Jun 27, 2024
95c7621
Merge pull request #125755 from saschagrunert/named-param-service
k8s-ci-robot Jun 27, 2024
55c9b58
add new metric to record the latency to allocate an IP address
aojea May 21, 2024
f06b355
replace iptree on the repairip controller
aojea May 20, 2024
b5cfccb
replace iptree on the servicecidr controller
aojea May 20, 2024
b04ca18
replace the iptree on the ipallocator
aojea May 21, 2024
f36975b
remove iptree from tree
aojea May 20, 2024
1017222
test enable and disable ServiceCIDR feature
aojea May 20, 2024
6639411
add log to migration test
aojea May 20, 2024
8490273
performance test to compare allocators
aojea May 21, 2024
418f98a
repairip wait for the default servicecidr
aojea Jun 18, 2024
7c4726d
allow to shutdown quickly the apiserver
aojea Jun 19, 2024
9b1bad4
implement dual write on Service ClusterIP allocator
aojea Jun 16, 2024
fed0517
fix typo enque should be enqueue
aojea Jun 27, 2024
967ad95
use an AND to define the allocator readiness
aojea Jun 27, 2024
69360e9
fix wrong comment on method to detect IPs out of ranges
aojea Jun 27, 2024
476b415
simplify test code using the if with a short statement
aojea Jun 27, 2024
194609b
fix comment on integration test
aojea Jun 27, 2024
29defc1
Merge pull request #125756 from p0lyn0mial/upstream-improve-run-test-…
k8s-ci-robot Jun 27, 2024
09e8598
apiserver/storage/cacher: cache supports pagination
p0lyn0mial Jun 10, 2024
c259fe2
flowcontrol/request/list_work_estimator: sync shouldDelegateList
p0lyn0mial Jun 17, 2024
2f9660d
apiserver/storage/watchcache: WaitUntilFreshAndList supports path prefix
p0lyn0mial Jun 26, 2024
7e52d34
code-generator/client-gen: add example with core group
sttts May 28, 2024
6b2f779
code-generator/client-gen: decouple core group from package name 'api'
sttts May 28, 2024
be2cf7e
code-generator/client-gen: add example with single package api/v1
sttts May 28, 2024
676d989
code-generator/examples: fix json tags
sttts Jun 4, 2024
ac3b764
make codegen
sttts Jun 4, 2024
35ccdc8
Bump `prometheus/common to` v0.55.0
dims Jun 27, 2024
41f2182
Merge pull request #125758 from SataQiu/improve-validateSupportedVers…
k8s-ci-robot Jun 27, 2024
377a3f7
Update moby/spdystream to v0.4.0
dims Jun 27, 2024
91c4aac
document the API with the details about the allocation CIDR ranges
aojea Jun 27, 2024
df20694
Merge pull request #125600 from thockin/plus_default_deprecated_volumes
k8s-ci-robot Jun 27, 2024
991e7a8
Merge pull request #125646 from HirazawaUi/apply-null
k8s-ci-robot Jun 27, 2024
ef1d28a
Merge pull request #125177 from liggitt/dynamic-public-key
k8s-ci-robot Jun 27, 2024
010409a
Merge pull request #125730 from p0lyn0mial/upstream-bring-back-consis…
k8s-ci-robot Jun 27, 2024
742b2f7
Merge pull request #125766 from dims/update-moby/spdystream-to-v0.4.0
k8s-ci-robot Jun 27, 2024
2aeace5
generated
aojea Jun 27, 2024
2c6daa4
Merge pull request #125162 from sttts/sttts-code-generator-core-group
k8s-ci-robot Jun 27, 2024
5e6a493
KEP-4633: Allow health-only anonymous auth mode.
vinayakankugoyal May 16, 2024
bec82cc
Merge pull request #125479 from kundan2707/kube_proxy_update
k8s-ci-robot Jun 28, 2024
522e2e5
Merge pull request #124917 from vinayakankugoyal/kep4633
k8s-ci-robot Jun 28, 2024
4c44efe
Merge pull request #125759 from dims/bump-prometheus/common-v0.55.0
k8s-ci-robot Jun 28, 2024
f242115
Merge pull request #125714 from googs1025/add_defaultSelector_ut
k8s-ci-robot Jun 28, 2024
ac82ba6
update openapi
aojea Jun 28, 2024
d40676c
Merge pull request #122047 from aojea/treeless
k8s-ci-robot Jun 28, 2024
ac4ff12
Merge remote-tracking branch 'openshift/master' into rebase-2024-06-28
soltysh Jun 28, 2024
b860334
UPSTREAM: 74956: apiserver: switch authorization to use protobuf client
mfojtik Oct 29, 2020
a686f43
UPSTREAM: 93286: wait for apiservices on startup
deads2k Oct 29, 2020
1796447
UPSTREAM: <carry>: filter out CustomResourceQuota paths from OpenAPI
sttts Oct 29, 2020
7c19974
UPSTREAM: <carry>: patch aggregator to allow delegating resources
mfojtik Oct 29, 2020
bf83673
UPSTREAM: <carry>: remove apiservice from sync in CRD registration wh…
mfojtik Oct 29, 2020
e9c9ffd
UPSTREAM: <carry>: hardcoded restmapper with a few entries to reboots…
deads2k Oct 29, 2020
a275100
UPSTREAM: <carry>: Extend NodeLogQuery feature
aravindhp Apr 12, 2023
9ee961c
UPSTREAM: <carry>: kube-controller-manager: add service serving cert …
deads2k Oct 29, 2020
5297045
UPSTREAM: <carry>: kube-controller-manager: allow running bare kube-c…
deads2k Oct 29, 2020
4a7999f
UPSTREAM: <carry>: kube-controller-manager: exclude some origin resou…
deads2k Oct 29, 2020
d1650b2
UPSTREAM: <carry>: kube-apiserver: add our immortal namespaces direct…
deads2k Oct 29, 2020
ca9f4c0
UPSTREAM: <carry>: openshift-kube-apiserver: add kube-apiserver patches
deads2k Oct 29, 2020
4fdec5a
UPSTREAM: <carry>: openshift-kube-apiserver: add openshift-kube-apise…
deads2k Oct 29, 2020
4689cac
UPSTREAM: <carry>: kube-apiserver: priorize some CRD groups over others
deads2k Oct 29, 2020
72a5e8b
UPSTREAM: <carry>: kube-apiserver: wire through isTerminating into ha…
sttts Oct 29, 2020
33d86e2
UPSTREAM: <carry>: create termination events
sttts Oct 29, 2020
fe9872e
UPSTREAM: <carry>: bootstrap-rbac-policy: move over .well-known rules
sttts Oct 29, 2020
4950ecb
UPSTREAM: <carry>: warn only about unknown feature gates
sttts Oct 29, 2020
180afbd
UPSTREAM: <carry>: disable AES24, not supported by FIPS
rphillips Oct 29, 2020
c205422
UPSTREAM: <carry>: Remove excessive e2e logging
p0lyn0mial Oct 29, 2020
fb03159
UPSTREAM: <carry>: conditionally fill the UserAgent from the currentl…
p0lyn0mial Oct 29, 2020
1fb08af
UPSTREAM: <carry>: refactor/improve CRD publishing e2e tests in an HA…
p0lyn0mial Oct 29, 2020
b277357
UPSTREAM: <carry>: Add OpenShift tooling, images, configs and docs
marun Oct 29, 2020
0e0d144
UPSTREAM: <carry>: provide events, messages, and bodies for probe fai…
deads2k Mar 9, 2021
564f3fa
UPSTREAM: <carry>: emit event when readyz goes true
deads2k Jun 14, 2021
6eee8fb
UPSTREAM: <carry>: allows for switching KS to talk to Kube API over l…
p0lyn0mial Mar 24, 2021
beb7fd1
UPSTREAM: <carry>: add management support to kubelet
rphillips Mar 29, 2021
8dda8ac
UPSTREAM: <carry>: allow kubelet to self-authorize metrics scraping
deads2k Mar 1, 2021
04fe2a7
UPSTREAM: <carry>: use hardcoded metrics scraping authorizer for dele…
deads2k Feb 22, 2021
8f78286
UPSTREAM: <carry>: kube-apiserver: ignore SIGTERM/INT after the first…
sttts Feb 8, 2021
ee1171a
UPSTREAM: <carry>: noderestrictions: add node-role.kubernetes.io/* to…
sttts Oct 29, 2020
a74123a
UPSTREAM: <carry>: export HandleFlags
soltysh Jul 21, 2021
5d37f6d
UPSTREAM: <carry>: APIRequestCount Handler
sanchezl Feb 24, 2021
9c29eb5
UPSTREAM: <carry>: allows for switching KCM to talk to Kube API over …
p0lyn0mial Mar 4, 2021
b14f435
UPSTREAM: <carry>: Ensure service ca is mounted for projected tokens
marun May 10, 2021
51a8037
UPSTREAM: <carry>: apiserver: add system_client=kube-{apiserver,cm,s}…
sttts Jun 3, 2021
26d2057
UPSTREAM: <carry>: allow type mutation for specific secrets
tkashem Mar 29, 2024
611517a
UPSTREAM: <carry>: use host etcd
soltysh Mar 12, 2024
addf154
UPSTREAM: <carry>: openshift's kube-apiserver is in openshift-kube-ap…
deads2k Jul 9, 2021
43c01eb
UPSTREAM: 103612: tolerate additional, but congruent, events for inte…
deads2k Jul 9, 2021
784963c
UPSTREAM: <carry>: add a way to inject a vulnerable, legacy service-c…
deads2k Jul 9, 2021
336ca5d
UPSTREAM: <carry>: Revert "Remove Endpoints write access from aggrega…
danwinship Aug 23, 2021
ea69433
UPSTREAM: <carry>: skip posting failures to aggregated APIs to avoid …
p0lyn0mial Aug 24, 2021
dd0b058
UPSTREAM: <carry>: send Retry-After when not ready with a caller opt in
tkashem Aug 25, 2021
a7f4d69
UPSTREAM: <carry>: add max_housekeeping_interval
rphillips Jul 7, 2021
d7e2dd8
UPSTREAM: <carry>: sets X-OpenShift-Internal-If-Not-Ready HTTP Header…
p0lyn0mial Aug 26, 2021
612a9f9
UPSTREAM: <carry>: Release lock on KCM and KS termination
tnozicka Oct 29, 2020
9e574aa
UPSTREAM: <carry>: use console-public config map for console redirect
atiratree Jan 12, 2022
705b99b
UPSTREAM: <carry>: fix [sig-auth] ServiceAccounts no secret-based ser…
tkashem Apr 29, 2022
e7b834c
UPSTREAM: <carry>: optionally enable retry after until apiserver is r…
tkashem Aug 17, 2022
267f2a0
UPSTREAM: <carry>: make the PSA workload admission warnings honor the…
deads2k Oct 17, 2022
578b4fc
UPSTREAM: <carry>: PSa metrics: log platform namespaces in audit denies
stlaz Jan 16, 2023
f0d8699
UPSTREAM: 115328: annotate early and late requests
tkashem Mar 13, 2023
1516a5c
UPSTREAM: <carry>: disable load balancing on created cgroups when man…
haircommander Mar 20, 2023
7782894
UPSTREAM: <carry>: add shutdown annotation to response header
tkashem Apr 10, 2023
eeaef7d
UPSTREAM: <carry>: APISelfSubjectReview: only test v1beta1 API
bertinatto Apr 3, 2023
223459e
UPSTREAM: <carry>: don't fail integration due to too many goroutines
bertinatto Mar 28, 2023
c617062
UPSTREAM: <carry>: Export internal code from k8s.io/apimachinery/pkg/…
bertinatto Apr 27, 2023
0ea03d5
UPSTREAM: <carry>: when only this kube-apiserver can fulfill the kube…
deads2k Jun 23, 2023
383810b
UPSTREAM: <carry>: merge v3 openapi discovery and specs for special g…
atiratree Aug 3, 2023
b01150f
UPSTREAM: <carry>: selfsubjectaccessreview: grant user:full scope to …
liouk Mar 1, 2023
da42cba
UPSTREAM: <carry>: retry etcd Unavailable errors
p0lyn0mial Aug 29, 2023
5f82c8e
UPSTREAM: <carry>: Export cpu stats of ovs.slice via prometheus
MarSik Aug 31, 2023
16e4750
UPSTREAM: <carry>: Do not allow nodes to set forbidden openshift labels
harche Oct 4, 2023
c7379f5
UPSTREAM: <carry>: advertise shared cpus for mixed cpus feature
Tal-or Nov 9, 2023
975f377
UPSTREAM: <carry>: temporarily disable reporting e2e text bugs and en…
soltysh Dec 2, 2023
309219d
UPSTREAM: <carry>: Backport IP and CIDR CEL base for 1.28
JoelSpeed Dec 18, 2023
73c2a99
UPSTREAM: <carry>: add new admission for handling shared cpus
Tal-or Nov 12, 2023
bd044ce
UPSTREAM: <carry>: Add openshift feature gates to kube-apiserver - in…
swghosh Mar 15, 2024
a1a13c7
UPSTREAM: <carry>: crd: add ClusterOperator condition message table c…
sttts Jun 16, 2021
9773698
UPSTREAM: <carry>: extend termination events
tkashem Dec 15, 2023
c7948ad
UPSTREAM: <carry>: skip storage tests
soltysh May 29, 2024
c7d26b1
UPSTREAM: <carry>: skip PodLifecycleSleepAction test
soltysh May 29, 2024
4e91906
UPSTREAM: <carry>: Disable e2e tests that need PersistentVolumeLabel
jsafrane Jun 6, 2024
4bfbe59
UPSTREAM: 125337: ccm integration test for node status addresses and …
aojea Jun 3, 2024
c81baf7
UPSTREAM: 125337: document kubelet node-ip with cloud provider external
aojea Jun 5, 2024
23a4f29
UPSTREAM: 125337: add more testing for node.status.addresses
aojea Jun 6, 2024
5a530c5
UPSTREAM: 125337: Account for differences in fork test suite
JoelSpeed Jun 13, 2024
87d9467
UPSTREAM: <carry>: Disable PersistentVolumeLabel by default
jsafrane Jun 18, 2024
d1d4407
UPSTREAM: <carry>: don't fail integration due to too many goroutines …
soltysh Jun 19, 2024
7a4490c
UPSTREAM: <carry>: extend termination events
soltysh Jun 20, 2024
8d8a2c4
UPSTREAM: <carry>: necessary fixes
soltysh Jun 28, 2024
4edc33a
UPSTREAM: <drop>: hack/update-vendor.sh + make update
soltysh Jun 28, 2024
752ea39
UPSTREAM: 93286: wait for apiservices on startup
soltysh Jun 28, 2024
f2caaf3
UPSTREAM: <carry>: openshift-kube-apiserver: add kube-apiserver patches
soltysh Jun 28, 2024
68201ac
UPSTREAM: <carry>: emit event when readyz goes true
soltysh Jun 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apiserver/storage: decrease running time of RunWatchSemantics
  • Loading branch information
p0lyn0mial committed Jun 26, 2024
commit c6ef512b5bb15aa3c2430ae03dad91e16a342bce
109 changes: 63 additions & 46 deletions staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

apiequality "k8s.io/apimachinery/pkg/api/equality"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
Expand Down Expand Up @@ -1236,6 +1237,7 @@ func RunSendInitialEventsBackwardCompatibility(ctx context.Context, t *testing.T
// - false indicates the value of the param was set to "false" by a test case
// - true indicates the value of the param was set to "true" by a test case
func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interface) {
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchList, true)
trueVal, falseVal := true, false
addEventsFromCreatedPods := func(createdInitialPods []*example.Pod) []watch.Event {
var ret []watch.Event
Expand All @@ -1244,16 +1246,16 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
}
return ret
}
initialEventsEndFromLastCreatedPod := func(createdInitialPods []*example.Pod) []watch.Event {
return []watch.Event{{
initialEventsEndFromLastCreatedPod := func(createdInitialPods []*example.Pod) watch.Event {
return watch.Event{
Type: watch.Bookmark,
Object: &example.Pod{
ObjectMeta: metav1.ObjectMeta{
ResourceVersion: createdInitialPods[len(createdInitialPods)-1].ResourceVersion,
Annotations: map[string]string{metav1.InitialEventsAnnotationKey: "true"},
},
},
}}
}
}
scenarios := []struct {
name string
Expand All @@ -1267,19 +1269,19 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
initialPods []*example.Pod
podsAfterEstablishingWatch []*example.Pod

expectedInitialEvents func(createdInitialPods []*example.Pod) []watch.Event
expectedInitialEventsBookmark func(createdInitialPods []*example.Pod) []watch.Event
expectedEventsAfterEstablishingWatch func(createdPodsAfterWatch []*example.Pod) []watch.Event
expectedInitialEvents func(createdInitialPods []*example.Pod) []watch.Event
expectedInitialEventsBookmarkWithMinimalRV func(createdInitialPods []*example.Pod) watch.Event
expectedEventsAfterEstablishingWatch func(createdPodsAfterWatch []*example.Pod) []watch.Event
}{
{
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=unset",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmark: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=unset",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmarkWithMinimalRV: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
},
{
name: "allowWatchBookmarks=true, sendInitialEvents=false, RV=unset",
Expand All @@ -1306,15 +1308,15 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
},

{
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=0",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
resourceVersion: "0",
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmark: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=0",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
resourceVersion: "0",
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmarkWithMinimalRV: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
},
{
name: "allowWatchBookmarks=true, sendInitialEvents=false, RV=0",
Expand Down Expand Up @@ -1344,15 +1346,15 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
},

{
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=1",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
resourceVersion: "1",
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmark: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=1",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
resourceVersion: "1",
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmarkWithMinimalRV: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
},
{
name: "allowWatchBookmarks=true, sendInitialEvents=false, RV=1",
Expand Down Expand Up @@ -1384,15 +1386,15 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
},

{
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=useCurrentRV",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
useCurrentRV: true,
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmark: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
name: "allowWatchBookmarks=true, sendInitialEvents=true, RV=useCurrentRV",
allowWatchBookmarks: true,
sendInitialEvents: &trueVal,
useCurrentRV: true,
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
expectedInitialEvents: addEventsFromCreatedPods,
expectedInitialEventsBookmarkWithMinimalRV: initialEventsEndFromLastCreatedPod,
podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")},
expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
},
{
name: "allowWatchBookmarks=true, sendInitialEvents=false, RV=useCurrentRV",
Expand Down Expand Up @@ -1439,14 +1441,11 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac
}
for idx, scenario := range scenarios {
t.Run(scenario.name, func(t *testing.T) {
t.Parallel()
// set up env
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchList, true)
if scenario.expectedInitialEvents == nil {
scenario.expectedInitialEvents = func(_ []*example.Pod) []watch.Event { return nil }
}
if scenario.expectedInitialEventsBookmark == nil {
scenario.expectedInitialEventsBookmark = func(_ []*example.Pod) []watch.Event { return nil }
}
if scenario.expectedEventsAfterEstablishingWatch == nil {
scenario.expectedEventsAfterEstablishingWatch = func(_ []*example.Pod) []watch.Event { return nil }
}
Expand Down Expand Up @@ -1480,7 +1479,25 @@ func RunWatchSemantics(ctx context.Context, t *testing.T, store storage.Interfac

// make sure we only get initial events
testCheckResultsInStrictOrder(t, w, scenario.expectedInitialEvents(createdPods))
testCheckResultsInStrictOrder(t, w, scenario.expectedInitialEventsBookmark(createdPods))

// make sure that the actual bookmark has at least RV >= to the expected one
if scenario.expectedInitialEventsBookmarkWithMinimalRV != nil {
testCheckResultFunc(t, w, func(actualEvent watch.Event) {
expectedBookmarkEventWithMinRV := scenario.expectedInitialEventsBookmarkWithMinimalRV(createdPods)
expectedObj, err := meta.Accessor(expectedBookmarkEventWithMinRV.Object)
require.NoError(t, err)

actualObj, err := meta.Accessor(actualEvent.Object)
require.NoError(t, err)

require.GreaterOrEqual(t, actualObj.GetResourceVersion(), expectedObj.GetResourceVersion())

// once we know that the RV is at least >= the expected one
// rewrite it so that we can compare the objs
expectedObj.SetResourceVersion(actualObj.GetResourceVersion())
expectNoDiff(t, "incorrect event", expectedBookmarkEventWithMinRV, actualEvent)
})
}

createdPods = []*example.Pod{}
// add a pod that is greater than the storage's RV when the watch was started
Expand Down