Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
Remove check that avoids the render of the template and comparison of…
Browse files Browse the repository at this point in the history
… the md5
  • Loading branch information
aledbf committed Apr 9, 2019
1 parent bffd6b6 commit c9ac529
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ type ipvsControllerController struct {
keepalived *keepalived

configMapName string
configMapResourceVersion string

httpPort int

Expand Down Expand Up @@ -258,17 +257,12 @@ func (ipvsc *ipvsControllerController) sync(key interface{}) error {
glog.Warningf("%v", err)
return err
}

cfgMap, err := ipvsc.getConfigMap(ns, name)
if err != nil {
return fmt.Errorf("unexpected error searching configmap %v: %v", ipvsc.configMapName, err)
}

if ipvsc.configMapResourceVersion == cfgMap.ObjectMeta.ResourceVersion {
glog.V(2).Infof("No change to %s ConfigMap", name)
return nil
}

ipvsc.configMapResourceVersion = cfgMap.ObjectMeta.ResourceVersion
svc := ipvsc.getServices(cfgMap)

err = ipvsc.keepalived.WriteCfg(svc)
Expand Down

0 comments on commit c9ac529

Please sign in to comment.