×
Description

The image stream import resource provides an easy way for a user to find and import container images from other container image registries into the server. Individual images or an entire image repository may be imported, and users may choose to see the results of the import prior to tagging the resulting images into the specified image stream.

This API is intended for end-user tools that need to see the metadata of the image prior to import (for instance, to generate an application from it). Clients that know the desired image can continue to create spec.tags directly into their image streams.

Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

Type

object

Required
  • spec

  • status

Specification

Property Type Description

apiVersion

string

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind

string

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ObjectMeta_v3

spec

object

ImageStreamImportSpec defines what images should be imported.

status

object

ImageStreamImportStatus contains information about the status of an image stream import.

.spec

Description

ImageStreamImportSpec defines what images should be imported.

Type

object

Required
  • import

Property Type Description

images

array

Images are a list of individual images to import.

images[]

object

ImageImportSpec describes a request to import a specific image.

import

boolean

Import indicates whether to perform an import - if so, the specified tags are set on the spec and status of the image stream defined by the type meta.

repository

object

RepositoryImportSpec describes a request to import images from a container image repository.

.spec.images

Description

Images are a list of individual images to import.

Type

array

.spec.images[]

Description

ImageImportSpec describes a request to import a specific image.

Type

object

Required
  • from

Property Type Description

from

ObjectReference

From is the source of an image to import; only kind DockerImage is allowed

importPolicy

object

TagImportPolicy controls how images related to this tag will be imported.

includeManifest

boolean

IncludeManifest determines if the manifest for each image is returned in the response

referencePolicy

object

TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.

to

LocalObjectReference

To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used

.spec.images[].importPolicy

Description

TagImportPolicy controls how images related to this tag will be imported.

Type

object

Property Type Description

insecure

boolean

Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import.

scheduled

boolean

Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported

.spec.images[].referencePolicy

Description

TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.

Type

object

Required
  • type

Property Type Description

type

string

Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is Source, indicating the original location of the image should be used (if imported). The user may also specify Local, indicating that the pull spec should point to the integrated container image registry and leverage the registry’s ability to proxy the pull to an upstream registry. Local allows the credentials used to pull this image to be managed from the image stream’s namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.

.spec.repository

Description

RepositoryImportSpec describes a request to import images from a container image repository.

Type

object

Required
  • from

Property Type Description

from

ObjectReference

From is the source for the image repository to import; only kind DockerImage and a name of a container image repository is allowed

importPolicy

object

TagImportPolicy controls how images related to this tag will be imported.

includeManifest

boolean

IncludeManifest determines if the manifest for each image is returned in the response

referencePolicy

object

TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.

.spec.repository.importPolicy

Description

TagImportPolicy controls how images related to this tag will be imported.

Type

object

Property Type Description

insecure

boolean

Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import.

scheduled

boolean

Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported

.spec.repository.referencePolicy

Description

TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.

Type

object

Required
  • type

Property Type Description

type

string

Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is Source, indicating the original location of the image should be used (if imported). The user may also specify Local, indicating that the pull spec should point to the integrated container image registry and leverage the registry’s ability to proxy the pull to an upstream registry. Local allows the credentials used to pull this image to be managed from the image stream’s namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.

.status

Description

ImageStreamImportStatus contains information about the status of an image stream import.