Refactor bucket pkg structure
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
d69d743e75
commit
ac8ec2e32a
|
|
@ -817,7 +817,7 @@ func getObjectFile() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadServerCertAndClientTLSConfig() (serverCert string, serverKey string, clientConf *tls.Config, err error) {
|
func loadServerCertAndClientTLSConfig() (serverCert string, serverKey string, clientConf *tls.Config, err error) {
|
||||||
const certsDir = "../../internal/controller/testdata/certs"
|
const certsDir = "../../controller/testdata/certs"
|
||||||
clientConf = &tls.Config{}
|
clientConf = &tls.Config{}
|
||||||
|
|
||||||
serverCert, err = filepath.Abs(filepath.Join(certsDir, "server.pem"))
|
serverCert, err = filepath.Abs(filepath.Join(certsDir, "server.pem"))
|
||||||
|
|
@ -56,14 +56,14 @@ import (
|
||||||
"github.com/fluxcd/pkg/sourceignore"
|
"github.com/fluxcd/pkg/sourceignore"
|
||||||
|
|
||||||
sourcev1 "github.com/fluxcd/source-controller/api/v1"
|
sourcev1 "github.com/fluxcd/source-controller/api/v1"
|
||||||
|
"github.com/fluxcd/source-controller/internal/bucket/azure"
|
||||||
|
"github.com/fluxcd/source-controller/internal/bucket/gcp"
|
||||||
|
"github.com/fluxcd/source-controller/internal/bucket/minio"
|
||||||
intdigest "github.com/fluxcd/source-controller/internal/digest"
|
intdigest "github.com/fluxcd/source-controller/internal/digest"
|
||||||
serror "github.com/fluxcd/source-controller/internal/error"
|
serror "github.com/fluxcd/source-controller/internal/error"
|
||||||
"github.com/fluxcd/source-controller/internal/index"
|
"github.com/fluxcd/source-controller/internal/index"
|
||||||
sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
|
sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
|
||||||
"github.com/fluxcd/source-controller/internal/reconcile/summarize"
|
"github.com/fluxcd/source-controller/internal/reconcile/summarize"
|
||||||
"github.com/fluxcd/source-controller/pkg/azure"
|
|
||||||
"github.com/fluxcd/source-controller/pkg/gcp"
|
|
||||||
"github.com/fluxcd/source-controller/pkg/minio"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// maxConcurrentBucketFetches is the upper bound on the goroutines used to
|
// maxConcurrentBucketFetches is the upper bound on the goroutines used to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue