Skip to content

Commit

Permalink
fix: on cluster build - workaround for Tekton issue with empty array (#…
Browse files Browse the repository at this point in the history
…1214)

Signed-off-by: Zbynek Roubalik <[email protected]>

Signed-off-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
zroubalik authored Sep 7, 2022
1 parent a0b772c commit 2ee2c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipelines/tekton/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ func generatePipelineRun(f fn.Function, labels map[string]string) *pplnv1beta1.P
envs = append(envs, e.KeyValuePair())
}
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{
Expand Down

0 comments on commit 2ee2c61

Please sign in to comment.