Skip to content

Commit

Permalink
operator: fix initial certificate controller sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ironcladlou committed Feb 26, 2019
1 parent b0a1e45 commit 749ce4b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package operator
import (
"context"
"fmt"
"time"

"github.com/openshift/cluster-ingress-operator/pkg/apis"
ingressv1alpha1 "github.com/openshift/cluster-ingress-operator/pkg/apis/ingress/v1alpha1"
Expand Down Expand Up @@ -192,18 +191,10 @@ func (o *Operator) Start(stop <-chan struct{}) error {
log.Info("cache synced")
}

// Sync the CA cert every once in a while.
ticker := time.NewTicker(24 * time.Hour)
// Kick off the certificate controller
go func() {
for {
select {
case <-stop:
return
case <-ticker.C:
ci := ingressv1alpha1.ClusterIngress{}
o.certEvents <- event.GenericEvent{Meta: ci.GetObjectMeta()}
}
}
ci := ingressv1alpha1.ClusterIngress{}
o.certEvents <- event.GenericEvent{Meta: ci.GetObjectMeta()}
}()

// Secondary caches are all synced, so start the manager.
Expand Down

0 comments on commit 749ce4b

Please sign in to comment.