Skip to content

Commit

Permalink
fix(apache#5706): removing trait prefix from condition type
Browse files Browse the repository at this point in the history
  • Loading branch information
lsergio committed Jul 26, 2024
1 parent 3d10994 commit cd14d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/trait/trait_condition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd14d3d

Please sign in to comment.