Skip to content

Commit

Permalink
fix(agent-endpoints): Delete agent endpoint instead of tunnel (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonstacks authored Dec 6, 2024
1 parent fc4efbe commit 6839f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/agent/agent_endpoint_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (r *AgentEndpointReconciler) update(ctx context.Context, endpoint *ngrokv1a

func (r *AgentEndpointReconciler) delete(ctx context.Context, endpoint *ngrokv1alpha1.AgentEndpoint) error {
tunnelName := r.statusID(endpoint)
return r.TunnelDriver.DeleteTunnel(ctx, tunnelName)
return r.TunnelDriver.DeleteAgentEndpoint(ctx, tunnelName)
// TODO: Delete any associated domain
}

Expand Down

0 comments on commit 6839f09

Please sign in to comment.