Skip to content

Commit 7904374

Browse files
committed
default reference policy when updating an imagestreamtag
1 parent 4957392 commit 7904374

File tree

1 file changed

+4
-0
lines changed
  • pkg/image/registry/imagestreamtag

1 file changed

+4
-0
lines changed

pkg/image/registry/imagestreamtag/rest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ func (r *REST) Update(ctx apirequest.Context, tagName string, objInfo rest.Updat
269269
tagRef.Name = tag
270270
}
271271
tagRef.Annotations = istag.Annotations
272+
273+
if len(tagRef.ReferencePolicy.Type) == 0 {
274+
tagRef.ReferencePolicy.Type = imageapi.SourceTagReferencePolicy
275+
}
272276
imageStream.Spec.Tags[tag] = tagRef
273277

274278
// mutate the image stream

0 commit comments

Comments
 (0)