Skip to content

Commit 34f6fae

Browse files
committed
chore(STONEINTG-1189): annotate PLR when component is missing
This fixes a silent failure where the Build PipelineRun would stall if the appstudio.openshift.io/component label was incorrect, not found, or missing entirely. Changes: * Added logic to catch "Component Not Found" errors during loader. * Added logic to catch cases where the component label is nil. * In both cases, the PipelineRun is now annotated with test.appstudio.openshift.io/create-snapshot-status="failed". * Ensured Finalizer is removed if component is not found, allowing resource deletion. Testing: * Added unit tests in buildpipeline_controller_test.go covering both scenarios. Generated-by: Cursor Signed-off-by: jcullina <[email protected]>
1 parent f8356bd commit 34f6fae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/buildpipeline/buildpipeline_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package buildpipeline
1919
import (
2020
"context"
2121
"fmt"
22+
2223
"github.com/konflux-ci/integration-service/cache"
2324
"k8s.io/client-go/util/retry"
2425

0 commit comments

Comments
 (0)