Skip to content

Commit

Permalink
fix comp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Sep 27, 2024
1 parent 5cc2d62 commit 6025119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/apps/componentversion_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (r *ComponentVersionReconciler) compatibleCompVersion(ctx context.Context,
func (r *ComponentVersionReconciler) isCompatibleWith(compDef appsv1alpha1.ComponentDefinition, compVer appsv1alpha1.ComponentVersion) bool {
for _, rule := range compVer.Spec.CompatibilityRules {
for _, name := range rule.CompDefs {
if strings.HasPrefix(compDef.Name, name) {
if component.CompDefMatched(compDef.Name, name) {
return true
}
}
Expand Down

0 comments on commit 6025119

Please sign in to comment.