Commit Graph

20841 Commits

Author SHA1 Message Date
Lukasz Szaszkiewicz
48014bd7bd client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested 2024-05-29 09:26:12 +02:00
Kubernetes Prow Robot
9d5db28f5f Merge pull request #125146 from p0lyn0mial/upstream-client-go-consistency-detector-move-to-new-package
client-go: move data consistency detector to a new package
2024-05-27 06:24:08 -07:00
Ritikaa96
23ac0be7ad correcting link to krew install
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 16:52:19 +05:30
Ritikaa96
3848c8b07a added name-only and examples in the kubectl plugin help
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 16:30:21 +05:30
Lukasz Szaszkiewicz
cb44f83b3d move checkWatchListDataConsistencyIfRequested back to client-go/tools/cache 2024-05-27 12:32:03 +02:00
Lukasz Szaszkiewicz
e421046f64 client-go/util/consistencydetector: make the detector public 2024-05-27 12:32:03 +02:00
Lukasz Szaszkiewicz
faf5110c8a client-go/util/consistencydetector: update after moving to the new package 2024-05-27 12:32:03 +02:00
Lukasz Szaszkiewicz
272dfc9d7e move client-go/tools/cache/reflector_data_consistency_detector to client-go/util/consistencydetector 2024-05-27 12:32:03 +02:00
Lukasz Szaszkiewicz
18837d60ae client-go/tools/cache/reflector_data_consistency_detector: refactor unit tests 2024-05-27 11:10:00 +02:00
Kubernetes Prow Robot
f5d62f738a Merge pull request #124446 from p0lyn0mial/watch-list-consistency-detector-more-generic
client-go/consistency-detector: change the signature of checkWatchListConsistencyIfRequested
2024-05-27 01:27:26 -07:00
Lukasz Szaszkiewicz
83c7542abc client-go/consistency-detector: change the signature of checkWatchListConsistencyIfRequested
the signature of the method was tightly connected to the reflector,
making it difficult to use for anything other than a reflector.

this simple refactor makes the method more generic.
2024-05-27 08:30:29 +02:00
Kubernetes Prow Robot
4bb434501d Merge pull request #125115 from serathius/progress-notify-timer
Improve progress notify to have more correct and predictable period of triggering
2024-05-25 10:59:10 -07:00
Marek Siarkowicz
98e384fcd0 Reset timer to zero when no progress notify was sent 2024-05-24 11:56:38 +02:00
Marek Siarkowicz
544ea42482 Use normal Mutex instead of RWMutex
There is no benefit of having RWMutex as we have one reader and multiple
writers. In such cases RWMutex has worse performance than Mutex.
2024-05-24 11:56:27 +02:00
Marek Siarkowicz
e6b54149bb Don't signal when lowering number of waiting routines
Signal is not needed as we never need to wake up when the waiting
is lowered, only when increased.
2024-05-24 11:55:53 +02:00
Marek Siarkowicz
7c0e9cda46 Use timer instead of ticker in progress requestor
Ticker behaves differently from what we want, we need a stable period
interval, but ticker doesn't provide that. From NewTicker docstring:
```
The ticker will adjust the time interval or drop ticks to make up for slow receivers.
```

Unfortunatelly there is no way to test it as the FakeClock doesn't
follow the real ticker behavior.
2024-05-24 11:55:51 +02:00
Lubomir I. Ivanov
5e290ebc90 switch k/k to pause version 3.10 2024-05-24 10:02:51 +03:00
Kubernetes Prow Robot
b021ce1029 Merge pull request #124036 from joremysh/decrease-running-time-of-test-param-ref
apiserver/pkg/admission/plugin/policy/validating make test parallel in for loop
2024-05-23 11:58:36 -07:00
Kubernetes Prow Robot
ef39aa896a Merge pull request #124948 from SataQiu/clean-20240519
kube-controller-manager: remove the deprecated horizontal-pod-autoscaler-upscale-delay and horizontal-pod-autoscaler-downscale-delay flags
2024-05-23 08:15:56 -07:00
Kubernetes Prow Robot
8339711e1f Merge pull request #124779 from cici37/updateEnv
Update CEL default compatibility environment version  to 1.30
2024-05-23 07:02:10 -07:00
Kubernetes Prow Robot
c9a1a0a3b8 Merge pull request #125072 from brianpursley/create-fix-validation
Fix validation of -f or -k flag in kubectl create command to be consistent with other commands
2024-05-22 22:34:27 -07:00
Kubernetes Prow Robot
c9cfc74fd5 Merge pull request #124775 from benluddy/cbor-unstructuredlist
KEP-4222: Decode CBOR to UnstructuredList as UnstructuredJSONScheme does.
2024-05-22 19:40:41 -07:00
Kubernetes Prow Robot
ff829fe036 Merge pull request #125073 from brianpursley/cli-runtime-owners
Update cli-runtime OWNERS file to use sig-cli-maintainers/sig-cli-reviewers
2024-05-22 16:46:45 -07:00
Kubernetes Prow Robot
06ba3d8ab6 Merge pull request #125068 from benluddy/cbor-decode-to-any
KEP-4222: Add unit tests for decoding CBOR into interface{} type
2024-05-22 15:43:50 -07:00
Brian Pursley
667ff6c333 Update cli-runtime OWNERS file to use sig-cli-maintainers/sig-cli-reviewers 2024-05-22 15:57:37 -04:00
Brian Pursley
4fddd6a3cd Fix inconsistent validation of -f or -k flag in kubectl create command 2024-05-22 15:36:28 -04:00
Suriyan S
3a097f224a Add unit tests for decoding CBOR into interface{} type
Co-authored-by: Ben Luddy <bluddy@redhat.com>
2024-05-22 14:43:10 -04:00
Abhishek Kr Srivastav
5de6f7cf61 fixed flaky test by splitting expected output string
addressed review comments
2024-05-22 20:39:44 +05:30
Wojciech Tyczyński
202b4ffdf0 Reduce critical section for watchcache.lock 2024-05-21 14:00:37 +02:00
Ahmad Zolfaghari
834658cb26 Fix kubectl explain bug when additionalProperties in schema defines as boolean. (#124506)
* Fix kubectl explain bug when additionalProperties in schema defines as:
`additionalProperties: true` to ignore iterating.

* trigger error on kubectl explain with integration test on crd with non bool additionalfields

* add changes to fix the problem

* replace sleep with loop and retry for kubectl explain integration test

* replaced testdata file with inline create
2024-05-21 04:40:32 -07:00
Lukasz Szaszkiewicz
9248cccc27 replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate 2024-05-21 08:47:31 +02:00
Kubernetes Prow Robot
62aae86899 Merge pull request #125005 from brianpursley/fix-deprecated-ptr
Use ptr.To instead of deprecated pointer functions
2024-05-20 18:14:08 -07:00
Kubernetes Prow Robot
765e7ef0d2 Merge pull request #124912 from enj/enj/i/enc_config_typos
encryptionconfig: detect typos
2024-05-20 15:40:41 -07:00
Brian Pursley
288d132cf6 Use ptr.To instead of deprecated pointer functions 2024-05-20 16:14:54 -04:00
Kubernetes Prow Robot
31d43ee485 Merge pull request #124867 from p0lyn0mial/upstream-progress-notification-for-waitUntilWatchCacheFreshAndForceAllEvents
storage/cacher: waitUntilWatchCacheFreshAndForceAllEvents checks if storage.RequestWatchProgress is supported
2024-05-20 09:12:29 -07:00
Kubernetes Prow Robot
935292b62d Merge pull request #124754 from p0lyn0mial/upstream-cacher-dispatchevents-progress-requester
storage/cacher: dispatchEvents use progressRequester
2024-05-20 08:10:32 -07:00
Kubernetes Prow Robot
b10a141fd2 Merge pull request #124614 from p0lyn0mial/upstream-reflector-warn-no-bookmark-event
client-go/reflector: warns when the bookmark event for initial events hasn't been received
2024-05-20 06:46:50 -07:00
Lukasz Szaszkiewicz
93960f4890 client-go/reflector: warns when the bookmark event for initial events hasn't been received 2024-05-20 14:42:48 +02:00
Lukasz Szaszkiewicz
33f81ee23f storage/cacher: dispatchEvents use progressRequester 2024-05-20 14:18:36 +02:00
SataQiu
4bd3baece3 kube-controller-manager: remove the deprecated horizontal-pod-autoscaler-upscale-delay and horizontal-pod-autoscaler-downscale-delay flags 2024-05-19 17:49:23 +08:00
Kubernetes Prow Robot
6d4250ed41 Merge pull request #123149 from mochizuki875/remove_probe_from_copy_pod
kubectl debug: Add --keep-* flag to control the removal of probes, labels, annotations, and initContainers from copy pod
2024-05-16 17:35:53 -07:00
Kubernetes Prow Robot
c276258e20 Merge pull request #124913 from enj/enj/i/go_work_sum_ignore
Ignore go.work.sum for fake workspaces
2024-05-16 14:43:36 -07:00
Monis Khan
974e2d956e Ignore go.work.sum for fake workspaces
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-05-16 13:52:36 -04:00
Kubernetes Prow Robot
2a003648b0 Merge pull request #124793 from mimowo/fix-managed-by-comment
Fix the comment for the Job managedBy field
2024-05-16 10:50:57 -07:00
mochizuki875
b63fa1300c Add keep options 2024-05-16 17:26:20 +00:00
Monis Khan
2503fa55ff encryptionconfig: detect typos
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-05-16 12:56:39 -04:00
Kubernetes Prow Robot
06b813fd29 Merge pull request #124634 from saschagrunert/cri-staging-code
Move `pkg/kubelet/cri/remote` to `cri-client`
2024-05-16 07:33:06 -07:00
Kubernetes Prow Robot
1772e3fb5d Merge pull request #124886 from carlory/revert-revert
Revert "Revert "remove legacycloudproviders from staging""
2024-05-15 09:59:53 -07:00
Cici Huang
6980cda87d Update cel env to 1.30 2024-05-15 15:51:08 +00:00
cpanato
f330ffa210 Update publishing-bot rules to Go 1.21.10/1.22.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-05-15 16:32:24 +02:00