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 authored and openshift-cherrypick-robot committed May 3, 2024
1 parent 40e8aa7 commit 2f8c51b
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 2f8c51b

Please sign in to comment.