Skip to content

fix(destination): Add namespace restriction to external workloads and endpoints#15324

Open
raykroeker wants to merge 7 commits into
mainfrom
raykroeker/endpoint-slice-injection
Open

fix(destination): Add namespace restriction to external workloads and endpoints#15324
raykroeker wants to merge 7 commits into
mainfrom
raykroeker/endpoint-slice-injection

Conversation

@raykroeker
Copy link
Copy Markdown
Contributor

  • On MacOS the command snippet to collect 5 random characters for a test id intermittently fails with 'tr: Illegal byte sequence' due to binary output and charactersets. Use the builtin function choose to grab 5 random hex chars.
  • Add a third external workload in a second namespace to the test case in order to verify the change.
  • When synchronizing, filter both external workloads as well as endpoints by namespace.

Signed-off-by: Raymond Kroeker raymond@buoyant.io

 * On MacOS the command snippet to collect 5 random characters for a
   test id intermettently fails with 'tr: Illegal byte sequence' due to
   binary output and charactersets.  Use the builtin function
   [choose](https://just.systems/man/en/built-in-functions.html#random)
   to grab 5 random hex chars.
 * Add a third external workload to the test case for external workload
   selection.  It resides in another namespace and should not come back.
   This specific commit fails with:

```bash
/Users/rkroeker/Code/linkerd/linkerd2/controller/api/destination/external-workload/endpoints_controller_test.go:260: Expected 1 endpoint in first slice, got: 2
```
 * When synchronizing, filter both external workloads as well as
   endpoints by namespace.
@raykroeker raykroeker marked this pull request as ready for review May 27, 2026 18:28
@raykroeker raykroeker requested a review from a team as a code owner May 27, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants