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

[v11] Ensure UpdateRemoteCluster updates all fields #22089

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

rosstimothy
Copy link
Contributor

Backport #22024 to branch/v11

The ConnectionStatus of the RemoteCluster resource was never being
set in UpdateRemoteCluster causing the backend to always contain
the original value. GetRemoteCluster, unfortunately, does an update
of the resource, yet it always returned the correct information, which
made things very confusing since `tctl get` didn't reflect the
actual backend. To make matters worse the initial value was not
explicitly set which meant it defaulted to an empty string.

A call to SetConnectionStatus was added to UpdateRemoteCluster so
it's value is actually persisted. Trusted Clusters are also now
explicitly initialized with status offline to avoid ambiguity. The
actual status of the resource will be updated appropriately when
the tunnel connections are verified.

Additionally TestRemoteClustersCRUD was added to capture this issue
and prevent any regressions.

Fixes #22006
@rosstimothy rosstimothy enabled auto-merge (squash) February 21, 2023 22:57
@rosstimothy rosstimothy merged commit 547b6e1 into branch/v11 Feb 22, 2023
@rosstimothy rosstimothy deleted the tross/backport-22024/v11 branch February 22, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants