Skip to content

Commit

Permalink
Track info.Err in the status field
Browse files Browse the repository at this point in the history
This allows the reconcilation errors such as errors encountered in the
object transformers to be tracked in the field `status.errors`.
  • Loading branch information
haiyanmeng committed May 31, 2024
1 parent 83bd9c0 commit dac9d4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/patterns/addon/pkg/status/kstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (k *kstatusAggregator) BuildStatus(ctx context.Context, info *declarative.S

shouldComputeHealthFromObjects := info.Manifest != nil && info.LiveObjects != nil
if info.Err != nil {
currentStatus.Errors = []string{info.Err.Error()}
switch info.KnownError {
case declarative.KnownErrorApplyFailed:
currentStatus.Phase = "Applying"
Expand Down

0 comments on commit dac9d4c

Please sign in to comment.