Class ImageSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ImageSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ImageSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImageSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ImageSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageSpec()No args constructor for use in serializationImageSpec(ConfigMapNameReference additionalTrustedCA, List<RegistryLocation> allowedRegistriesForImport, List<String> externalRegistryHostnames, String imageStreamImportMode, RegistrySources registrySources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageSpecBuilderedit()Map<String,Object>getAdditionalProperties()ConfigMapNameReferencegetAdditionalTrustedCA()List<RegistryLocation>getAllowedRegistriesForImport()allowedRegistriesForImport limits the container image registries that normal users may import images from.List<String>getExternalRegistryHostnames()externalRegistryHostnames provides the hostnames for the default external image registry.StringgetImageStreamImportMode()imageStreamImportMode controls the import mode behaviour of imagestreams.RegistrySourcesgetRegistrySources()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAdditionalTrustedCA(ConfigMapNameReference additionalTrustedCA)voidsetAllowedRegistriesForImport(List<RegistryLocation> allowedRegistriesForImport)allowedRegistriesForImport limits the container image registries that normal users may import images from.voidsetExternalRegistryHostnames(List<String> externalRegistryHostnames)externalRegistryHostnames provides the hostnames for the default external image registry.voidsetImageStreamImportMode(String imageStreamImportMode)imageStreamImportMode controls the import mode behaviour of imagestreams.voidsetRegistrySources(RegistrySources registrySources)ImageSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ImageSpec
public ImageSpec()
No args constructor for use in serialization
-
ImageSpec
public ImageSpec(ConfigMapNameReference additionalTrustedCA, List<RegistryLocation> allowedRegistriesForImport, List<String> externalRegistryHostnames, String imageStreamImportMode, RegistrySources registrySources)
-
-
Method Detail
-
getAdditionalTrustedCA
public ConfigMapNameReference getAdditionalTrustedCA()
-
setAdditionalTrustedCA
public void setAdditionalTrustedCA(ConfigMapNameReference additionalTrustedCA)
-
getAllowedRegistriesForImport
public List<RegistryLocation> getAllowedRegistriesForImport()
allowedRegistriesForImport limits the container image registries that normal users may import images from. Set this list to the registries that you trust to contain valid Docker images and that you want applications to be able to import from. Users with permission to create Images or ImageStreamMappings via the API are not affected by this policy - typically only administrators or system integrations will have those permissions.
-
setAllowedRegistriesForImport
public void setAllowedRegistriesForImport(List<RegistryLocation> allowedRegistriesForImport)
allowedRegistriesForImport limits the container image registries that normal users may import images from. Set this list to the registries that you trust to contain valid Docker images and that you want applications to be able to import from. Users with permission to create Images or ImageStreamMappings via the API are not affected by this policy - typically only administrators or system integrations will have those permissions.
-
getExternalRegistryHostnames
public List<String> getExternalRegistryHostnames()
externalRegistryHostnames provides the hostnames for the default external image registry. The external hostname should be set only when the image registry is exposed externally. The first value is used in 'publicDockerImageRepository' field in ImageStreams. The value must be in "hostname[:port]" format.
-
setExternalRegistryHostnames
public void setExternalRegistryHostnames(List<String> externalRegistryHostnames)
externalRegistryHostnames provides the hostnames for the default external image registry. The external hostname should be set only when the image registry is exposed externally. The first value is used in 'publicDockerImageRepository' field in ImageStreams. The value must be in "hostname[:port]" format.
-
getImageStreamImportMode
public String getImageStreamImportMode()
imageStreamImportMode controls the import mode behaviour of imagestreams. It can be set to `Legacy` or `PreserveOriginal` or the empty string. If this value is specified, this setting is applied to all newly created imagestreams which do not have the value set. `Legacy` indicates that the legacy behaviour should be used. For manifest lists, the legacy behaviour will discard the manifest list and import a single sub-manifest. In this case, the platform is chosen in the following order of priority: 1. tag annotations; 2. control plane arch/os; 3. linux/amd64; 4. the first manifest in the list. `PreserveOriginal` indicates that the original manifest will be preserved. For manifest lists, the manifest list and all its sub-manifests will be imported. When empty, the behaviour will be decided based on the payload type advertised by the ClusterVersion status, i.e single arch payload implies the import mode is Legacy and multi payload implies PreserveOriginal.Possible enum values:
- `"Legacy"` indicates that the legacy behaviour should be used. For manifest lists, the legacy behaviour will discard the manifest list and import a single sub-manifest. In this case, the platform is chosen in the following order of priority: 1. tag annotations; 2. control plane arch/os; 3. linux/amd64; 4. the first manifest in the list. This mode is the default.
- `"PreserveOriginal"` indicates that the original manifest will be preserved. For manifest lists, the manifest list and all its sub-manifests will be imported.
-
setImageStreamImportMode
public void setImageStreamImportMode(String imageStreamImportMode)
imageStreamImportMode controls the import mode behaviour of imagestreams. It can be set to `Legacy` or `PreserveOriginal` or the empty string. If this value is specified, this setting is applied to all newly created imagestreams which do not have the value set. `Legacy` indicates that the legacy behaviour should be used. For manifest lists, the legacy behaviour will discard the manifest list and import a single sub-manifest. In this case, the platform is chosen in the following order of priority: 1. tag annotations; 2. control plane arch/os; 3. linux/amd64; 4. the first manifest in the list. `PreserveOriginal` indicates that the original manifest will be preserved. For manifest lists, the manifest list and all its sub-manifests will be imported. When empty, the behaviour will be decided based on the payload type advertised by the ClusterVersion status, i.e single arch payload implies the import mode is Legacy and multi payload implies PreserveOriginal.Possible enum values:
- `"Legacy"` indicates that the legacy behaviour should be used. For manifest lists, the legacy behaviour will discard the manifest list and import a single sub-manifest. In this case, the platform is chosen in the following order of priority: 1. tag annotations; 2. control plane arch/os; 3. linux/amd64; 4. the first manifest in the list. This mode is the default.
- `"PreserveOriginal"` indicates that the original manifest will be preserved. For manifest lists, the manifest list and all its sub-manifests will be imported.
-
getRegistrySources
public RegistrySources getRegistrySources()
-
setRegistrySources
public void setRegistrySources(RegistrySources registrySources)
-
edit
public ImageSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ImageSpecBuilder>
-
toBuilder
public ImageSpecBuilder toBuilder()
-
-