Skip to content

Commit 0b67573

Browse files
committed
disable dst mapping for autonomous agents
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
1 parent 47745b9 commit 0b67573

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/agent.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ func NewAgent(ctx context.Context, client *kube.KubernetesClient, namespace stri
227227
return nil, fmt.Errorf("unexpected agent mode: %v", a.mode)
228228
}
229229

230+
if a.destinationBasedMapping && a.mode == types.AgentModeAutonomous {
231+
return nil, fmt.Errorf("destination-based mapping is not supported for autonomous agents")
232+
}
233+
230234
// Determine the namespace(s) to watch for applications
231235
appNamespace := a.namespace
232236
if a.destinationBasedMapping {

0 commit comments

Comments
 (0)