Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax mc validations in the CLI to avoid errors #13151

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Oct 7, 2024

Followup to #13061

When the CLI queried for Links in the cluster, we were assuming the CLI version matched the linkerd version in the cluster, and so we validated that all fields should be present.

This change relaxes that assumption by setting defaults for the new fields failureThreshold and timeout, so we don't get an error for example when trying to run linkerd multicluster uninstall on a cluster with an older Link CRD.

Followup to #13061

When the CLI queried for Links in the cluster, we were assuming the CLI version matched the linkerd version in the cluster, and so we validated that all fields should be present.

This change relaxes that assumption by setting defaults for the new fields `failureThreshold` and `timeout`, so we don't get an error for example when trying to run `linkerd multicluster uninstall` on a cluster with an older `Link` CRD.
@alpeb alpeb requested a review from a team as a code owner October 7, 2024 20:54
pkg/multicluster/link.go Show resolved Hide resolved
pkg/multicluster/link.go Show resolved Hide resolved
@alpeb alpeb merged commit 48ba490 into main Oct 9, 2024
38 checks passed
@alpeb alpeb deleted the alpeb/better-mc-probing-2 branch October 9, 2024 14:21
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