-
Notifications
You must be signed in to change notification settings - Fork 107
bumps (library-go) #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bumps (library-go) #153
Changes from all commits
72de3fc
4a9228a
1474e8a
30d0edf
c6739e5
ca40e6a
3243401
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ func Convert_image_Image_To_v1_Image(in *newer.Image, out *v1.Image, s conversio | |
| if in.Signatures != nil { | ||
| out.Signatures = make([]v1.ImageSignature, len(in.Signatures)) | ||
| for i := range in.Signatures { | ||
| if err := s.Convert(&in.Signatures[i], &out.Signatures[i]); err != nil { | ||
| if err := s.Convert(&in.Signatures[i], &out.Signatures[i], conversion.DestFromSource); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
@@ -102,7 +102,7 @@ func Convert_v1_Image_To_image_Image(in *v1.Image, out *newer.Image, s conversio | |
| if err := runtime.DecodeInto(dockerImageCodecs.UniversalDecoder(), in.DockerImageMetadata.Raw, obj); err != nil { | ||
| return err | ||
| } | ||
| if err := s.Convert(obj, &out.DockerImageMetadata); err != nil { | ||
| if err := s.Convert(obj, &out.DockerImageMetadata, conversion.DestFromSource); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
@@ -122,7 +122,7 @@ func Convert_v1_Image_To_image_Image(in *v1.Image, out *newer.Image, s conversio | |
| if in.Signatures != nil { | ||
| out.Signatures = make([]newer.ImageSignature, len(in.Signatures)) | ||
| for i := range in.Signatures { | ||
| if err := s.Convert(&in.Signatures[i], &out.Signatures[i]); err != nil { | ||
| if err := s.Convert(&in.Signatures[i], &out.Signatures[i], conversion.DestFromSource); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
@@ -146,7 +146,7 @@ func Convert_v1_ImageStreamSpec_To_image_ImageStreamSpec(in *v1.ImageStreamSpec, | |
| out.LookupPolicy = newer.ImageLookupPolicy{Local: in.LookupPolicy.Local} | ||
| out.DockerImageRepository = in.DockerImageRepository | ||
| out.Tags = make(map[string]newer.TagReference) | ||
| return s.Convert(&in.Tags, &out.Tags) | ||
| return s.Convert(&in.Tags, &out.Tags, conversion.DestFromSource) | ||
| } | ||
|
|
||
| func Convert_image_ImageStreamSpec_To_v1_ImageStreamSpec(in *newer.ImageStreamSpec, out *v1.ImageStreamSpec, s conversion.Scope) error { | ||
|
|
@@ -162,7 +162,7 @@ func Convert_image_ImageStreamSpec_To_v1_ImageStreamSpec(in *newer.ImageStreamSp | |
| } | ||
| } | ||
| out.Tags = make([]v1.TagReference, 0, 0) | ||
| return s.Convert(&in.Tags, &out.Tags) | ||
| return s.Convert(&in.Tags, &out.Tags, conversion.DestFromSource) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do these mean?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these were removed in https://github.com/openshift/openshift-apiserver/pull/150/files#diff-476a993839cca71a75d722226b54f2a2e7560296678290d40054fa9b009bfef3L14 my pr just reverts these changes as they were not meant to be merged.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done. |
||
| } | ||
|
|
||
| func Convert_v1_ImageStreamStatus_To_image_ImageStreamStatus(in *v1.ImageStreamStatus, out *newer.ImageStreamStatus, s conversion.Scope) error { | ||
|
|
@@ -271,7 +271,7 @@ func Convert_image_TagEventListArray_to_v1_NamedTagEventListArray(in *map[string | |
| func Convert_v1_TagReferenceArray_to_api_TagReferenceMap(in *[]v1.TagReference, out *map[string]newer.TagReference, s conversion.Scope) error { | ||
| for _, curr := range *in { | ||
| r := newer.TagReference{} | ||
| if err := s.Convert(&curr, &r); err != nil { | ||
| if err := s.Convert(&curr, &r, conversion.DestFromSource); err != nil { | ||
| return err | ||
| } | ||
| (*out)[curr.Name] = r | ||
|
|
@@ -288,7 +288,7 @@ func Convert_image_TagReferenceMap_to_v1_TagReferenceArray(in *map[string]newer. | |
| for _, tag := range allTags { | ||
| newTagReference := (*in)[tag] | ||
| oldTagReference := v1.TagReference{} | ||
| if err := s.Convert(&newTagReference, &oldTagReference); err != nil { | ||
| if err := s.Convert(&newTagReference, &oldTagReference, conversion.DestFromSource); err != nil { | ||
| return err | ||
| } | ||
| oldTagReference.Name = tag | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marun see here. This is a good start. We should not have these violations.