From 2f8c51b9beddcbef37eb327b0cfb1b52be6780ff Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Thu, 4 Apr 2024 14:35:54 +0200 Subject: [PATCH] Do not set dockerfile parameter to an empty string to align with behavior of alpha controller --- pkg/apis/build/v1beta1/build_conversion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/build/v1beta1/build_conversion.go b/pkg/apis/build/v1beta1/build_conversion.go index 21b442007e..2562a54131 100644 --- a/pkg/apis/build/v1beta1/build_conversion.go +++ b/pkg/apis/build/v1beta1/build_conversion.go @@ -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{