Skip to content

Commit 7e4e8f1

Browse files
committed
Tinker with naming
1 parent f21d970 commit 7e4e8f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/watch/watcher.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ func (w *Watcher) Watch(ctx context.Context) error {
8181
}
8282
resourceGroups := maps.Values(uniqueResourceGroups)
8383

84-
if err = w.bootstrap(ctx, resourceGroups); err != nil {
85-
return fmt.Errorf("failed to bootstrap: %w", err)
84+
if err = w.init(ctx, resourceGroups); err != nil {
85+
return fmt.Errorf("failed to initialize: %w", err)
8686
}
8787
return w.watch(ctx, resourceGroups)
8888
}
8989

90-
func (w *Watcher) bootstrap(ctx context.Context, groups []k8s.ResourceType) error {
91-
slog.Info("bootstrapping")
90+
func (w *Watcher) init(ctx context.Context, groups []k8s.ResourceType) error {
91+
slog.Info("initializing")
9292
for _, group := range groups {
9393
resources, err := w.k8sClient.GetRawResources(ctx, group)
9494
if err != nil {

0 commit comments

Comments
 (0)