Skip to content

Commit

Permalink
feat(ctrl): add kit failure reason condition
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Sep 29, 2023
1 parent 407edd4 commit fe46bdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/camel/v1/integration_types_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ func (in *Integration) SetIntegrationKit(kit *IntegrationKit) {
message = "creating a new integration kit"
} else {
message = fmt.Sprintf("integration kit %s/%s is in state %q", kit.Namespace, kit.Name, kit.Status.Phase)
if kit.Status.Phase == IntegrationKitPhaseError {
// Append specific reason for the failure
message = message + ". Failure: " + kit.Status.Failure.Reason
}
}
}

Expand Down

0 comments on commit fe46bdd

Please sign in to comment.