Skip to content

Commit 97d9201

Browse files
committed
chore(STONEINTG-1189): annotate build PLR when component is missing
or not found. This fixes a silent failure scenario where the Build PipelineRun would stall if the appstudio.openshift.io/component label was incorrect, no found or missing entirely. Changes: * Added logic to catch "Component Not Found" errors during the loader phase. * 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 the Finalizer is still correctly removed if the component is not found, allowing the resource to be deleted. Testing: * Added unit tests in buildpipeline_controller_test.go covering both the not found scenario and the missing label scenario. Generated by: Cursor Signed-off-by: jcullina <[email protected]>
1 parent f8356bd commit 97d9201

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)