Commit Graph

19343 Commits

Author SHA1 Message Date
Arda Güçlü
e8564d6c5b KEP-3895: Promote interactive delete to beta 2023-09-05 11:16:30 +03:00
Kubernetes Prow Robot
ea3353dd6b Merge pull request #119410 from Jefftree/kubectl-cleanup
Cleanup kubectl legacy server fallback
2023-09-03 07:15:46 -07:00
Kubernetes Prow Robot
03762cbcb5 Merge pull request #120316 from dims/move-to-new-repo-for-reference
New repo who dis? distribution/reference
2023-09-02 21:05:11 -07:00
Monis Khan
95121fe846 kmsv2: add legacy data integration test
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-09-01 15:33:28 -04:00
Kubernetes Prow Robot
470fe396bd Merge pull request #120275 from danwinship/kep-3705-to-beta
Bump CloudDualStackNodeIPs to beta for 1.29
2023-09-01 11:28:43 -07:00
Kubernetes Prow Robot
a99e377a54 Merge pull request #120221 from enj/enj/i/kms_cache_metrics_lock
kmsv2: fix race in simpleCache.set when setting cache size metric
2023-09-01 10:00:31 -07:00
Kubernetes Prow Robot
a42f4f61c2 Merge pull request #120304 from p0lyn0mial/upstream-storage-options-progress-notification
storage: document ProgressNotify from storage.ListOptions
2023-09-01 07:54:51 -07:00
Kubernetes Prow Robot
42275daaaa Merge pull request #119870 from Jefftree/agg-discovery-406
Fallback to legacy discovery on a wider range of conditions
2023-09-01 07:54:44 -07:00
Kubernetes Prow Robot
5dd4f1245c Merge pull request #120118 from Ithrael/doc/kubectl-restart-without-specific-deployment-will-restart-all-deployments
doc(kubectl): Kubectl restart command without specific deployment wil…
2023-09-01 06:52:31 -07:00
Lukasz Szaszkiewicz
875b00137f storage/etcd: add TestWatchDispatchBookmarkEvents unit test 2023-09-01 13:46:41 +02:00
Lukasz Szaszkiewicz
6058540f3d storage: document ProgressNotify from storage.ListOptions
At first glance, it seems that the fields storage.ListOptions.ProgressNotify and storage.ListOptions.Predicate.AllowWatchBookmarks
are the same. Unfortunately, this is not the case.

This PR documents the differences and motivations for why these fields are actually distinct.
2023-09-01 13:46:35 +02:00
ithrael
f4fc4b16b1 doc: Add example for restarting all deployments in a namespace 2023-09-01 19:25:54 +08:00
Kubernetes Prow Robot
ff5fc28ff3 Merge pull request #120044 from apricote/cp-port-0
Allow disabling both listened-on ports in cloud-provider
2023-08-31 22:02:31 -07:00
Kubernetes Prow Robot
efadb94a74 Merge pull request #120259 from SataQiu/clean-apf-20230830
apf: remove v1alpha1 API
2023-08-31 19:44:42 -07:00
Davanum Srinivas
889c8e919b New repo who dis? distribution/reference
github.com/docker/distribution/reference has a new home github.com/distribution/reference

and a new tag v0.5.0. Let's switch to that.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-08-31 21:53:40 -04:00
Kubernetes Prow Robot
34aaf2b972 Merge pull request #120327 from liggitt/json-patch
Revert to json-patch 4.12.0
2023-08-31 17:06:30 -07:00
Jordan Liggitt
741f146157 Revert to json-patch 4.12.0 2023-08-31 19:01:37 -04:00
Monis Khan
b10697c788 kmsv2: fix race in simpleCache.set when setting cache size metric
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-08-31 16:26:58 -04:00
Kubernetes Prow Robot
dd0c2d4eb1 Merge pull request #120108 from tnqn/fix-appgregator
Fix OpenAPI aggregation cleanup
2023-08-31 10:42:47 -07:00
Kubernetes Prow Robot
8777747c98 Merge pull request #119150 from tnqn/external-traffic-policy-external-ips
Allow specifying ExternalTrafficPolicy for Services with ExternalIPs
2023-08-31 08:24:48 -07:00
Kubernetes Prow Robot
61d87fdb2e Merge pull request #117502 from Nordix/drain-improvements/adil
Adding more callbacks in kubedrain helper
2023-08-31 06:58:48 -07:00
adil ghaffar
0323fe42e2 adding more callbacks in kubedrain helper 2023-08-31 14:35:09 +03:00
Kubernetes Prow Robot
8daecd125e Merge pull request #120265 from serathius/refactor-store
Refactor store
2023-08-31 02:48:47 -07:00
Kubernetes Prow Robot
def694bbe0 Merge pull request #119801 from wojtek-t/refactor_watch_encoders
Refactor apiserver endpoint transformers to more natively use Encoders
2023-08-31 01:44:48 -07:00
Marek Siarkowicz
e01bd64144 Avoid creating local variables that don't change
Having local variables gives false impression that this is overwritten
in the function block.
2023-08-31 09:34:37 +02:00
Marek Siarkowicz
10553a1966 Flatten switch case 2023-08-31 09:34:12 +02:00
Marek Siarkowicz
1f4f2a5d60 Refactor common WithRange case
From API call WithRange and WithPrefix work the same, they just set the range end.
The difference is when the range end is provided:
* WithRange(end) requires providing the end while calling
* WithPrefix() calculates the end based on key provided to the Get.

For example, those are equal:
* client.Get(ctx, "/pods/", WithPrefix())
* client.Get(ctx, "/pods/", WithRange(GetPrfixRangeEnd("/pods/")))

As keyPrefix is equal preparedKey there should not be a difference.
2023-08-31 09:31:58 +02:00
Jefftree
57b27fd3cd Fallback to legacy discovery on a wider range of conditions in aggregator 2023-08-30 16:10:51 -04:00
Wojciech Tyczyński
160589a0ed Refactor transformers for watch to implement Encoder interface 2023-08-30 20:53:43 +02:00
Dan Winship
04f0b4a014 Bump CloudDualStackNodeIPs to beta for 1.29 2023-08-30 13:22:39 -04:00
Quan Tian
bf41b0462c Fix OpenAPI aggregation cleanup
There were four issues in OpenAPI aggregation cleanup:
1. When removing an APIService, openAPIAggregationController was called
   twice while openAPIV3AggregationController was never called, leading
   to OpenAPI v3 for the APIService not cleaned up.
2. When removing a local APIService, v2 specAggregator should not return
   ErrAPIServiceNotFound when it doesn't find the APIService because
   local APIServices were never added to its cache, otherwise confusing
   error logs would be generated. Besides, the method's comment
   indicates that the desired behavior is that no error is returned if
   the APIService does not exist.
3. When removing an APIService, v3 specProxier should update
   openapiv2converter's cache, like when updating an APIService,
   otherwise the API would not be removed from "/openapi/v3".
4. When v3 AggregationController reconciles an APIService, it should
   stop requeueing it if it fails with ErrAPIServiceNotFound as the
   APIService has been removed, like what v2 AggregationController does,
   otherwise it would keep reconciling the APIService forever.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-31 00:01:14 +08:00
Quan Tian
2b69daa960 Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs
When defining a ClusterIP Service, we can specify externalIP, and the
traffic policy of externalIP is subject to externalTrafficPolicy.
However, the policy can't be set when type is not NodePort or
LoadBalancer, and will default to Cluster when kube-proxy processes the
Service.

This commit updates the defaulting and validation of Service to allow
specifying ExternalTrafficPolicy for ClusterIP Services with
ExternalIPs.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-30 23:56:47 +08:00
Marek Siarkowicz
be4692864b Remove duplicated returnRV variable
returnRV was was equal to withRev, but updated at different time.

When preparing the request they are set equal to each other.

The only difference was during the for loop.
returnRV was always set no matter if pagination was enabled, while withRev only when paginating.
2023-08-30 17:36:09 +02:00
SataQiu
2825519da2 apf: remove v1alpha1 API 2023-08-30 20:48:42 +08:00
Kubernetes Prow Robot
1144c85a92 Merge pull request #119649 from wackxu/Paginatelist
paginate initial list inside the storage watcher
2023-08-30 00:36:58 -07:00
Kubernetes Prow Robot
0b70423e24 Merge pull request #119537 from ardaguclu/kubectl-debug-cleaning
kubectl debug: Introduce customizable AttachFunc instead static one
2023-08-29 11:21:22 -07:00
Kubernetes Prow Robot
8b4f5bb54b Merge pull request #120218 from rakshitgondwal/feat/protobuf-version-update
feat: update google.golang.org/protobuf to v1.31.0
2023-08-29 08:11:36 -07:00
Kubernetes Prow Robot
8374067038 Merge pull request #120177 from stevekuznetsov/skuznets/generate-crd-applyconfigurations
apiextensions-apiserver: generate applyconfigurations
2023-08-29 08:11:22 -07:00
wackxu
f5d6c65186 paginate initial list inside the storage watcher
Signed-off-by: wackxu <xushiwei5@huawei.com>
2023-08-29 17:24:36 +08:00
Kubernetes Prow Robot
6eca142082 Merge pull request #120212 from p0lyn0mial/upstream-etcd-watcher-validation
storage/etcd3: error when progressNotify option set and newFunc was not provided for a registry
2023-08-29 01:27:21 -07:00
Rakshit Gondwal
709721e0df feat: update google.golang.org/protobuf to v1.31.0
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
2023-08-28 23:38:32 +05:30
Kubernetes Prow Robot
a3374795e4 Merge pull request #120204 from mimowo/make-onpodconditions-optional
Mark Job onPodConditions as optional in pod failure policy
2023-08-28 09:47:42 -07:00
Wojciech Tyczyński
3fcc045bce Minor cleanup tranformers interface 2023-08-28 18:46:37 +02:00
Wojciech Tyczyński
172a41192c Cleanup setting non-nil Items field 2023-08-28 18:46:08 +02:00
Lukasz Szaszkiewicz
1988c31fc8 storage/etcd3: error when progressNotify option set and newFunc was provided for a registry 2023-08-28 17:50:42 +02:00
Steve Kuznetsov
0ea6522807 apiextensions-apiserver: generate applyconfigurations
These were omitted on accident.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2023-08-28 06:38:10 -06:00
Michal Wozniak
cc784cfe85 Mark Job onPodConditions as optional in pod failure policy 2023-08-28 11:42:56 +02:00
Kubernetes Prow Robot
91344b4008 Merge pull request #120174 from pohly/apiserver-etcd-metrics-race
apiserver: fix data race in etcd metrics
2023-08-28 02:11:54 -07:00
Arda Güçlü
fa37bebcd4 Add comment about why AttachFunc be overridable 2023-08-28 08:36:32 +03:00
Kubernetes Prow Robot
dbcbf5e952 Merge pull request #118401 from skitt/ioutil-sig-cli
cli: stop using deprecated io/ioutil
2023-08-26 00:51:25 -07:00