Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/app/piped/appconfigreporter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ go_test(
srcs = ["appconfigreporter_test.go"],
embed = [":go_default_library"],
deps = [
"//pkg/config:go_default_library",
"//pkg/model:go_default_library",
"@com_github_stretchr_testify//assert:go_default_library",
"@org_uber_go_zap//:go_default_library",
Expand Down
30 changes: 15 additions & 15 deletions pkg/app/piped/cmd/piped/piped.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
"github.com/pipe-cd/pipe/pkg/app/piped/apistore/deploymentstore"
"github.com/pipe-cd/pipe/pkg/app/piped/apistore/environmentstore"
"github.com/pipe-cd/pipe/pkg/app/piped/apistore/eventstore"
"github.com/pipe-cd/pipe/pkg/app/piped/appconfigreporter"
_ "github.com/pipe-cd/pipe/pkg/app/piped/appconfigreporter"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a blank import should be only in a main or test package, or have a comment justifying it

"github.com/pipe-cd/pipe/pkg/app/piped/chartrepo"
k8scloudprovidermetrics "github.com/pipe-cd/pipe/pkg/app/piped/cloudprovider/kubernetes/kubernetesmetrics"
"github.com/pipe-cd/pipe/pkg/app/piped/controller"
Expand Down Expand Up @@ -448,20 +448,20 @@ func (p *piped) run(ctx context.Context, input cli.Input) (runErr error) {
}

// Start running app-config-reporter.
{
r := appconfigreporter.NewReporter(
apiClient,
gitClient,
applicationLister,
cfg,
p.gracePeriod,
input.Logger,
)

group.Go(func() error {
return r.Run(ctx)
})
}
// {
// r := appconfigreporter.NewReporter(
// apiClient,
// gitClient,
// applicationLister,
// cfg,
// p.gracePeriod,
// input.Logger,
// )

// group.Go(func() error {
// return r.Run(ctx)
// })
// }

// Wait until all piped components have finished.
// A terminating signal or a finish of any components
Expand Down