Skip to content

Commit

Permalink
🐛 [patch] Fix the validation of stable reconcile (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinref authored Apr 23, 2020
1 parent 33d9a5a commit 8478e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/stablecomponent/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *controller) Reconcile(req cr.Request) (cr.Result, error) {
func (c *controller) detectSpecChanged(stableComp *s2hv1beta1.StableComponent, teamComp *s2hv1beta1.Team) bool {
if stableComp != nil {
teamStableComp := teamComp.Status.GetStableComponent(stableComp.Name)
if teamStableComp.Name != "" {
if teamStableComp.Spec.Name != "" {
if teamStableComp.Spec == stableComp.Spec {
return false
}
Expand Down

0 comments on commit 8478e97

Please sign in to comment.