Commit Graph

118154 Commits

Author SHA1 Message Date
Davanum Srinivas
42e8cfa28a
fix failing metadata test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-01 15:22:07 -04:00
Davanum Srinivas
cdcbfcc0a6
[KEP-2395] Phase 4 - Disabling In-Tree Providers
https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2395-removing-in-tree-cloud-providers#phase-4---disabling-in-tree-providers

DisableCloudProviders - this feature gate will disable any functionality
in kube-apiserver, kube-controller-manager and kubelet related to the
--cloud-provider component flag.

DisableKubeletCloudCredentialProvider - this feature gate will disable
in-tree functionality in the kubelet to authenticate to the Azure and
GCP container registries for image pull credentials.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-01 15:22:07 -04:00
Kubernetes Prow Robot
b89f564539
Merge pull request #120353 from liggitt/cloud-deps
Add unwanted cloud deps to track
2023-09-01 11:28:51 -07: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
1cadbd5887
Merge pull request #120172 from DrAuYueng/fix-log-in-deployment-controller
Fix pod deletion log in deployment controller
2023-09-01 11:28:31 -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
c3aa3ac3bd
Merge pull request #119468 from Songjoy/cleanup-e2e-upgrades-framework-equal
e2e_upgrades: stop using deprecated framework.ExpectEqual
2023-09-01 07:54:32 -07:00
Kubernetes Prow Robot
9a0c389fd7
Merge pull request #120352 from saschagrunert/distroless-bump
Update distroless-iptables image version to v0.3.1
2023-09-01 06:52:43 -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
Jordan Liggitt
3e252857c1
Add unwanted cloud deps to track 2023-09-01 08:58:21 -04:00
Kubernetes Prow Robot
b2499a1c28
Merge pull request #119558 from Songjoy/cleanup-e2e-storage-framework-equal
e2e_storage: stop using deprecated framework.ExpectEqual
2023-09-01 05:28:30 -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
Sascha Grunert
936d67f688
Update distroless-iptables image version to v0.3.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-09-01 13:10:15 +02:00
Kubernetes Prow Robot
83f2d89dc9
Merge pull request #120313 from dairlair/patch-1
Refactor checkErr func
2023-08-31 22:02:42 -07: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
8dc002532b
Merge pull request #120284 from vbatts/add_unwanted_modules
Add unwanted modules
2023-08-31 20:52:41 -07:00
Kubernetes Prow Robot
400059d025
Merge pull request #120194 from bzsuni/bz/bump/npd
bump npd to v0.8.14
2023-08-31 20:52:30 -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
Kubernetes Prow Robot
36352ba306
Merge pull request #120233 from xuzhenglun/master
KEP-3668: promote ServiceNodePortStaticSubrange to stable
2023-08-31 19:44:31 -07: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
Kubernetes Prow Robot
6c1f6d55ad
Merge pull request #120263 from elmiko/enable-ccm-gce-ci
Use cloud-controller-manager by default on CI
2023-08-31 14:12:30 -07: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
Antonio Ojea
8f6a79b29f use external cloud provider by default with gce
This change enables the external cloud provider by default for GCE
infrastructure. It is the result of several squashed commits, these are
their commit messages:

* no longer need to enable endpoinslices controller since GA
* use external by default
* DisableKubeletCloudCredentialProviders
* temp test feature gates
2023-08-31 15:13:29 -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
Albert Sverdlov
a46bab6930
Fix a job quota related deadlock (#119776)
* Fix a job quota related deadlock

In case ResourceQuota is used and sets a max # of jobs, a CronJob may get
trapped in a deadlock:
  1. Job quota for a namespace is reached.
  2. CronJob controller can't create a new job, because quota is
     reached.
  3. Cleanup of jobs owned by a cronjob doesn't happen, because a
     control loop iteration is finished because of an error to create a
     job.

To fix this we stop early quitting from a control loop iteration when
cronjob reconciliation failed and always let old jobs to be cleaned up.

* Dont reorder imports

* Don't stop requeuing on reconciliation error

Previous code only logged the reconciliation error inside jm.sync() and
didn't return the reconciliation error to it's invoker
processNextWorkItem().

Adding a copy-paste back to avoid this issue.

* Remove copy-pasted cleanupFinishedJobs()

Now we always call jm.cleanupFinishedJobs() first and then
jm.syncCronJob().

We also extract cronJobCopy and updateStatus outside jm.syncCronJob
function and pass pointers to them in both jm.syncCronJob and
jm.cleanupFinishedJobs to make delayed updates handling more explicit
and not dependent on the order in which cleanupFinishedJobs and
syncCronJob are invoked.

* Return updateStatus bool instead of changing the reference

* Explicitly ignore err in tests to fix linter
2023-08-31 08:25:00 -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
dairlair
3c5a58c5f8
Refactor checkErr func
I moved a simpler condition to the beginning of the function (when the error == nil). This has substantially streamlined the function for readability and comprehension of its logic flow.
2023-08-31 17:29:08 +03: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
Kubernetes Prow Robot
76b06ee239
Merge pull request #120288 from tzneal/fix-pid-pressure-flake
fix a PidPressure test flake
2023-08-31 05:46:48 -07:00
Vincent Batts
f22d854072
unwanted-dependendencies: updating references, and jq
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-08-31 08:22:27 -04: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
7bde29372a
Merge pull request #120258 from dims/update-runc-to-v1.1.9
Bump runc to v1.1.9
2023-08-31 01:44:59 -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
Kubernetes Prow Robot
887ac275a2
Merge pull request #120250 from liyuerich/apimachinery
e2e_apimachinery:stop using deprecated framework.ExpectError
2023-08-30 23:40:47 -07:00
Todd Neal
ede524e1a6 fix a pidpressure test flake
With the new busybox, ash has a built-in sleep command. Prior to this
change we were creating half the pids expected since `sleep` wasn't
actually launching a new binary.  Use the full path to /bin/sleep which
avoids the built-in and actually launches a new process.
2023-08-30 22:44:36 -05:00
Vincent Batts
3bc6ee6fef
unwanted-dependencies: sort this list
Seperated this commit from the prior, to keep it clear the additions.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-08-30 21:50:31 -04:00
Vincent Batts
eb5695b0c5
unwanted-dependencies: adding archived repos
Ref: #120276

This is a first step, and then we'll work to clean the code next.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-08-30 21:49:17 -04:00
Jefftree
57b27fd3cd Fallback to legacy discovery on a wider range of conditions in aggregator 2023-08-30 16:10:51 -04:00
Kubernetes Prow Robot
a0873d37c5
Merge pull request #120266 from serathius/remove-returnRV
Remove duplicated returnRV variable
2023-08-30 12:30:47 -07: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