Skip to content

Commit

Permalink
default reference policy when updating an imagestreamtag
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Feb 8, 2018
1 parent 4957392 commit 7904374
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/image/registry/imagestreamtag/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ func (r *REST) Update(ctx apirequest.Context, tagName string, objInfo rest.Updat
tagRef.Name = tag
}
tagRef.Annotations = istag.Annotations

if len(tagRef.ReferencePolicy.Type) == 0 {
tagRef.ReferencePolicy.Type = imageapi.SourceTagReferencePolicy
}
imageStream.Spec.Tags[tag] = tagRef

// mutate the image stream
Expand Down

0 comments on commit 7904374

Please sign in to comment.