Understand the mirrord exec execution flow
mainWhen running mirrord exec, the CLI performs several steps: parsing configuration, resolving the target, and initializing the connection.
Depending on your setup:
- If an Operator is enabled: The CLI requests the
mirrord Operatorto create themirrord Agent. - If no Operator is enabled: The CLI creates the
mirrord Agentdirectly via the Kubernetes API.
Once the agent is ready, an internal proxy is started. On macOS, the binary is patched before execution. The user binary then communicates through the internal proxy, which forwards messages to the mirrord Agent.