kubernetes/pkg
Francesco Romani 2ea47038b9 podresources: e2e: force eager connection
Add and use more facilities to the *internal* podresources client.
Checking e2e test runs, we have quite some
```
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/lib/kubelet/pod-resources/kubelet.sock: connect: connection refused": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/lib/kubelet/pod-resources/kubelet.sock: connect: connection refused"
```

This is likely caused by kubelet restarts, which we do plenty in e2e tests,
combined with the fact gRPC does lazy connection AND we don't really
check the errors in client code - we just bubble them up.

While it's arguably bad we don't check properly error codes, it's also
true that in the main case, e2e tests, the functions should just never
fail besides few well known cases, we're connecting over a
super-reliable unix domain socket after all.

So, we centralize the fix adding a function (alongside with minor
cleanups) which wants to trigger and ensure the connection happens,
localizing the changes just here. The main advantage is this approach
is opt-in, composable, and doesn't leak gRPC details into the client
code.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-09-07 08:24:49 +02:00
..
api Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs 2023-08-30 23:56:47 +08:00
apis Merge pull request #120259 from SataQiu/clean-apf-20230830 2023-08-31 19:44:42 -07:00
auth Merge pull request #105598 from gy95/match 2022-01-05 09:22:38 -08:00
capabilities initialize capabilities unit test 2021-03-13 10:53:47 +01:00
client Move cri/streaming to k8s.io/kubelet staging repository 2023-06-05 08:08:18 +02:00
cloudprovider lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
cluster/ports Webhook framework for cloud controller manager 2023-03-14 23:28:05 +00:00
controller Merge pull request #120336 from pohly/dra-generated-name-hyphen 2023-09-05 11:22:51 -07:00
controlplane Merge pull request #119142 from aramase/aramase/f/kep_3331_add_feature_flag 2023-09-05 13:08:51 -07:00
credentialprovider fix failing metadata test 2023-09-01 15:22:07 -04:00
features Validate the cloud-provider passed in and the corresponding feature flags 2023-09-02 13:08:04 -04:00
fieldpath Improved FormatMap: Improves performance by about 4x, or nearly 2x in the worst case (#112661) 2023-03-01 22:26:55 -08:00
generated apf: remove v1alpha1 API 2023-08-30 20:48:42 +08:00
kubeapiserver add loading config and wire feature flag 2023-08-30 23:14:56 +00:00
kubectl Merge pull request #120259 from SataQiu/clean-apf-20230830 2023-08-31 19:44:42 -07:00
kubelet podresources: e2e: force eager connection 2023-09-07 08:24:49 +02:00
kubemark Move hollow_proxy.go from pkg/kubemark to pkg/proxy/kubemark 2023-03-16 09:47:54 -04:00
printers Merge pull request #118493 from kerthcet/cleanup/pod-status-reason 2023-08-30 01:40:47 -07:00
probe Merge pull request #114606 from tuunit/bugfix-case-sensitive-headers 2023-05-15 22:05:36 -07:00
proxy only drop invalid cstate packets if non liberal 2023-09-05 14:16:17 +00:00
quota/v1 api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
registry Merge pull request #118709 from ty-dc/pr/ut 2023-09-04 02:49:48 -07:00
routes Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
scheduler Merge pull request #120413 from pohly/scheduler-in-flight-events-fix 2023-09-05 15:17:03 -07:00
security AppArmor no reevaluation of host is needed 2023-03-14 18:35:01 +00:00
securitycontext add SeccompProfile to Pod and Container accessors/mutators 2023-02-22 17:15:27 +01:00
serviceaccount Merge pull request #119643 from carlory/fix-119638 2023-08-15 19:43:32 -07:00
util adjust error message a bit 2023-08-31 21:53:43 -04:00
volume Merge pull request #120128 from ritazh/format-mount 2023-08-23 10:40:01 -07:00
windows/service Fix typo at pkg/windows/service/service.go:94 2022-03-24 07:25:33 -04:00
.import-restrictions
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00