forked from openshift/api
/
consts.go
69 lines (51 loc) · 3.19 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package v1
import corev1 "k8s.io/api/core/v1"
const (
// ManagedByOpenShiftAnnotation indicates that an image is managed by OpenShift's registry.
ManagedByOpenShiftAnnotation = "openshift.io/image.managed"
// DockerImageRepositoryCheckAnnotation indicates that OpenShift has
// attempted to import tag and image information from an external Docker
// image repository.
DockerImageRepositoryCheckAnnotation = "openshift.io/image.dockerRepositoryCheck"
// InsecureRepositoryAnnotation may be set true on an image stream to allow insecure access to pull content.
InsecureRepositoryAnnotation = "openshift.io/image.insecureRepository"
// ExcludeImageSecretAnnotation indicates that a secret should not be returned by imagestream/secrets.
ExcludeImageSecretAnnotation = "openshift.io/image.excludeSecret"
// DockerImageLayersOrderAnnotation describes layers order in the docker image.
DockerImageLayersOrderAnnotation = "image.openshift.io/dockerLayersOrder"
// DockerImageLayersOrderAscending indicates that image layers are sorted in
// the order of their addition (from oldest to latest)
DockerImageLayersOrderAscending = "ascending"
// DockerImageLayersOrderDescending indicates that layers are sorted in
// reversed order of their addition (from newest to oldest).
DockerImageLayersOrderDescending = "descending"
// ImporterPreferArchAnnotation represents an architecture that should be
// selected if an image uses a manifest list and it should be
// downconverted.
ImporterPreferArchAnnotation = "importer.image.openshift.io/prefer-arch"
// ImporterPreferOSAnnotation represents an operation system that should
// be selected if an image uses a manifest list and it should be
// downconverted.
ImporterPreferOSAnnotation = "importer.image.openshift.io/prefer-os"
// ImageManifestBlobStoredAnnotation indicates that manifest and config blobs of image are stored in on
// storage of integrated Docker registry.
ImageManifestBlobStoredAnnotation = "image.openshift.io/manifestBlobStored"
// DefaultImageTag is used when an image tag is needed and the configuration does not specify a tag to use.
DefaultImageTag = "latest"
// ResourceImageStreams represents a number of image streams in a project.
ResourceImageStreams corev1.ResourceName = "openshift.io/imagestreams"
// ResourceImageStreamImages represents a number of unique references to images in all image stream
// statuses of a project.
ResourceImageStreamImages corev1.ResourceName = "openshift.io/images"
// ResourceImageStreamTags represents a number of unique references to images in all image stream specs
// of a project.
ResourceImageStreamTags corev1.ResourceName = "openshift.io/image-tags"
// Limit that applies to images. Used with a max["storage"] LimitRangeItem to set
// the maximum size of an image.
LimitTypeImage corev1.LimitType = "openshift.io/Image"
// Limit that applies to image streams. Used with a max[resource] LimitRangeItem to set the maximum number
// of resource. Where the resource is one of "openshift.io/images" and "openshift.io/image-tags".
LimitTypeImageStream corev1.LimitType = "openshift.io/ImageStream"
// The supported type of image signature.
ImageSignatureTypeAtomicImageV1 string = "AtomicImageV1"
)