| 1 |
|
| 2 |
// This file was autogenerated by go-to-protobuf. Do not edit it manually! |
| 3 |
|
| 4 |
syntax = 'proto2'; |
| 5 |
|
| 6 |
package github.com.openshift.api.image.v1; |
| 7 |
|
| 8 |
import "k8s.io/api/core/v1/generated.proto"; |
| 9 |
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; |
| 10 |
import "k8s.io/apimachinery/pkg/runtime/generated.proto"; |
| 11 |
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; |
| 12 |
|
| 13 |
// Package-wide variables from generator "generated". |
| 14 |
option go_package = "v1"; |
| 15 |
|
| 16 |
// DockerImageReference points to a container image. |
| 17 |
message DockerImageReference { |
| 18 |
// Registry is the registry that contains the container image |
| 19 |
optional string registry = 1; |
| 20 |
|
| 21 |
// Namespace is the namespace that contains the container image |
| 22 |
optional string namespace = 2; |
| 23 |
|
| 24 |
// Name is the name of the container image |
| 25 |
optional string name = 3; |
| 26 |
|
| 27 |
// Tag is which tag of the container image is being referenced |
| 28 |
optional string tag = 4; |
| 29 |
|
| 30 |
// ID is the identifier for the container image |
| 31 |
optional string iD = 5; |
| 32 |
} |
| 33 |
|
| 34 |
// Image is an immutable representation of a container image and metadata at a point in time. |
| 35 |
message Image { |
| 36 |
// Standard object's metadata. |
| 37 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 38 |
|
| 39 |
// DockerImageReference is the string that can be used to pull this image. |
| 40 |
optional string dockerImageReference = 2; |
| 41 |
|
| 42 |
// DockerImageMetadata contains metadata about this image |
| 43 |
// +patchStrategy=replace |
| 44 |
optional k8s.io.apimachinery.pkg.runtime.RawExtension dockerImageMetadata = 3; |
| 45 |
|
| 46 |
// DockerImageMetadataVersion conveys the version of the object, which if empty defaults to "1.0" |
| 47 |
optional string dockerImageMetadataVersion = 4; |
| 48 |
|
| 49 |
// DockerImageManifest is the raw JSON of the manifest |
| 50 |
optional string dockerImageManifest = 5; |
| 51 |
|
| 52 |
// DockerImageLayers represents the layers in the image. May not be set if the image does not define that data. |
| 53 |
repeated ImageLayer dockerImageLayers = 6; |
| 54 |
|
| 55 |
// Signatures holds all signatures of the image. |
| 56 |
// +patchMergeKey=name |
| 57 |
// +patchStrategy=merge |
| 58 |
repeated ImageSignature signatures = 7; |
| 59 |
|
| 60 |
// DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. |
| 61 |
repeated bytes dockerImageSignatures = 8; |
| 62 |
|
| 63 |
// DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2. |
| 64 |
optional string dockerImageManifestMediaType = 9; |
| 65 |
|
| 66 |
// DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2. |
| 67 |
optional string dockerImageConfig = 10; |
| 68 |
} |
| 69 |
|
| 70 |
// ImageBlobReferences describes the blob references within an image. |
| 71 |
message ImageBlobReferences { |
| 72 |
// imageMissing is true if the image is referenced by the image stream but the image |
| 73 |
// object has been deleted from the API by an administrator. When this field is set, |
| 74 |
// layers and config fields may be empty and callers that depend on the image metadata |
| 75 |
// should consider the image to be unavailable for download or viewing. |
| 76 |
// +optional |
| 77 |
optional bool imageMissing = 3; |
| 78 |
|
| 79 |
// layers is the list of blobs that compose this image, from base layer to top layer. |
| 80 |
// All layers referenced by this array will be defined in the blobs map. Some images |
| 81 |
// may have zero layers. |
| 82 |
// +optional |
| 83 |
repeated string layers = 1; |
| 84 |
|
| 85 |
// config, if set, is the blob that contains the image config. Some images do |
| 86 |
// not have separate config blobs and this field will be set to nil if so. |
| 87 |
// +optional |
| 88 |
optional string config = 2; |
| 89 |
} |
| 90 |
|
| 91 |
// ImageImportSpec describes a request to import a specific image. |
| 92 |
message ImageImportSpec { |
| 93 |
// From is the source of an image to import; only kind DockerImage is allowed |
| 94 |
optional k8s.io.api.core.v1.ObjectReference from = 1; |
| 95 |
|
| 96 |
// 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 |
| 97 |
optional k8s.io.api.core.v1.LocalObjectReference to = 2; |
| 98 |
|
| 99 |
// ImportPolicy is the policy controlling how the image is imported |
| 100 |
optional TagImportPolicy importPolicy = 3; |
| 101 |
|
| 102 |
// ReferencePolicy defines how other components should consume the image |
| 103 |
optional TagReferencePolicy referencePolicy = 5; |
| 104 |
|
| 105 |
// IncludeManifest determines if the manifest for each image is returned in the response |
| 106 |
optional bool includeManifest = 4; |
| 107 |
} |
| 108 |
|
| 109 |
// ImageImportStatus describes the result of an image import. |
| 110 |
message ImageImportStatus { |
| 111 |
// Status is the status of the image import, including errors encountered while retrieving the image |
| 112 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; |
| 113 |
|
| 114 |
// Image is the metadata of that image, if the image was located |
| 115 |
optional Image image = 2; |
| 116 |
|
| 117 |
// Tag is the tag this image was located under, if any |
| 118 |
optional string tag = 3; |
| 119 |
} |
| 120 |
|
| 121 |
// ImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none. |
| 122 |
message ImageLayer { |
| 123 |
// Name of the layer as defined by the underlying store. |
| 124 |
optional string name = 1; |
| 125 |
|
| 126 |
// Size of the layer in bytes as defined by the underlying store. |
| 127 |
optional int64 size = 2; |
| 128 |
|
| 129 |
// MediaType of the referenced object. |
| 130 |
optional string mediaType = 3; |
| 131 |
} |
| 132 |
|
| 133 |
// ImageLayerData contains metadata about an image layer. |
| 134 |
message ImageLayerData { |
| 135 |
// Size of the layer in bytes as defined by the underlying store. This field is |
| 136 |
// optional if the necessary information about size is not available. |
| 137 |
optional int64 size = 1; |
| 138 |
|
| 139 |
// MediaType of the referenced object. |
| 140 |
optional string mediaType = 2; |
| 141 |
} |
| 142 |
|
| 143 |
// ImageList is a list of Image objects. |
| 144 |
message ImageList { |
| 145 |
// Standard object's metadata. |
| 146 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 147 |
|
| 148 |
// Items is a list of images |
| 149 |
repeated Image items = 2; |
| 150 |
} |
| 151 |
|
| 152 |
// ImageLookupPolicy describes how an image stream can be used to override the image references |
| 153 |
// used by pods, builds, and other resources in a namespace. |
| 154 |
message ImageLookupPolicy { |
| 155 |
// local will change the docker short image references (like "mysql" or |
| 156 |
// "php:latest") on objects in this namespace to the image ID whenever they match |
| 157 |
// this image stream, instead of reaching out to a remote registry. The name will |
| 158 |
// be fully qualified to an image ID if found. The tag's referencePolicy is taken |
| 159 |
// into account on the replaced value. Only works within the current namespace. |
| 160 |
optional bool local = 3; |
| 161 |
} |
| 162 |
|
| 163 |
// ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims |
| 164 |
// as long as the signature is trusted. Based on this information it is possible to restrict runnable images |
| 165 |
// to those matching cluster-wide policy. |
| 166 |
// Mandatory fields should be parsed by clients doing image verification. The others are parsed from |
| 167 |
// signature's content by the server. They serve just an informative purpose. |
| 168 |
message ImageSignature { |
| 169 |
// Standard object's metadata. |
| 170 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 171 |
|
| 172 |
// Required: Describes a type of stored blob. |
| 173 |
optional string type = 2; |
| 174 |
|
| 175 |
// Required: An opaque binary string which is an image's signature. |
| 176 |
optional bytes content = 3; |
| 177 |
|
| 178 |
// Conditions represent the latest available observations of a signature's current state. |
| 179 |
// +patchMergeKey=type |
| 180 |
// +patchStrategy=merge |
| 181 |
repeated SignatureCondition conditions = 4; |
| 182 |
|
| 183 |
// A human readable string representing image's identity. It could be a product name and version, or an |
| 184 |
// image pull spec (e.g. "registry.access.redhat.com/rhel7/rhel:7.2"). |
| 185 |
optional string imageIdentity = 5; |
| 186 |
|
| 187 |
// Contains claims from the signature. |
| 188 |
map<string, string> signedClaims = 6; |
| 189 |
|
| 190 |
// If specified, it is the time of signature's creation. |
| 191 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 7; |
| 192 |
|
| 193 |
// If specified, it holds information about an issuer of signing certificate or key (a person or entity |
| 194 |
// who signed the signing certificate or key). |
| 195 |
optional SignatureIssuer issuedBy = 8; |
| 196 |
|
| 197 |
// If specified, it holds information about a subject of signing certificate or key (a person or entity |
| 198 |
// who signed the image). |
| 199 |
optional SignatureSubject issuedTo = 9; |
| 200 |
} |
| 201 |
|
| 202 |
// ImageStream stores a mapping of tags to images, metadata overrides that are applied |
| 203 |
// when images are tagged in a stream, and an optional reference to a container image |
| 204 |
// repository on a registry. |
| 205 |
message ImageStream { |
| 206 |
// Standard object's metadata. |
| 207 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 208 |
|
| 209 |
// Spec describes the desired state of this stream |
| 210 |
optional ImageStreamSpec spec = 2; |
| 211 |
|
| 212 |
// Status describes the current state of this stream |
| 213 |
optional ImageStreamStatus status = 3; |
| 214 |
} |
| 215 |
|
| 216 |
// ImageStreamImage represents an Image that is retrieved by image name from an ImageStream. |
| 217 |
message ImageStreamImage { |
| 218 |
// Standard object's metadata. |
| 219 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 220 |
|
| 221 |
// Image associated with the ImageStream and image name. |
| 222 |
optional Image image = 2; |
| 223 |
} |
| 224 |
|
| 225 |
// The image stream import resource provides an easy way for a user to find and import container images |
| 226 |
// from other container image registries into the server. Individual images or an entire image repository may |
| 227 |
// be imported, and users may choose to see the results of the import prior to tagging the resulting |
| 228 |
// images into the specified image stream. |
| 229 |
// |
| 230 |
// This API is intended for end-user tools that need to see the metadata of the image prior to import |
| 231 |
// (for instance, to generate an application from it). Clients that know the desired image can continue |
| 232 |
// to create spec.tags directly into their image streams. |
| 233 |
message ImageStreamImport { |
| 234 |
// Standard object's metadata. |
| 235 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 236 |
|
| 237 |
// Spec is a description of the images that the user wishes to import |
| 238 |
optional ImageStreamImportSpec spec = 2; |
| 239 |
|
| 240 |
// Status is the the result of importing the image |
| 241 |
optional ImageStreamImportStatus status = 3; |
| 242 |
} |
| 243 |
|
| 244 |
// ImageStreamImportSpec defines what images should be imported. |
| 245 |
message ImageStreamImportSpec { |
| 246 |
// Import indicates whether to perform an import - if so, the specified tags are set on the spec |
| 247 |
// and status of the image stream defined by the type meta. |
| 248 |
optional bool import = 1; |
| 249 |
|
| 250 |
// Repository is an optional import of an entire container image repository. A maximum limit on the |
| 251 |
// number of tags imported this way is imposed by the server. |
| 252 |
optional RepositoryImportSpec repository = 2; |
| 253 |
|
| 254 |
// Images are a list of individual images to import. |
| 255 |
repeated ImageImportSpec images = 3; |
| 256 |
} |
| 257 |
|
| 258 |
// ImageStreamImportStatus contains information about the status of an image stream import. |
| 259 |
message ImageStreamImportStatus { |
| 260 |
// Import is the image stream that was successfully updated or created when 'to' was set. |
| 261 |
optional ImageStream import = 1; |
| 262 |
|
| 263 |
// Repository is set if spec.repository was set to the outcome of the import |
| 264 |
optional RepositoryImportStatus repository = 2; |
| 265 |
|
| 266 |
// Images is set with the result of importing spec.images |
| 267 |
repeated ImageImportStatus images = 3; |
| 268 |
} |
| 269 |
|
| 270 |
// ImageStreamLayers describes information about the layers referenced by images in this |
| 271 |
// image stream. |
| 272 |
message ImageStreamLayers { |
| 273 |
// Standard object's metadata. |
| 274 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 275 |
|
| 276 |
// blobs is a map of blob name to metadata about the blob. |
| 277 |
map<string, ImageLayerData> blobs = 2; |
| 278 |
|
| 279 |
// images is a map between an image name and the names of the blobs and config that |
| 280 |
// comprise the image. |
| 281 |
map<string, ImageBlobReferences> images = 3; |
| 282 |
} |
| 283 |
|
| 284 |
// ImageStreamList is a list of ImageStream objects. |
| 285 |
message ImageStreamList { |
| 286 |
// Standard object's metadata. |
| 287 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 288 |
|
| 289 |
// Items is a list of imageStreams |
| 290 |
repeated ImageStream items = 2; |
| 291 |
} |
| 292 |
|
| 293 |
// ImageStreamMapping represents a mapping from a single tag to a container image as |
| 294 |
// well as the reference to the container image stream the image came from. |
| 295 |
message ImageStreamMapping { |
| 296 |
// Standard object's metadata. |
| 297 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 298 |
|
| 299 |
// Image is a container image. |
| 300 |
optional Image image = 2; |
| 301 |
|
| 302 |
// Tag is a string value this image can be located with inside the stream. |
| 303 |
optional string tag = 3; |
| 304 |
} |
| 305 |
|
| 306 |
// ImageStreamSpec represents options for ImageStreams. |
| 307 |
message ImageStreamSpec { |
| 308 |
// lookupPolicy controls how other resources reference images within this namespace. |
| 309 |
optional ImageLookupPolicy lookupPolicy = 3; |
| 310 |
|
| 311 |
// dockerImageRepository is optional, if specified this stream is backed by a container repository on this server |
| 312 |
// Deprecated: This field is deprecated as of v3.7 and will be removed in a future release. |
| 313 |
// Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead. |
| 314 |
optional string dockerImageRepository = 1; |
| 315 |
|
| 316 |
// tags map arbitrary string values to specific image locators |
| 317 |
// +patchMergeKey=name |
| 318 |
// +patchStrategy=merge |
| 319 |
repeated TagReference tags = 2; |
| 320 |
} |
| 321 |
|
| 322 |
// ImageStreamStatus contains information about the state of this image stream. |
| 323 |
message ImageStreamStatus { |
| 324 |
// DockerImageRepository represents the effective location this stream may be accessed at. |
| 325 |
// May be empty until the server determines where the repository is located |
| 326 |
optional string dockerImageRepository = 1; |
| 327 |
|
| 328 |
// PublicDockerImageRepository represents the public location from where the image can |
| 329 |
// be pulled outside the cluster. This field may be empty if the administrator |
| 330 |
// has not exposed the integrated registry externally. |
| 331 |
optional string publicDockerImageRepository = 3; |
| 332 |
|
| 333 |
// Tags are a historical record of images associated with each tag. The first entry in the |
| 334 |
// TagEvent array is the currently tagged image. |
| 335 |
// +patchMergeKey=tag |
| 336 |
// +patchStrategy=merge |
| 337 |
repeated NamedTagEventList tags = 2; |
| 338 |
} |
| 339 |
|
| 340 |
// ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream. |
| 341 |
message ImageStreamTag { |
| 342 |
// Standard object's metadata. |
| 343 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 344 |
|
| 345 |
// tag is the spec tag associated with this image stream tag, and it may be null |
| 346 |
// if only pushes have occurred to this image stream. |
| 347 |
optional TagReference tag = 2; |
| 348 |
|
| 349 |
// generation is the current generation of the tagged image - if tag is provided |
| 350 |
// and this value is not equal to the tag generation, a user has requested an |
| 351 |
// import that has not completed, or conditions will be filled out indicating any |
| 352 |
// error. |
| 353 |
optional int64 generation = 3; |
| 354 |
|
| 355 |
// lookupPolicy indicates whether this tag will handle image references in this |
| 356 |
// namespace. |
| 357 |
optional ImageLookupPolicy lookupPolicy = 6; |
| 358 |
|
| 359 |
// conditions is an array of conditions that apply to the image stream tag. |
| 360 |
repeated TagEventCondition conditions = 4; |
| 361 |
|
| 362 |
// image associated with the ImageStream and tag. |
| 363 |
optional Image image = 5; |
| 364 |
} |
| 365 |
|
| 366 |
// ImageStreamTagList is a list of ImageStreamTag objects. |
| 367 |
message ImageStreamTagList { |
| 368 |
// Standard object's metadata. |
| 369 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 370 |
|
| 371 |
// Items is the list of image stream tags |
| 372 |
repeated ImageStreamTag items = 2; |
| 373 |
} |
| 374 |
|
| 375 |
// NamedTagEventList relates a tag to its image history. |
| 376 |
message NamedTagEventList { |
| 377 |
// Tag is the tag for which the history is recorded |
| 378 |
optional string tag = 1; |
| 379 |
|
| 380 |
// Standard object's metadata. |
| 381 |
repeated TagEvent items = 2; |
| 382 |
|
| 383 |
// Conditions is an array of conditions that apply to the tag event list. |
| 384 |
repeated TagEventCondition conditions = 3; |
| 385 |
} |
| 386 |
|
| 387 |
// RepositoryImportSpec describes a request to import images from a container image repository. |
| 388 |
message RepositoryImportSpec { |
| 389 |
// From is the source for the image repository to import; only kind DockerImage and a name of a container image repository is allowed |
| 390 |
optional k8s.io.api.core.v1.ObjectReference from = 1; |
| 391 |
|
| 392 |
// ImportPolicy is the policy controlling how the image is imported |
| 393 |
optional TagImportPolicy importPolicy = 2; |
| 394 |
|
| 395 |
// ReferencePolicy defines how other components should consume the image |
| 396 |
optional TagReferencePolicy referencePolicy = 4; |
| 397 |
|
| 398 |
// IncludeManifest determines if the manifest for each image is returned in the response |
| 399 |
optional bool includeManifest = 3; |
| 400 |
} |
| 401 |
|
| 402 |
// RepositoryImportStatus describes the result of an image repository import |
| 403 |
message RepositoryImportStatus { |
| 404 |
// Status reflects whether any failure occurred during import |
| 405 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 1; |
| 406 |
|
| 407 |
// Images is a list of images successfully retrieved by the import of the repository. |
| 408 |
repeated ImageImportStatus images = 2; |
| 409 |
|
| 410 |
// AdditionalTags are tags that exist in the repository but were not imported because |
| 411 |
// a maximum limit of automatic imports was applied. |
| 412 |
repeated string additionalTags = 3; |
| 413 |
} |
| 414 |
|
| 415 |
// SignatureCondition describes an image signature condition of particular kind at particular probe time. |
| 416 |
message SignatureCondition { |
| 417 |
// Type of signature condition, Complete or Failed. |
| 418 |
optional string type = 1; |
| 419 |
|
| 420 |
// Status of the condition, one of True, False, Unknown. |
| 421 |
optional string status = 2; |
| 422 |
|
| 423 |
// Last time the condition was checked. |
| 424 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; |
| 425 |
|
| 426 |
// Last time the condition transit from one status to another. |
| 427 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; |
| 428 |
|
| 429 |
// (brief) reason for the condition's last transition. |
| 430 |
optional string reason = 5; |
| 431 |
|
| 432 |
// Human readable message indicating details about last transition. |
| 433 |
optional string message = 6; |
| 434 |
} |
| 435 |
|
| 436 |
// SignatureGenericEntity holds a generic information about a person or entity who is an issuer or a subject |
| 437 |
// of signing certificate or key. |
| 438 |
message SignatureGenericEntity { |
| 439 |
// Organization name. |
| 440 |
optional string organization = 1; |
| 441 |
|
| 442 |
// Common name (e.g. openshift-signing-service). |
| 443 |
optional string commonName = 2; |
| 444 |
} |
| 445 |
|
| 446 |
// SignatureIssuer holds information about an issuer of signing certificate or key. |
| 447 |
message SignatureIssuer { |
| 448 |
optional SignatureGenericEntity signatureGenericEntity = 1; |
| 449 |
} |
| 450 |
|
| 451 |
// SignatureSubject holds information about a person or entity who created the signature. |
| 452 |
message SignatureSubject { |
| 453 |
optional SignatureGenericEntity signatureGenericEntity = 1; |
| 454 |
|
| 455 |
// If present, it is a human readable key id of public key belonging to the subject used to verify image |
| 456 |
// signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g. |
| 457 |
// 0x685ebe62bf278440). |
| 458 |
optional string publicKeyID = 2; |
| 459 |
} |
| 460 |
|
| 461 |
// TagEvent is used by ImageStreamStatus to keep a historical record of images associated with a tag. |
| 462 |
message TagEvent { |
| 463 |
// Created holds the time the TagEvent was created |
| 464 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time created = 1; |
| 465 |
|
| 466 |
// DockerImageReference is the string that can be used to pull this image |
| 467 |
optional string dockerImageReference = 2; |
| 468 |
|
| 469 |
// Image is the image |
| 470 |
optional string image = 3; |
| 471 |
|
| 472 |
// Generation is the spec tag generation that resulted in this tag being updated |
| 473 |
optional int64 generation = 4; |
| 474 |
} |
| 475 |
|
| 476 |
// TagEventCondition contains condition information for a tag event. |
| 477 |
message TagEventCondition { |
| 478 |
// Type of tag event condition, currently only ImportSuccess |
| 479 |
optional string type = 1; |
| 480 |
|
| 481 |
// Status of the condition, one of True, False, Unknown. |
| 482 |
optional string status = 2; |
| 483 |
|
| 484 |
// LastTransitionTIme is the time the condition transitioned from one status to another. |
| 485 |
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; |
| 486 |
|
| 487 |
// Reason is a brief machine readable explanation for the condition's last transition. |
| 488 |
optional string reason = 4; |
| 489 |
|
| 490 |
// Message is a human readable description of the details about last transition, complementing reason. |
| 491 |
optional string message = 5; |
| 492 |
|
| 493 |
// Generation is the spec tag generation that this status corresponds to |
| 494 |
optional int64 generation = 6; |
| 495 |
} |
| 496 |
|
| 497 |
// TagImportPolicy controls how images related to this tag will be imported. |
| 498 |
message TagImportPolicy { |
| 499 |
// Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import. |
| 500 |
optional bool insecure = 1; |
| 501 |
|
| 502 |
// Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported |
| 503 |
optional bool scheduled = 2; |
| 504 |
} |
| 505 |
|
| 506 |
// TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track. |
| 507 |
message TagReference { |
| 508 |
// Name of the tag |
| 509 |
optional string name = 1; |
| 510 |
|
| 511 |
// Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags. |
| 512 |
// +optional |
| 513 |
map<string, string> annotations = 2; |
| 514 |
|
| 515 |
// Optional; if specified, a reference to another image that this tag should point to. Valid values |
| 516 |
// are ImageStreamTag, ImageStreamImage, and DockerImage. ImageStreamTag references |
| 517 |
// can only reference a tag within this same ImageStream. |
| 518 |
optional k8s.io.api.core.v1.ObjectReference from = 3; |
| 519 |
|
| 520 |
// Reference states if the tag will be imported. Default value is false, which means the tag will |
| 521 |
// be imported. |
| 522 |
optional bool reference = 4; |
| 523 |
|
| 524 |
// Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference |
| 525 |
// is changed the generation is set to match the current stream generation (which is incremented every |
| 526 |
// time spec is changed). Other processes in the system like the image importer observe that the |
| 527 |
// generation of spec tag is newer than the generation recorded in the status and use that as a trigger |
| 528 |
// to import the newest remote tag. To trigger a new import, clients may set this value to zero which |
| 529 |
// will reset the generation to the latest stream generation. Legacy clients will send this value as |
| 530 |
// nil which will be merged with the current tag generation. |
| 531 |
// +optional |
| 532 |
optional int64 generation = 5; |
| 533 |
|
| 534 |
// ImportPolicy is information that controls how images may be imported by the server. |
| 535 |
optional TagImportPolicy importPolicy = 6; |
| 536 |
|
| 537 |
// ReferencePolicy defines how other components should consume the image. |
| 538 |
optional TagReferencePolicy referencePolicy = 7; |
| 539 |
} |
| 540 |
|
| 541 |
// TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when |
| 542 |
// image change triggers in deployment configs or builds are resolved. This allows the image stream |
| 543 |
// author to control how images are accessed. |
| 544 |
message TagReferencePolicy { |
| 545 |
// Type determines how the image pull spec should be transformed when the image stream tag is used in |
| 546 |
// deployment config triggers or new builds. The default value is `Source`, indicating the original |
| 547 |
// location of the image should be used (if imported). The user may also specify `Local`, indicating |
| 548 |
// that the pull spec should point to the integrated container image registry and leverage the registry's |
| 549 |
// ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this |
| 550 |
// image to be managed from the image stream's namespace, so others on the platform can access a remote |
| 551 |
// image but have no access to the remote secret. It also allows the image layers to be mirrored into |
| 552 |
// the local registry which the images can still be pulled even if the upstream registry is unavailable. |
| 553 |
optional string type = 1; |
| 554 |
} |
| 555 |
|