Skip to content

Commit

Permalink
Update src/pepr/operator/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Nagel <[email protected]>
  • Loading branch information
catsby and mjnagel authored Dec 19, 2024
1 parent d25399d commit 5fd238c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pepr/operator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ if (process.env.PEPR_WATCH_MODE === "true" || process.env.PEPR_MODE === "dev") {
void initAPIServerCIDR();
}

void initAllNodesTarget();
// Pre-populate the Node CIDR list since we are not persisting it
// Note ignore any errors since the watch will still be running hereafter
if (process.env.PEPR_WATCH_MODE === "true" || process.env.PEPR_MODE === "dev") {
void initAllNodesTarget();
}

// Watch for changes to the API server EndpointSlice and update the API server CIDR
// Skip if a CIDR is defined in the UDS Config
Expand Down

0 comments on commit 5fd238c

Please sign in to comment.