public class RegistryService extends Object
Modifier and Type | Method and Description |
---|---|
void |
pullImageWithPolicy(String image,
ImagePullManager pullManager,
org.eclipse.jkube.kit.config.image.RegistryConfig registryConfig,
boolean hasImage)
Check an image, and, if
autoPull is set to true, fetch it. |
void |
pushImages(Collection<org.eclipse.jkube.kit.config.image.ImageConfiguration> imageConfigs,
int retries,
org.eclipse.jkube.kit.config.image.RegistryConfig registryConfig,
boolean skipTag)
Push a set of images to a registry
|
public void pushImages(Collection<org.eclipse.jkube.kit.config.image.ImageConfiguration> imageConfigs, int retries, org.eclipse.jkube.kit.config.image.RegistryConfig registryConfig, boolean skipTag) throws IOException
imageConfigs
- images to push (but only if they have a build configuration)retries
- how often to retryregistryConfig
- a global registry configurationskipTag
- flag to skip pushing tagged imagesIOException
- exceptionpublic void pullImageWithPolicy(String image, ImagePullManager pullManager, org.eclipse.jkube.kit.config.image.RegistryConfig registryConfig, boolean hasImage) throws IOException
autoPull
is set to true, fetch it. Otherwise if the image
is not existent, throw an errorimage
- imagepullManager
- image pull managerregistryConfig
- registry configurationhasImage
- boolean variable indicating it has image or notIOException
- exceptionCopyright © 2020. All rights reserved.