Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/v1beta1/eventreport_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ type EventReportStatus struct {
// Phase represents the current phase of report.
// +optional
Phase *ReportPhase `json:"phase,omitempty"`

// FailureMessage reports the error hit while generating ClusterProfile(s) from this
// EventReport, if any. Set when processing fails; cleared on success.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
7 changes: 6 additions & 1 deletion api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions config/crd/bases/lib.projectsveltos.io_eventreports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ spec:
status:
description: EventReportStatus defines the observed state of EventReport
properties:
failureMessage:
description: |-
FailureMessage reports the error hit while generating ClusterProfile(s) from this
EventReport, if any. Set when processing fails; cleared on success.
type: string
phase:
description: Phase represents the current phase of report.
enum:
Expand Down
5 changes: 5 additions & 0 deletions lib/crd/eventreports.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ spec:
status:
description: EventReportStatus defines the observed state of EventReport
properties:
failureMessage:
description: |-
FailureMessage reports the error hit while generating ClusterProfile(s) from this
EventReport, if any. Set when processing fails; cleared on success.
type: string
phase:
description: Phase represents the current phase of report.
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ spec:
status:
description: EventReportStatus defines the observed state of EventReport
properties:
failureMessage:
description: |-
FailureMessage reports the error hit while generating ClusterProfile(s) from this
EventReport, if any. Set when processing fails; cleared on success.
type: string
phase:
description: Phase represents the current phase of report.
enum:
Expand Down