Skip to content

Commit

Permalink
minor changes in letsencrypt kube store
Browse files Browse the repository at this point in the history
  • Loading branch information
YourTechBud committed Dec 5, 2020
1 parent 3abb7f0 commit e5379e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gateway/managers/syncman/store_kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (s *KubeStore) WatchResources(cb func(eventType, resourceID string, resourc
var options internalinterfaces.TweakListOptionsFunc = func(options *v12.ListOptions) {
options.LabelSelector = fmt.Sprintf("clusterId=%s", s.clusterID)
}
informer := informers.NewSharedInformerFactoryWithOptions(s.kube, 5*time.Minute, informers.WithTweakListOptions(options)).Core().V1().ConfigMaps().Informer()
informer := informers.NewSharedInformerFactoryWithOptions(s.kube, 15*time.Minute, informers.WithTweakListOptions(options)).Core().V1().ConfigMaps().Informer()
stopper := make(chan struct{})
defer close(stopper)
defer runtime.HandleCrash() // handles a crash & logs an error
Expand Down Expand Up @@ -164,7 +164,7 @@ func (s *KubeStore) WatchServices(cb func(scServices)) error {
var options internalinterfaces.TweakListOptionsFunc = func(options *v12.ListOptions) {
options.LabelSelector = fmt.Sprintf("app=%s,clusterId=%s", "gateway", s.clusterID)
}
informer := informers.NewSharedInformerFactoryWithOptions(s.kube, 5*time.Minute, informers.WithTweakListOptions(options)).Core().V1().Pods().Informer()
informer := informers.NewSharedInformerFactoryWithOptions(s.kube, 15*time.Minute, informers.WithTweakListOptions(options)).Core().V1().Pods().Informer()
stopper := make(chan struct{})
defer close(stopper)
defer runtime.HandleCrash()
Expand Down
2 changes: 1 addition & 1 deletion gateway/modules/global/letsencrypt/kube_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (s *KubeStore) generateSecretValue(key string, value []byte) *v1.Secret {
Data: map[string][]byte{
"value": value,
"size": {byte(len(value))},
"modified": []byte(time.Now().String()),
"modified": []byte(time.Now().Format(time.RFC3339Nano)),
},
}
}
Expand Down

0 comments on commit e5379e8

Please sign in to comment.