diff --git a/pkg/trait/trait_condition_types.go b/pkg/trait/trait_condition_types.go index 86abc5ea2d..c749f414fc 100644 --- a/pkg/trait/trait_condition_types.go +++ b/pkg/trait/trait_condition_types.go @@ -76,15 +76,23 @@ func NewIntegrationConditionPlatformDisabledCatalogMissing() *TraitCondition { } func (tc *TraitCondition) integrationCondition() (v1.IntegrationConditionType, corev1.ConditionStatus, string, string) { - return v1.IntegrationConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType)), + return v1.IntegrationConditionType(tc.traitTypeForCondition()), tc.conditionStatus, tc.reason, tc.message } func (tc *TraitCondition) integrationKitCondition() (v1.IntegrationKitConditionType, corev1.ConditionStatus, string, string) { - return v1.IntegrationKitConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType)), + return v1.IntegrationKitConditionType(tc.traitTypeForCondition()), tc.conditionStatus, tc.reason, tc.message } + +func (tc *TraitCondition) traitTypeForCondition() string { + conditionType := string(tc.integrationConditionType) + if conditionType == "TraitInfo" { + conditionType = fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType) + } + return conditionType +}