Skip to content

Commit dac9d4c

Browse files
committed
Track info.Err in the status field
This allows the reconcilation errors such as errors encountered in the object transformers to be tracked in the field `status.errors`.
1 parent 83bd9c0 commit dac9d4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/patterns/addon/pkg/status/kstatus.go

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func (k *kstatusAggregator) BuildStatus(ctx context.Context, info *declarative.S
8888

8989
shouldComputeHealthFromObjects := info.Manifest != nil && info.LiveObjects != nil
9090
if info.Err != nil {
91+
currentStatus.Errors = []string{info.Err.Error()}
9192
switch info.KnownError {
9293
case declarative.KnownErrorApplyFailed:
9394
currentStatus.Phase = "Applying"

0 commit comments

Comments
 (0)