constellation/internal
Otto Bittner c743398a23 AB#2181: retry k8s downloads (#286)
Generalize retrier:
* Generalize Do to use a supplied 'retriable' function
* Make clock an optional argument in NewIntervalRetrier
* Move grpc/retrier to interal package
* Update existing unittests to not use retry feature

Add retryDownloadToTempDir:
* Wrap downloadToTempDir with retrier.
* Retry if TCP connection is reset.
* Abort by canceling the context.
* Use a mock server in the unit test that serves responses
depending on the state received through a state channel.

Co-authored-by: katexochen <49727155+katexochen@users.noreply.github.com>
2022-07-21 15:20:12 +02:00
..
atls fix ci-lint issues (#287) 2022-07-20 16:44:41 +02:00
attestation Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
azureshared Bootstrapper 2022-07-14 17:25:18 +02:00
cloud Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
config AB#2076: version specific images (#288) 2022-07-21 14:41:07 +02:00
constants Use same name for k8s config map key and filename of k8s config map version in joinservice 2022-07-19 09:27:23 +02:00
deploy Rename coordinator to bootstrapper and rename roles 2022-07-14 17:25:18 +02:00
file Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
gcpshared Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
grpc AB#2181: retry k8s downloads (#286) 2022-07-21 15:20:12 +02:00
logger Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
oid atls: make client cfg reusable 2022-06-15 13:04:56 +02:00
retry AB#2181: retry k8s downloads (#286) 2022-07-21 15:20:12 +02:00
secrets Deploy KMS server image in Constellation 2022-05-31 11:13:26 +02:00
state Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
versions AB#2076: version specific images (#288) 2022-07-21 14:41:07 +02:00
watcher Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00