Skip to content

Commit b5e7966

Browse files
authored
Merge pull request #606 from jstourac/addSpanForTest
RHOAIENG-23765: Add span event when ImageStream isn't found.
2 parents 29c1146 + 9965155 commit b5e7966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/odh-notebook-controller/controllers/notebook_webhook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ func SetContainerImageFromRegistry(ctx context.Context, cli client.Client, noteb
732732
err = cli.Get(ctx, types.NamespacedName{Name: imagestreamName, Namespace: notebook.Namespace}, imgSelection)
733733
if err != nil {
734734
log.Error(err, "Error getting ImageStream", "imagestream", imagestreamName, "controllerNamespace", controllerNamespace)
735+
span.AddEvent(IMAGE_STREAM_NOT_FOUND_EVENT)
735736
} else {
736737
// ImageStream found in the notebook namespace
737738
imagestreamFound = true

0 commit comments

Comments
 (0)