From cd14d3d732fd9fc16a1ad99a914ccf439033a62d Mon Sep 17 00:00:00 2001 From: Luis Sergio Carneiro Date: Fri, 26 Jul 2024 11:02:42 -0300 Subject: [PATCH] fix(#5706): removing trait prefix from condition type --- pkg/trait/trait_condition_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/trait/trait_condition_types.go b/pkg/trait/trait_condition_types.go index 86abc5ea2d..dd4a71fbc4 100644 --- a/pkg/trait/trait_condition_types.go +++ b/pkg/trait/trait_condition_types.go @@ -76,14 +76,14 @@ 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.integrationConditionType), 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.integrationConditionType), tc.conditionStatus, tc.reason, tc.message