Skip to content

Commit

Permalink
fix(dataplane_watchdog): fix outdated comment
Browse files Browse the repository at this point in the history
Signed-off-by: nicoche <78445450+nicoche@users.noreply.github.com>
  • Loading branch information
nicoche committed Aug 22, 2023
1 parent d76c36a commit 18af7af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/xds/sync/dataplane_watchdog.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ func (d *DataplaneWatchdog) syncDataplane(ctx context.Context, metadata *core_xd
return result, nil
}

// syncIngress synces state of Ingress Dataplane. Notice that it does not use Mesh Hash yet because Ingress supports many Meshes.
// syncIngress synces state of Ingress Dataplane.
// It uses Mesh Hash to decide if we need to regenerate configuration or not.
func (d *DataplaneWatchdog) syncIngress(ctx context.Context, metadata *core_xds.DataplaneMetadata) (SyncResult, error) {
envoyCtx := &xds_context.Context{
ControlPlane: d.EnvoyCpCtx,
Expand Down Expand Up @@ -206,8 +207,8 @@ func (d *DataplaneWatchdog) syncIngress(ctx context.Context, metadata *core_xds.
return result, nil
}

// syncEgress syncs state of Egress Dataplane. Notice that it does not use
// Mesh Hash yet because Egress supports many Meshes.
// syncEgress syncs state of Egress Dataplane.
// It uses Mesh Hash to decide if we need to regenerate configuration or not.
func (d *DataplaneWatchdog) syncEgress(ctx context.Context, metadata *core_xds.DataplaneMetadata) (SyncResult, error) {
envoyCtx := &xds_context.Context{
ControlPlane: d.EnvoyCpCtx,
Expand Down

0 comments on commit 18af7af

Please sign in to comment.