Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9] Ensure Proxy uses cache for periodic operations #20152

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/reversetunnel/rc_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (w *RemoteClusterTunnelManager) Run(ctx context.Context) {
func (w *RemoteClusterTunnelManager) Sync(ctx context.Context) error {
// Fetch desired reverse tunnels and convert them to a set of
// remoteClusterKeys.
wantTunnels, err := w.cfg.AuthClient.GetReverseTunnels(ctx)
wantTunnels, err := w.cfg.AccessPoint.GetReverseTunnels(ctx)
if err != nil {
return trace.Wrap(err)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/reversetunnel/rc_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestRemoteClusterTunnelManagerSync(t *testing.T) {
ctx := context.Background()
for _, tt := range tests {
t.Run(tt.desc, func(t *testing.T) {
w.cfg.AuthClient = mockAuthClient{
w.cfg.AccessPoint = mockAuthClient{
reverseTunnels: tt.reverseTunnels,
reverseTunnelsErr: tt.reverseTunnelsErr,
}
Expand Down
2 changes: 1 addition & 1 deletion lib/reversetunnel/srv.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (s *server) periodicFunctions() {

connectedRemoteClusters := s.getRemoteClusters()

remoteClusters, err := s.localAuthClient.GetRemoteClusters()
remoteClusters, err := s.localAccessPoint.GetRemoteClusters()
if err != nil {
s.log.WithError(err).Warn("Failed to get remote clusters")
}
Expand Down