public static final class ImageSyncConfig.Builder
extends java.lang.Object
ImageSyncConfig
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ImageSyncConfig . |
Modifier and Type | Method and Description |
---|---|
ImageSyncConfig |
build() |
ImageSyncConfig.Builder |
setKubernetesContentLibrary(java.lang.String kubernetesContentLibrary)
ImageSyncConfig.getKubernetesContentLibrary()
is the UUID of the Content Library which holds the VM Images for Tanzu
Kubernetes Service for vSphere. |
ImageSyncConfig.Builder |
setRegistry(ImageRegistry registry)
The
ImageSyncConfig.getRegistry()
class contains the specification required to configure container image registry
endpoint. |
ImageSyncConfig.Builder |
setRepository(java.lang.String repository)
The
ImageSyncConfig.getRepository()
specifies the default container image repository to use when the Kubernetes Pod
specification does not specify it. |
public Builder()
ImageSyncConfig
.public ImageSyncConfig.Builder setRegistry(ImageRegistry registry)
ImageSyncConfig.getRegistry()
class contains the specification required to configure container image registry
endpoint. This property was added in vSphere API 8.0.0.1.
Defaults to Docker Hub if null
.registry
- New value for the property.public ImageSyncConfig.Builder setRepository(java.lang.String repository)
The ImageSyncConfig.getRepository()
specifies the default container image repository to use when the Kubernetes Pod
specification does not specify it. For example, hub.docker.com
is the
image repository for a Pod whose image specification is hub.docker.com/nginx
.
null
, and if docker hub is the configured ImageSyncConfig.getRegistry()
,
then ImageSyncConfig.getRepository()
defaults to Docker Hub. If Docker Hub is not the configured image registry,
ImageSyncConfig.getRepository()
remains unset.
If {#member} repository is null
, you must supply an
image repository in your Pod spec or else images will not be able to be synced
into the cluster.
repository
- New value for the property.public ImageSyncConfig.Builder setKubernetesContentLibrary(java.lang.String kubernetesContentLibrary)
ImageSyncConfig.getKubernetesContentLibrary()
is the UUID of the Content Library which holds the VM Images for Tanzu
Kubernetes Service for vSphere.
This Content Library should be subscribed to VMware's hosted vSphere Kubernetes Service Repository. Optionally, you can configure your own local content library and host images locally.
. This property was added in vSphere API 8.0.0.1. If the Content Library identifier isnull
, you will not be able to
deploy Tanzu Kubernetes Clusters.kubernetesContentLibrary
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public ImageSyncConfig build()