nodepool/nodepool/tests
Tobias Henkel 0dc40d33e4
Support optional post upload hooks
There are several scenarios where it can be useful hook into nodepool
after an image got uploaded but before it is taken into use by the
launchers. One use case is to be able to run validations on the image
(e.g. image size, boot test, etc.) before nodepool tries to use that
image and causing potentially node_failures. Another more advanced use
case is to be able to pre-distribute an image to all compute nodes in
a cloud before an image is used at scale.

To facilitate these use cases this adds a new config option
post-upload-hook to the provider config. This takes a path to a user
defined executable script which then can perform various tasks. If the
process fails with an rc != 0 the image gets deleted again and the
upload fails.

Change-Id: I099cf1243b1bd262b8ee96ab323dbd34c7578c10
2019-11-25 13:37:28 +01:00
..
fixtures Support optional post upload hooks 2019-11-25 13:37:28 +01:00
functional Implement an OpenShift Pod provider 2019-05-07 02:25:15 +00:00
unit Support optional post upload hooks 2019-11-25 13:37:28 +01:00
__init__.py Merge "Fix builder shutdown race in tests" 2019-10-15 15:24:27 +00:00
fake-image-create Fix for image build leaks 2019-04-01 15:44:31 -04:00
post-upload-hook Support optional post upload hooks 2019-11-25 13:37:28 +01:00