Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -16842,6 +16842,10 @@
"from": {
"$ref": "v1.ObjectReference",
"description": "a reference to an image stream tag or image stream this tag should track"
},
"reference": {
"type": "boolean",
"description": "if true consider this tag a reference only and do not attempt to import metadata about the image"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions pkg/api/deep_copy_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,7 @@ func deepCopy_api_TagReference(in imageapi.TagReference, out *imageapi.TagRefere
} else {
out.From = nil
}
out.Reference = in.Reference
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/api/v1/deep_copy_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,7 @@ func deepCopy_v1_NamedTagReference(in imageapiv1.NamedTagReference, out *imageap
} else {
out.From = nil
}
out.Reference = in.Reference
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/api/v1beta3/deep_copy_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ func deepCopy_v1beta3_NamedTagReference(in imageapiv1beta3.NamedTagReference, ou
} else {
out.From = nil
}
out.Reference = in.Reference
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/image/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ type TagReference struct {
Annotations map[string]string
// Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage.
From *kapi.ObjectReference
// Reference states if the tag will be imported. Default value is false, which means the tag will be imported.
Reference bool
}

// ImageStreamStatus contains information about the state of this image stream.
Expand Down
2 changes: 2 additions & 0 deletions pkg/image/api/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func init() {
for _, curr := range *in {
r := newer.TagReference{
Annotations: curr.Annotations,
Reference: curr.Reference,
}
if err := s.Convert(&curr.From, &r.From, 0); err != nil {
return err
Expand All @@ -169,6 +170,7 @@ func init() {
oldTagReference := NamedTagReference{
Name: tag,
Annotations: newTagReference.Annotations,
Reference: newTagReference.Reference,
}
if err := s.Convert(&newTagReference.From, &oldTagReference.From, 0); err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions pkg/image/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ type NamedTagReference struct {
Annotations map[string]string `json:"annotations,omitempty" description:"annotations associated with images using this tag"`
// From is a reference to an image stream tag or image stream this tag should track
From *kapi.ObjectReference `json:"from,omitempty" description:"a reference to an image stream tag or image stream this tag should track"`
// Reference states if the tag will be imported. Default value is false, which means the tag will be imported.
Reference bool `json:"reference,omitempty" description:"if true consider this tag a reference only and do not attempt to import metadata about the image"`
}

// ImageStreamStatus contains information about the state of this image stream.
Expand Down
2 changes: 2 additions & 0 deletions pkg/image/api/v1beta3/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func init() {
for _, curr := range *in {
r := newer.TagReference{
Annotations: curr.Annotations,
Reference: curr.Reference,
}
if err := s.Convert(&curr.From, &r.From, 0); err != nil {
return err
Expand All @@ -254,6 +255,7 @@ func init() {
oldTagReference := NamedTagReference{
Name: tag,
Annotations: newTagReference.Annotations,
Reference: newTagReference.Reference,
}
if err := s.Convert(&newTagReference.From, &oldTagReference.From, 0); err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions pkg/image/api/v1beta3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ type NamedTagReference struct {
Name string `json:"name"`
Annotations map[string]string `json:"annotations,omitempty"`
From *kapi.ObjectReference `json:"from,omitempty"`
// Reference states if the tag will be imported. Default value is false, which means the tag will be imported.
Reference bool `json:"reference,omitempty" description:"if true consider this tag a reference only and do not attempt to import metadata about the image"`
}

// ImageStreamStatus contains information about the state of this image stream.
Expand Down
Loading