@@ -23,18 +23,18 @@ import (
23
23
24
24
// CRDAppFactory allows to create CRDApps.
25
25
type CRDAppFactory struct {
26
- CoreClient kubernetes.Interface
27
- AppClient kcclient.Interface
28
- KcConfig * config.Config
29
- CountMetrics * metrics.ReconcileCountMetrics
30
- TimeMetrics * metrics.ReconcileTimeMetrics
31
- VendirConfigHook func (vendirconf.Config ) vendirconf.Config
32
- KbldAllowBuild bool
33
- CmdRunner exec.CmdRunner
34
- Kubeconf * kubeconfig.Kubeconfig
35
- CompInfo ComponentInfo
36
- DeployFactory deploy.Factory
37
- CacheFolder * memdir.TmpDir
26
+ CoreClient kubernetes.Interface
27
+ AppClient kcclient.Interface
28
+ KcConfig * config.Config
29
+ CountMetrics * metrics.ReconcileCountMetrics
30
+ ReconcileTimeMetrics * metrics.ReconcileTimeMetrics
31
+ VendirConfigHook func (vendirconf.Config ) vendirconf.Config
32
+ KbldAllowBuild bool
33
+ CmdRunner exec.CmdRunner
34
+ Kubeconf * kubeconfig.Kubeconfig
35
+ CompInfo ComponentInfo
36
+ DeployFactory deploy.Factory
37
+ CacheFolder * memdir.TmpDir
38
38
}
39
39
40
40
// NewCRDApp creates a CRDApp injecting necessary dependencies.
@@ -49,7 +49,7 @@ func (f *CRDAppFactory) NewCRDApp(app *kcv1alpha1.App, log logr.Logger) *CRDApp
49
49
templateFactory := template .NewFactory (f .CoreClient , fetchFactory , f .KbldAllowBuild , f .CmdRunner )
50
50
deployFactory := deploy .NewFactory (f .CoreClient , f .Kubeconf , f .KcConfig , f .CmdRunner , log )
51
51
52
- return NewCRDApp (app , log , f .CountMetrics , f .TimeMetrics , f .AppClient , fetchFactory , templateFactory , deployFactory , f .CompInfo , Opts {
52
+ return NewCRDApp (app , log , f .CountMetrics , f .ReconcileTimeMetrics , f .AppClient , fetchFactory , templateFactory , deployFactory , f .CompInfo , Opts {
53
53
DefaultSyncPeriod : f .KcConfig .AppDefaultSyncPeriod (),
54
54
MinimumSyncPeriod : f .KcConfig .AppMinimumSyncPeriod (),
55
55
})
0 commit comments