Skip to content

Commit

Permalink
Reconcile kube-router only if cfg changed
Browse files Browse the repository at this point in the history
Commit 65b05d5 added a check so that kube-router was only reconciled
if the config has changed, however, the previous configuration wasn't
stored at all.

Signed-off-by: Juan Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
  • Loading branch information
juanluisvaladas committed Nov 16, 2022
1 parent fe7f78c commit 8f89bab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/component/controller/kuberouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (k *KubeRouter) Reconcile(_ context.Context, clusterConfig *v1beta1.Cluster
if err != nil {
return fmt.Errorf("error writing kube-router manifests, will NOT retry: %w", err)
}
k.previousConfig = cfg
return nil
}

Expand Down

0 comments on commit 8f89bab

Please sign in to comment.