Commit Graph

3 Commits

Author SHA1 Message Date
Alex Leong 26eba44ac3
feat(cli): Add json output to link, unlink, allow, and allow-scrapes commands (#12658)
We add an -o/--output flag to the remaining commands which render kubernetes resources and do not yet have this flag. The supported values for this flag are "yaml" (default) and "json". The commands are:

linkerd mulitcluster allow
linkerd multicluster link
linkerd multicluster unlink
linkerd viz allow-scrapes

Signed-off-by: Alex Leong <alex@buoyant.io>
2024-06-14 09:01:29 -07:00
Matei David 97ac3ddcd5
Fix service-mirror template when running in HA mode (#11609)
Two clusters can be linked in HA mode. When HA values are used, the
service-mirror deployment receives some pod affinity rules to ensure
fair scheduling of pods across a cluster's nodes.

The service-mirror Deployment's template seems to be broken at the
moment when using HA values. Affinity rules are incorrectly grouped
under a top-level `podAntiAffinity` field. The Kubernetes API requires
the rules to be grouped under a top-level `affinity` field. This change
rectifies that by introducing the missing parent.

Fixes #11603

Signed-off-by: Matei David <matei@buoyant.io>
2023-11-22 17:35:40 +00:00
Kevin Leimkuhler b09c033479
Add unit test for `linkerd multicluster link` command (#8757)
As part of #7082 we need to add HA mode to linkerd-multicluster's service mirror
component. Before adding configuration for it, we should have a basic unit test
that asserts the output of `linkerd multicluster link`.

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
2022-06-29 10:01:31 -06:00