add UT for util.go

This commit is contained in:
wackxu
2018-08-27 20:43:59 +08:00
parent 0fa91a7df2
commit bd24010ed5
2 changed files with 129 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ import (
"k8s.io/client-go/tools/cache"
"os"
"strconv"
"time"
)
var (
@@ -234,3 +235,8 @@ func GetCredentials(k8s kubernetes.Interface, ref *v1.SecretReference) (map[stri
}
return credentials, nil
}
// Returns 0 for resyncPeriod in case resyncing is not needed.
func NoResyncPeriodFunc() time.Duration {
return 0
}