Closed SaschaSchwarze0 closed 6 months ago
/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
/cherrypick release-v0.13
@adambkaplan: new pull request created: #1591
Changes
When the Build controller still reconciled the Alpha version of Builds, it handled
spec.dockerfile
here: https://github.com/shipwright-io/build/blob/v0.12.0/pkg/reconciler/buildrun/resources/taskrun.go#L361-L369.Basically if the value was nil, the parameter value was not added. With that, its default value,
"Dockerfile"
was used. https://github.com/shipwright-io/build/blob/v0.12.0/pkg/reconciler/buildrun/resources/taskrun.go#L74-L81Suddenly, this was also happening when the
spec.dockerfile
was set to an empty string.To mimic the same behavior with the conversion to Beta, I am changing our conversion code to behave the same = not adding the parameter value to be an empty string.
Submitter Checklist
Release Notes