-
Notifications
You must be signed in to change notification settings - Fork 113
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
API changes: fix Go-type convention, fix required fields, remove undocumented old parameters #1504
API changes: fix Go-type convention, fix required fields, remove undocumented old parameters #1504
Conversation
dd6d51e
to
18de56a
Compare
18de56a
to
4d91708
Compare
4d91708
to
d45fec0
Compare
2eebdd0
to
1e39df0
Compare
@SaschaSchwarze0 Following the discussion we had on naming things, shouldn't the embedded build specification here also be renamed to something like "BuildSpec"? We actually have one place where we use it like |
Good catch. It should actually be |
1e39df0
to
467495d
Compare
@adambkaplan I saw some of the docs in OpenShift, I think you should take a look on this PR as well. for example making the |
+1 I pinged it privately to Adam already that the OpenShift docs miss the type field. :-) But, code-wise, the build/pkg/reconciler/buildrun/resources/sources.go Lines 66 to 78 in 0885a82
type set. This PR here only declares it as required.
|
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.
/lgtm
@SaschaSchwarze0 Maybe the PR title should be edited to be a bit more telling. |
- Make Build.Spec.Source optional - Rename Build.Spec.Source.GitSource to Git (go-type only) - Rename Build.Spec.Source.LocalSource to Local (go-type only) - Rename BuildRun.Spec.Build.Build to Spec (go-type only) - Rename BuildRun.Spec.Source.LocalSource to Local (go-type only) - Remove the undocumented CONTEXT_DIR parameter - Remove the undocumented `build.output.image` and `build.source.contextDir` replacement variables - Declare Build.Spec.Source.Type as required - Declare BuildRun.Spec.Source.Type as required - Add missing documentation to API fields
467495d
to
c9621d0
Compare
Rebased to resolve conflicts. |
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.
/lgtm
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HeavyWombat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
build.output.image
andbuild.source.contextDir
replacement variablesFixes #1484
Fixes #1490
Submitter Checklist
Release Notes