Skip to content

Commit ac8ec2e

Browse files
committed
Refactor bucket pkg structure
Signed-off-by: Stefan Prodan <[email protected]>
1 parent d69d743 commit ac8ec2e

File tree

8 files changed

+4
-4
lines changed

8 files changed

+4
-4
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/minio/minio_test.go renamed to internal/bucket/minio/minio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ func getObjectFile() string {
817817
}
818818

819819
func loadServerCertAndClientTLSConfig() (serverCert string, serverKey string, clientConf *tls.Config, err error) {
820-
const certsDir = "../../internal/controller/testdata/certs"
820+
const certsDir = "../../controller/testdata/certs"
821821
clientConf = &tls.Config{}
822822

823823
serverCert, err = filepath.Abs(filepath.Join(certsDir, "server.pem"))

internal/controller/bucket_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ import (
5656
"github.com/fluxcd/pkg/sourceignore"
5757

5858
sourcev1 "github.com/fluxcd/source-controller/api/v1"
59+
"github.com/fluxcd/source-controller/internal/bucket/azure"
60+
"github.com/fluxcd/source-controller/internal/bucket/gcp"
61+
"github.com/fluxcd/source-controller/internal/bucket/minio"
5962
intdigest "github.com/fluxcd/source-controller/internal/digest"
6063
serror "github.com/fluxcd/source-controller/internal/error"
6164
"github.com/fluxcd/source-controller/internal/index"
6265
sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
6366
"github.com/fluxcd/source-controller/internal/reconcile/summarize"
64-
"github.com/fluxcd/source-controller/pkg/azure"
65-
"github.com/fluxcd/source-controller/pkg/gcp"
66-
"github.com/fluxcd/source-controller/pkg/minio"
6767
)
6868

6969
// maxConcurrentBucketFetches is the upper bound on the goroutines used to

0 commit comments

Comments
 (0)