Skip to content

Commit 072d197

Browse files
authoredAug 14, 2018
Merge pull request #79 from smarterclayton/correct_image_layer_name
Images are themselves manifests, and reference a config blob
2 parents f424ae8 + 1ba94e5 commit 072d197

File tree

5 files changed

+221
-176
lines changed

5 files changed

+221
-176
lines changed
 

‎image/v1/generated.pb.go

+193-162
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎image/v1/generated.proto

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎image/v1/types.go

+10-4
Original file line numberDiff line numberDiff line change
@@ -428,22 +428,28 @@ type ImageStreamLayers struct {
428428
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
429429
// blobs is a map of blob name to metadata about the blob.
430430
Blobs map[string]ImageLayerData `json:"blobs" protobuf:"bytes,2,rep,name=blobs"`
431-
// images is a map between an image name and the names of the blobs and manifests that
431+
// images is a map between an image name and the names of the blobs and config that
432432
// comprise the image.
433433
Images map[string]ImageBlobReferences `json:"images" protobuf:"bytes,3,rep,name=images"`
434434
}
435435

436436
// ImageBlobReferences describes the blob references within an image.
437437
type ImageBlobReferences struct {
438+
// imageMissing is true if the image is referenced by the image stream but the image
439+
// object has been deleted from the API by an administrator. When this field is set,
440+
// layers and config fields may be empty and callers that depend on the image metadata
441+
// should consider the image to be unavailable for download or viewing.
442+
// +optional
443+
ImageMissing bool `json:"imageMissing" protobuf:"varint,3,opt,name=imageMissing"`
438444
// layers is the list of blobs that compose this image, from base layer to top layer.
439445
// All layers referenced by this array will be defined in the blobs map. Some images
440446
// may have zero layers.
441447
// +optional
442448
Layers []string `json:"layers" protobuf:"bytes,1,rep,name=layers"`
443-
// manifest, if set, is the blob that contains the image manifest. Some images do
444-
// not have separate manifest blobs and this field will be set to nil if so.
449+
// config, if set, is the blob that contains the image config. Some images do
450+
// not have separate config blobs and this field will be set to nil if so.
445451
// +optional
446-
Manifest *string `json:"manifest" protobuf:"bytes,2,opt,name=manifest"`
452+
Config *string `json:"config" protobuf:"bytes,2,opt,name=config"`
447453
}
448454

449455
// ImageLayerData contains metadata about an image layer.

‎image/v1/types_swagger_doc_generated.go

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎image/v1/zz_generated.deepcopy.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.