Skip to content

Commit aaedb3a

Browse files
committed
fix(#5706): removing trait prefix from condition type
1 parent 26d43fd commit aaedb3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/trait/trait_condition_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ func NewIntegrationConditionPlatformDisabledCatalogMissing() *TraitCondition {
7676
}
7777

7878
func (tc *TraitCondition) integrationCondition() (v1.IntegrationConditionType, corev1.ConditionStatus, string, string) {
79-
return v1.IntegrationConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType)),
79+
return v1.IntegrationConditionType(tc.integrationConditionType),
8080
tc.conditionStatus,
8181
tc.reason,
8282
tc.message
8383
}
8484

8585
func (tc *TraitCondition) integrationKitCondition() (v1.IntegrationKitConditionType, corev1.ConditionStatus, string, string) {
86-
return v1.IntegrationKitConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType)),
86+
return v1.IntegrationKitConditionType(tc.integrationConditionType),
8787
tc.conditionStatus,
8888
tc.reason,
8989
tc.message

0 commit comments

Comments
 (0)