Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interfaces for Image Watcher #902

Merged
merged 4 commits into from Oct 5, 2020
Merged

Add interfaces for Image Watcher #902

merged 4 commits into from Oct 5, 2020

Conversation

nakabonne
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

TODO

The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use /todo skip command.

Details

1. Emit log

https://github.com/pipe-cd/pipe/blob/ca360fca61ac82febf95102f56810f160f61e7b5/pkg/app/piped/imagewatcher/watcher.go#L53-L56

This was created by todo plugin since "FIXME:" was found in ca360fc when #902 was merged. cc: @nakabonne.

@nakabonne
Copy link
Member Author

/todo skip

Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

pkg/app/piped/imagewatcher/watcher.go Show resolved Hide resolved
pkg/app/piped/imagewatcher/watcher.go Show resolved Hide resolved
pkg/app/piped/imagewatcher/watcher.go Show resolved Hide resolved
@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 23.95%. This pull request does not change code coverage.

Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

type imageRepo struct {
}

func NewWatcher(interval time.Duration, logger *zap.Logger) Watcher {
Copy link
Collaborator

Choose a reason for hiding this comment

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

logger is unused in NewWatcher

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 23.95%. This pull request does not change code coverage.

@@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "go_default_library",
srcs = ["registry.go"],
importpath = "github.com/pipe-cd/pipe/pkg/app/piped/containerregistry",
srcs = ["gcs.go"],
Copy link
Member

Choose a reason for hiding this comment

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

typo: gcr?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, a big mistake.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 23.95%. This pull request does not change code coverage.

@nghialv
Copy link
Member

nghialv commented Oct 5, 2020

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit d6b3a5a into master Oct 5, 2020
@pipecd-bot pipecd-bot deleted the watcher-interface branch October 5, 2020 08:51
@pipecd-bot pipecd-bot mentioned this pull request Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants