Skip to content

Commit

Permalink
fix(trait): condition kit type
Browse files Browse the repository at this point in the history
Closes #5381
  • Loading branch information
squakez committed Apr 19, 2024
1 parent 1e72282 commit afcc4a9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/trait/trait_condition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ const (
// TraitCondition is used to get all information/warning about a trait configuration.
// It should either use an IntegrationConditionType or IntegrationKitConditionType.
type TraitCondition struct {
traitID string
integrationConditionType v1.IntegrationConditionType
integrationKitConditionType v1.IntegrationKitConditionType
conditionStatus corev1.ConditionStatus
message string
reason string
traitID string
integrationConditionType v1.IntegrationConditionType
conditionStatus corev1.ConditionStatus
message string
reason string
}

func NewIntegrationCondition(traitID string, ict v1.IntegrationConditionType, cs corev1.ConditionStatus, reason, message string) *TraitCondition {
Expand Down Expand Up @@ -73,7 +72,7 @@ func (tc *TraitCondition) integrationCondition() (v1.IntegrationConditionType, c
}

func (tc *TraitCondition) integrationKitCondition() (v1.IntegrationKitConditionType, corev1.ConditionStatus, string, string) {
return v1.IntegrationKitConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationKitConditionType)),
return v1.IntegrationKitConditionType(fmt.Sprintf("%s%s", tc.traitID, tc.integrationConditionType)),
tc.conditionStatus,
tc.reason,
tc.message
Expand Down

0 comments on commit afcc4a9

Please sign in to comment.