Commit Graph

118467 Commits

Author SHA1 Message Date
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
Anish Ramasekar
15c02f2a03
add integration tests
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-08-30 23:14:59 +00:00
Anish Ramasekar
9e1ff1e512
add loading config and wire feature flag
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-08-30 23:14:56 +00: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
Todd Neal
46cb538642 OWNERS_ALIASES: add tzneal to sig-node-reviewer 2023-08-30 11:53:23 -05: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
16a7b53602 Fix typos in comments
Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-30 23:56:47 +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
Davanum Srinivas
a926f594da
Bump runc to v1.1.9
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-08-30 08:21:59 -04:00
Kubernetes Prow Robot
3cf3702d1e
Merge pull request #119346 from chendave/clean_testcases
kubeadm: Remove the usage to print the default component configs for `reset` and `join`
2023-08-30 04:38:48 -07:00
bzsuni
7b44d73f73
bump npd to v0.8.14
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-08-30 19:03:33 +08:00
Kubernetes Prow Robot
370c85f5ab
Merge pull request #118493 from kerthcet/cleanup/pod-status-reason
Remove reasons from PodConditionType
2023-08-30 01:40:47 -07:00
Dave Chen
879dad9c2f kubeadm: Remove the usage to print the default component configs for reset and join
component configs is only needed for `kubeadm init`, the `join` and `reset` doesn't
need to provid the config with component configs.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-08-30 15:38:21 +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
c723f46603
Merge pull request #119463 from Songjoy/cleanup-e2e-windows-framework-equal
e2e_windows: stop using deprecated framework.ExpectEqual
2023-08-30 00:36:47 -07:00
liyuerich
53cb35d6d4 e2e_apimachinery:stop using deprecated framework.ExpectError
Signed-off-by: liyuerich <yue.li@daocloud.io>
2023-08-30 14:31:58 +08:00
宋文杰
8a368afa27 e2e_storage: stop using deprecated framework.ExpectEqual 2023-08-30 14:00:34 +08:00
宋文杰
209f23ecd7 e2e_upgrades: stop using deprecated framework.ExpectEqual 2023-08-30 11:28:17 +08:00
xuzhenglun
af7d76fa05
Promoted feature gate ServiceNodePortStaticSubrange to stable and locked it to always active 2023-08-30 10:06:46 +08:00
Kubernetes Prow Robot
c51915c1c1
Merge pull request #120243 from kannon92/local-up-cluster-eviction-defaults
EvictionHard Settings in local-up-cluster should match our defaults.
2023-08-29 15:45:56 -07:00
Kevin Hannon
5dbec5c715 local debugging should utilize the same defaults as prod 2023-08-29 16:38:24 -04:00
Sohan Kunkerkar
d5690f12b6 pkg/kubelet: allow sandbox image pinning from CRI
As part of this change, the code responsible for managing the sandbox
image within the kubelet has been removed. Previously, the kubelet used
to prevent sandbox image from the garbage collection process. However,
with this update, the responsibility of managing the sandbox containers
has been shifted to the CRI implementation itself. By allowing sandbox
image pinning from CRI, we improve efficiency and simplify the kubelet's
interaction with the container runtime. As a result, the kubelet can now
rely on the container runtime's built-in mechanisms for sandbox container
lifecycle management.

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
2023-08-29 15:34:51 -04:00
Kubernetes Prow Robot
0cf16b1363
Merge pull request #120235 from enj/patch-8
Prune sig-auth-encryption-at-rest-reviewers and drop lavalamp across aliases
2023-08-29 12:26:09 -07:00
Kubernetes Prow Robot
3dd93d2bd7
Merge pull request #114717 from kerthcet/fix/bind-skip-status
Add new testcases to integration test TestBindPlugin
2023-08-29 12:25:56 -07:00
Kubernetes Prow Robot
2a23eba15b
Merge pull request #120231 from MartinForReal/patch-1
Extend npd e2e timeout to fix npd e2e error
2023-08-29 11:21:33 -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
Kubernetes Prow Robot
973ea2d376
Merge pull request #120228 from pacoxu/kubeadm-learner-etcd-beta
kubeadm: promote EtcdLearnerMode to beta
2023-08-29 06:29:21 -07:00
Mo Khan
8581703b07
Prune sig-auth-encryption-at-rest-reviewers and drop lavalamp across aliases 2023-08-29 09:02:08 -04:00
Kubernetes Prow Robot
34b85c593d
Merge pull request #120198 from pacoxu/kubeadm-swap
kubeadm: update swap warning for v1.28 change
2023-08-29 04:53:32 -07:00