Move util to specific package location
This commit is contained in:
parent
0cc43d5e52
commit
7304086202
11 changed files with 13 additions and 17 deletions
|
|
@ -43,9 +43,8 @@ import (
|
|||
"k8s.io/ingress-nginx/internal/ingress"
|
||||
|
||||
ngx_config "k8s.io/ingress-nginx/internal/ingress/controller/config"
|
||||
"k8s.io/ingress-nginx/internal/watch"
|
||||
|
||||
"k8s.io/ingress-nginx/pkg/util/file"
|
||||
|
||||
klog "k8s.io/klog/v2"
|
||||
)
|
||||
|
||||
|
|
@ -509,8 +508,8 @@ func NewTLSListener(certificate, key string) *TLSListener {
|
|||
|
||||
l.load()
|
||||
|
||||
_, _ = watch.NewFileWatcher(certificate, l.load)
|
||||
_, _ = watch.NewFileWatcher(key, l.load)
|
||||
_, _ = file.NewFileWatcher(certificate, l.load)
|
||||
_, _ = file.NewFileWatcher(key, l.load)
|
||||
|
||||
return &l
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue