linkerd2/pkg
Alejandro Pedraza b5aec5d451
Make `linkerd mc link`'s output compatible with pre-edge-24.9.3 clusters (#13161)
Followup to #1306

## Problem

if we run `linkerd mc link` using the latest CLI and attempted to apply the resulting manifests into a cluster with linkerd-multicluster on version edge-24.9.2 and earlier we would get the following error:

```
Error from server (BadRequest): error when creating "STDIN": Link in version "v1alpha1" cannot be handled as a Link: strict decoding error: unknown field "spec.probeSpec.failureThreshold", unknown field "spec.probeSpec.timeout"
```

## Solution

This changes the `linkerd mc link` command so that it doesn't generate default entries for the new (optional) fields `failureThreshold` and `timeout`, so that the output remains compatible with previous versions of the Link CRD.

We're also removing those fields from the linkerd-multicluster values.yaml file, and we're removing the corresponding annotations on the gateway workload. These values and annotations were added in edge-24.9.3.

This means that (at least for now) `linkerd mc link` will never generate those fields, and the way for users to tweak them is directly in the Link CR (once the user upgrades the linkerd-multicluster extension, the existing Link CRs will automatically receive the default values, as they are declared in the Link CRD definition).
2024-10-10 13:51:12 -05:00
..
addr Fix `linkerd dg endpoints` to work with IPv6 (#12541) 2024-05-02 14:39:43 -05:00
admin Readiness checks fail until caches are synced (#10166) 2023-01-25 11:43:09 -08:00
charts Add support to modify liveness and readiness probe timeouts on control plane containers (#13002) 2024-09-04 14:26:57 -05:00
cmd Add json output to install and related commands (#12641) 2024-06-04 12:43:23 -07:00
config Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
filesonly Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
flags Improve klog (client-go logs) handling (#11632) 2023-11-28 09:25:13 -05:00
healthcheck feat(helm): default proxy-init resource requests to proxy values (#12741) 2024-06-24 12:37:47 +01:00
identity identity: tweak token validation log levels (#12187) 2024-03-05 09:30:16 +02:00
inject New "audit" value for default inbound policy (#12844) 2024-07-17 15:54:27 -05:00
issuercerts Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
k8s Add timeout and failureThreshold to multicluster probe (#13061) 2024-09-25 08:06:31 -05:00
multicluster Make `linkerd mc link`'s output compatible with pre-edge-24.9.3 clusters (#13161) 2024-10-10 13:51:12 -05:00
profiles Add json output to install and related commands (#12641) 2024-06-04 12:43:23 -07:00
prometheus build(deps): bump github.com/prometheus/client_golang from 1.19.1 to 1.20.2 (#12989) 2024-09-02 17:20:10 -05:00
protohttp Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
servicemirror Add support for service-mirror selectors (#4795) 2020-07-30 10:07:14 -07:00
tls Removed dupe imports (#10049) 2023-01-10 14:34:56 -05:00
trace Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
tree Remove namespace from charts and split them into `linkerd-crd` and `linkerd-control-plane` (#6635) 2021-12-10 15:53:08 -05:00
util Change injector overriding logic to be more generic (#12405) 2024-04-10 15:51:58 +01:00
version Bump proxy-init to v2.4.1 and cni-plugin to v1.5.1 (#12711) 2024-06-13 17:15:41 -05:00