Skip to content

Commit

Permalink
Merge pull request #441 from MartinBasti/fix-missing-build-annotations
Browse files Browse the repository at this point in the history
fix(binding-PLR): missing build labels/annotations
  • Loading branch information
MartinBasti authored Nov 24, 2023
2 parents 156eb32 + 1670e26 commit 647ea44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/binding/snapshotenvironmentbinding_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ func (a *Adapter) createIntegrationPipelineRunWithEnvironment(application *appli
_ = metadata.CopyAnnotationsByPrefix(&snapshot.ObjectMeta, &pipelineRun.ObjectMeta, gitops.PipelinesAsCodePrefix)
_ = metadata.CopyLabelsByPrefix(&snapshot.ObjectMeta, &pipelineRun.ObjectMeta, gitops.PipelinesAsCodePrefix)

// Copy build labels and annotations prefixed with build.appstudio from snapshot to integration test PipelineRuns
_ = metadata.CopyLabelsByPrefix(&snapshot.ObjectMeta, &pipelineRun.ObjectMeta, gitops.BuildPipelineRunPrefix)
_ = metadata.CopyAnnotationsByPrefix(&snapshot.ObjectMeta, &pipelineRun.ObjectMeta, gitops.BuildPipelineRunPrefix)

err = ctrl.SetControllerReference(snapshot, pipelineRun, a.client.Scheme())
if err != nil {
return nil, err
Expand Down

0 comments on commit 647ea44

Please sign in to comment.