Skip to content

Commit

Permalink
Do not set dockerfile parameter to an empty string to align with beha…
Browse files Browse the repository at this point in the history
…vior of alpha controller
  • Loading branch information
SaschaSchwarze0 committed Apr 4, 2024
1 parent e166016 commit ae09935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/build/v1beta1/build_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (dest *BuildSpec) ConvertFrom(orig *v1alpha1.BuildSpec) error {
}

//handle spec.Dockerfile migration
if orig.Dockerfile != nil {
if orig.Dockerfile != nil && *orig.Dockerfile != "" {
dockerfileParam := ParamValue{
Name: "dockerfile",
SingleValue: &SingleValue{
Expand Down

0 comments on commit ae09935

Please sign in to comment.