Skip to content

Commit

Permalink
deprecate the imagestream.spec.DockerImageRepository field
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Sep 6, 2017
1 parent bb340c5 commit 52d21dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pkg/image/apis/image/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ type ImageStreamSpec struct {
// lookupPolicy controls how other resources reference images within this namespace.
LookupPolicy ImageLookupPolicy
// Optional, if specified this stream is backed by a Docker repository on this server
// Deprecated: This field is deprecated as of v3.7 and will be removed in a future release
// Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.
DockerImageRepository string
// Tags map arbitrary string values to specific image locators
Tags map[string]TagReference
Expand Down
5 changes: 4 additions & 1 deletion pkg/image/apis/image/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ type ImageStreamSpec struct {
// lookupPolicy controls how other resources reference images within this namespace.
LookupPolicy ImageLookupPolicy `json:"lookupPolicy,omitempty" protobuf:"bytes,3,opt,name=lookupPolicy"`
// dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server
// Deprecated: This field is deprecated as of v3.7 and will be removed in a future release
// Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.
DockerImageRepository string `json:"dockerImageRepository,omitempty" protobuf:"bytes,1,opt,name=dockerImageRepository"`
// tags map arbitrary string values to specific image locators
Tags []TagReference `json:"tags,omitempty" protobuf:"bytes,2,rep,name=tags"`
Expand All @@ -195,7 +197,8 @@ type TagReference struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Annotations associated with images using this tag
Annotations map[string]string `json:"annotations" protobuf:"bytes,2,rep,name=annotations"`
// From is a reference to an image stream tag or image stream this tag should track
// Optional; if specified, a reference to another image that this tag should point to. Valid values
// are ImageStreamTag, ImageStreamImage, and DockerImage.
From *kapi.ObjectReference `json:"from,omitempty" protobuf:"bytes,3,opt,name=from"`
// Reference states if the tag will be imported. Default value is false, which means the tag will be imported.
Reference bool `json:"reference,omitempty" protobuf:"varint,4,opt,name=reference"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/openapi/zz_generated.openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -6149,7 +6149,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
},
"dockerImageRepository": {
SchemaProps: spec.SchemaProps{
Description: "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server",
Description: "dockerImageRepository is optional, if specified this stream is backed by a Docker repository on this server Deprecated: This field is deprecated as of v3.7 and will be removed in a future release Specify the source for the tags to be imported in each tag via the spec.tags.from reference instead.",
Type: []string{"string"},
Format: "",
},
Expand Down Expand Up @@ -6729,7 +6729,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
},
"from": {
SchemaProps: spec.SchemaProps{
Description: "From is a reference to an image stream tag or image stream this tag should track",
Description: "Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage.",
Ref: ref("k8s.io/kubernetes/pkg/api/v1.ObjectReference"),
},
},
Expand Down

0 comments on commit 52d21dc

Please sign in to comment.