Anders F Björklund
22585c3a17
Use the preload container run for podman as well
...
Now that there is no more race between the containers for
preparing the volume, we can use it for podman as well...
Previously we risked ending up with not copying the contents
of /var from the container image, which made it not work.
2020-07-20 21:54:28 +02:00
Anders F Björklund
2a9e9b2425
Make sure to prepare the kic volume after creation
...
The volume is created as empty, so make sure that we run a
container to do the initial copy of /var from the image.
This is to avoid race conditions later on, where the preload
starts to use the created volume for packing up the tarball.
2020-07-20 21:50:13 +02:00
Giacomo Mr. Wolf Furlan
9c43c47b06
Podman: disable selinux labels when extracting the tarball to prevent permission errors
2020-05-07 02:09:09 +02:00
Anders F Björklund
e2d7d94dfc
Use the correct binary for unpacking the preload
...
Previously hardcoded to *always* use a Docker volume,
even if using a different container driver (podman).
2020-05-01 22:11:28 +02:00
Medya Gh
63f9bfbb61
addres review comments
2020-04-24 14:07:54 -07:00
Medya Gh
ef01ed481c
get rid of global CliRunner
2020-04-23 14:37:03 -07:00
Medya Gh
17f420cc71
warn slow part of cli runner
2020-04-23 01:23:49 -07:00
Medya Gh
d9f1b532d0
unexport warnIfSlow func
2020-04-23 00:33:59 -07:00
Medya Gh
c6e1445ccb
convert more to cli runner
2020-04-23 00:12:41 -07:00
Medya Gh
29df4260ef
make all oci volume calls go through runner
2020-04-22 23:27:54 -07:00
Thomas Stromberg
46f31480df
Make slow command detection consistent across kic/oci
2020-03-26 14:03:22 -07:00
Thomas Stromberg
43ce409e79
Extra debugging for preload generation process
2020-03-11 13:09:55 -07:00
Thomas Stromberg
3fee641a13
Remove remaining PointToHostDockerDaemon calls
2020-03-06 15:15:05 -08:00
Sharif Elgamal
28e030c728
Merge branch 'master' of github.com:kubernetes/minikube into machinename
2020-03-03 12:16:47 -08:00
Sharif Elgamal
31a42ce672
address comments
2020-03-02 17:30:08 -08:00
Priya Wadhwa
d6e94c1ee4
remove unused functions
2020-03-02 13:54:35 -08:00
Priya Wadhwa
474561d082
remove unused functions
2020-03-02 13:48:18 -08:00
Priya Wadhwa
6b0e942e7e
Rebased on master
2020-03-02 13:33:27 -08:00
Medya Gh
4709af55df
resolve review comments
2020-02-26 12:44:25 -08:00
Medya Gh
e8c85543f7
limit time waiting for delete
2020-02-26 10:57:46 -08:00
Priya Wadhwa
97bf128703
only use preloaded volumes for docker runtime
2020-02-21 12:53:24 -08:00
Priya Wadhwa
328466f1e1
Check if preloaded volume is attached before skipping binary transfer
2020-02-21 12:41:33 -08:00
Priya Wadhwa
cc1a6f11f0
Delete volume if it isn't extracted properly so future runs don't try to use it
2020-02-21 12:13:34 -08:00
Priya Wadhwa
c99bf76ee4
Add checksum verification
2020-02-21 12:03:31 -08:00
Priya Wadhwa
5ac8520ab8
skip transferring binaries and transferring imagse if using preloaded volume
2020-02-20 14:59:43 -08:00
Priya Wadhwa
b0f685c072
Move all preloading code into preload package
2020-02-20 14:43:24 -08:00
Priya Wadhwa
0e88697f16
Delete container once it has finished executing
2020-02-20 10:06:15 -08:00
Priya Wadhwa
055e4bb618
Add run to docker command
2020-02-20 09:57:19 -08:00
Priya Wadhwa
335637f4a3
Name tarball by k8s version name
2020-02-20 09:42:04 -08:00
Priya Wadhwa
b8bc461157
Rebased on master
2020-02-20 09:18:12 -08:00
Medya Gh
4fe9ca5f05
break done delete and prune into two funcs better error handling
2020-02-20 00:07:36 -08:00
Medya Gh
6c94880149
dont list empty ones
2020-02-20 00:07:36 -08:00
Medya Gh
d84aa9f447
lint
2020-02-20 00:07:36 -08:00
Medya Gh
b1d139c24b
code review comments
2020-02-20 00:07:35 -08:00
Medya Gh
efd4aabde4
clean up containers first then delete volume
2020-02-20 00:07:35 -08:00
Medya Gh
b235255196
fix volume clean up
2020-02-20 00:07:35 -08:00
Priya Wadhwa
bb11bc666b
Create volume of preloaded images and mount it in
2020-02-19 23:02:36 -08:00
Medya Gh
1da0a370ff
code review comments
2020-02-17 10:55:53 -08:00
Medya Gh
3ce0164281
add logging for prune
2020-02-16 11:54:56 -08:00
Medya Gh
a007c0790c
Delete volumes created by kic
2020-02-14 01:39:16 -08:00