-
Notifications
You must be signed in to change notification settings - Fork 116
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
Cleanup usage of Image struct in Build and BuildRun #922
Comments
Removing the "good first issue" label. @SaschaSchwarze0 hadn't we discussed removing the |
Our current code hasn't broadcast that In the interim the current API can be captured in a separate Golang object so that |
Opened #935 to capture the deprecation of |
/assign @adambkaplan @SaschaSchwarze0 just want to clarify with which approach do we wanna proceed?
or
we can support |
Hi @sm43, I think there are two open questions: (1) How do we handle the structs? Here I think @adambkaplan and myself have a common idea which is to continue to use (2) Does the BuildRun-defined output completely override the Build-defined output, or do we merge things? I tend to merge. Which means: kind: Build
spec:
output:
image: myimage
credentials:
name: mysecret
annotations:
anAnnotation1: aValue1
anAnnotation2: aValue2
labels:
aLabel1: aValue1 and kind: BuildRun
spec:
output:
annotations:
anAnnotation2: newValue would (a) be allowed (= specifying an output in a BuildRun but omit the image) and (b) lead to those annotations and labels:
|
per @adambkaplan 's #922 (comment) in this issue |
@gabemontero I think we want define a new struct for |
Ignoring applying this issue's changes to BuilderImage since plan on deprecating it is fine for me. But to be clear, that is different than defining a new "temporary" struct. We should have a note in the doc that accompanies the implementation of the issue that explains why it was ignored (in case users noticed the discrepancy and wonder why). We can then remove that note when we actually remove the field. |
Closing this issue as done, completed in v0.7.0. The portion related to deprecating/removing |
In pull request Specify annotations and labels to be set on output images #854, the
Image
struct was extended with theannotations
andlabels
properties.Those values are only relevant for the Build's
spec.output
, but the type is also used for the Build'sspec.builderImage
where those fields are not relevant. It is also used in the BuildRun'sspec.output
.I suggest the following two changes:
spec.output
. All other properties in the BuildRun'sspec.output
overwrite the Build'sspec.output
(the image). From a scenario perspective it would here actually make more sense to merge the maps with precedence for the BuildRun settings. So, that part is worth a quick discussion.We use a different type for the Build'sspec.builderImage
that does not have the two properties.Edit by @adambkaplan: removing fields is a destructive API change, we should consider deprecating the field entirely in #935
The text was updated successfully, but these errors were encountered: