mirror of https://github.com/knative/func.git
fix: on cluster build - workaround for Tekton issue with empty array (#1214)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com> Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
parent
a0b772c2cb
commit
2ee2c61b8b
|
|
@ -134,6 +134,10 @@ func generatePipelineRun(f fn.Function, labels map[string]string) *pplnv1beta1.P
|
||||||
envs = append(envs, e.KeyValuePair())
|
envs = append(envs, e.KeyValuePair())
|
||||||
}
|
}
|
||||||
buildEnvs.ArrayVal = envs
|
buildEnvs.ArrayVal = envs
|
||||||
|
} else {
|
||||||
|
// need to hack empty BuildEnvs array on Tekton v0.39.0+
|
||||||
|
// until https://github.com/tektoncd/pipeline/issues/5149 is resolved and released
|
||||||
|
buildEnvs.ArrayVal = append(buildEnvs.ArrayVal, "=")
|
||||||
}
|
}
|
||||||
|
|
||||||
params := []pplnv1beta1.Param{
|
params := []pplnv1beta1.Param{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue