Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric McKinnie committed Jun 29, 2023
1 parent c780607 commit 9f1ea7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/api-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func main() {
triggers.WithHostnameIdentifier(),
triggers.WithTestkubeNamespace(cfg.TestkubeNamespace),
triggers.WithWatcherNamespaces(cfg.TestkubeWatcherNamespaces),
triggers.WithWatchAllTestkubeResources(cfg.TestkubeWatchAll),
triggers.WatchTestkubeCrAllNamespaces(cfg.TestkubeWatchAll),
)
log.DefaultLogger.Info("starting trigger service")
triggerService.Run(ctx)
Expand Down
4 changes: 2 additions & 2 deletions pkg/triggers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ func WithWatcherNamespaces(namespaces string) Option {
}
}

func WithWatchAllTestkubeResources(watchAllTestkubeResources bool) Option {
func WatchTestkubeCrAllNamespaces(watchTestkubeCrAllNamespaces bool) Option {
return func(s *Service) {
s.watchTestkubeCrAllNamespaces = watchAllTestkubeResources
s.watchTestkubeCrAllNamespaces = watchTestkubeCrAllNamespaces
}
}

Expand Down

0 comments on commit 9f1ea7a

Please sign in to comment.