Skip to content

Commit

Permalink
rollback split
Browse files Browse the repository at this point in the history
Signed-off-by: linus-sun <[email protected]>
  • Loading branch information
linus-sun committed Nov 14, 2024
1 parent cb917dd commit 5c0aa51
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions cmd/rekor_monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func main() {
interval := flag.Duration("interval", 5*time.Minute, "Length of interval between each periodical consistency check")
userAgentString := flag.String("user-agent", "", "details to include in the user agent string")
flag.Parse()
flag.Parse()

if *configFilePath == "" && *configYamlInput == "" {
log.Fatalf("empty configuration input")
Expand Down Expand Up @@ -85,9 +84,6 @@ func main() {
}
}

if config.ServerURL == "" {
config.ServerURL = publicRekorServerURL
}
if config.OutputIdentitiesFile == "" {
config.OutputIdentitiesFile = outputIdentitiesFileName
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@ type IdentityMonitorConfiguration struct {
StartIndex *int `yaml:"startIndex"`
EndIndex *int `yaml:"endIndex"`
MonitoredValues ConfigMonitoredValues `yaml:"monitoredValues"`
ServerURL string `yaml:"serverURL"`
OutputIdentitiesFile string `yaml:"outputIdentities"`
LogInfoFile string `yaml:"logInfoFile"`
IdentityMetadataFile *string `yaml:"identityMetadataFile"`
GitHubIssue *GitHubIssueInput `yaml:"githubIssue"`
EmailNotificationSMTP *EmailNotificationInput `yaml:"emailNotificationSMTP"`
EmailNotificationMailgun *MailgunNotificationInput `yaml:"emailNotificationMailgun"`
EmailNotificationSendGrid *SendGridNotificationInput `yaml:"emailNotificationSendGrid"`
Interval *time.Duration `yaml:"interval"`
}

func CreateNotificationPool(config IdentityMonitorConfiguration) []NotificationPlatform {
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/rekor_e2e/rekor_monitor_e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ echo
echo "running tests"

popd
go test -tags=e2e -v -race ./pkg/test/identity_workflow/...
go test -tags=e2e -v -race ./pkg/test/rekor_e2e/...

0 comments on commit 5c0aa51

Please sign in to comment.