Backport of Log Warnings When Peering With Mesh Gateway Mode None into release/1.14.x (#15310)

This pull request was automerged via backport-assistant
pull/15314/head
hc-github-team-consul-core 2 years ago committed by GitHub
parent 11aaa9bcb3
commit 5843befad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,6 +292,8 @@ func (s *handlerConnectProxy) setupWatchesForPeeredUpstream(
}
snapConnectProxy.WatchedLocalGWEndpoints.InitWatch(gk.String(), nil)
}
} else if mgwMode == structs.MeshGatewayModeNone {
s.logger.Warn(fmt.Sprintf("invalid mesh gateway mode 'none', defaulting to 'remote' for %q", uid))
}
return nil
}

Loading…
Cancel
Save