Bug - Support passing reference-policy in import-image command
@@ -393,6 +393,8 @@ type RepositoryImportSpec struct {
// ImportPolicy is the policy controlling how the image is imported
ImportPolicy TagImportPolicy `json:"importPolicy,omitempty" protobuf:"bytes,2,opt,name=importPolicy"`
+ // ReferencePolicy defines how other components should consume the image
+ ReferencePolicy TagReferencePolicy `json:"referencePolicy,omitempty" protobuf:"bytes,4,opt,name=referencePolicy"`
// IncludeManifest determines if the manifest for each image is returned in the response
IncludeManifest bool `json:"includeManifest,omitempty" protobuf:"varint,3,opt,name=includeManifest"`
}
@@ -417,6 +419,8 @@ type ImageImportSpec struct {
// ImportPolicy is the policy controlling how the image is imported
ImportPolicy TagImportPolicy `json:"importPolicy,omitempty" protobuf:"bytes,3,opt,name=importPolicy"`
+ // ReferencePolicy defines how other components should consume the image
+ ReferencePolicy TagReferencePolicy `json:"referencePolicy,omitempty" protobuf:"bytes,5,opt,name=referencePolicy"`
// IncludeManifest determines if the manifest for each image is returned in the response
IncludeManifest bool `json:"includeManifest,omitempty" protobuf:"varint,4,opt,name=includeManifest"`
}
