add s2irun controller test

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-03-19 10:35:15 +08:00
parent 6a7bf0a86f
commit 71898e59dd
5 changed files with 319 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ type S2iBinaryController struct {
func NewController(client clientset.Interface,
devopsclientset devopsclient.Interface,
s2ibinInformer devopsinformers.S2iBinaryInformer,
s3Client s3.Interface) *S2iBinaryController {
s3Client s3.Interface) *S2iBinaryController {
broadcaster := record.NewBroadcaster()
broadcaster.StartLogging(func(format string, args ...interface{}) {
@@ -59,7 +59,7 @@ func NewController(client clientset.Interface,
s2iBinaryLister: s2ibinInformer.Lister(),
s2iBinarySynced: s2ibinInformer.Informer().HasSynced,
workerLoopPeriod: time.Second,
s3Client: s3Client,
s3Client: s3Client,
}
v.eventBroadcaster = broadcaster