Skip to content

Commit 02cb83c

Browse files
committed
Pass gke cluster name config value to watcher
1 parent 3eb0505 commit 02cb83c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/watch/watcher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ type Watcher struct {
2424

2525
func NewWatcher(
2626
googleCloudProjectID string,
27+
gkeClusterName string,
2728
k8sClient k8sClient,
2829
store store,
2930
notifier notifier,
3031
) *Watcher {
3132
return &Watcher{
3233
googleCloudProjectID: googleCloudProjectID,
34+
gkeClusterName: gkeClusterName,
3335
k8sClient: k8sClient,
3436
store: store,
3537
notifier: notifier,

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func run(ctx context.Context) error {
6565

6666
watcher := watch.NewWatcher(
6767
conf.GoogleCloudProjectID,
68+
conf.GKEClusterName,
6869
k8sClient,
6970
store,
7071
notification.NewAggregateNotifier(notifiers),

0 commit comments

Comments
 (0)