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

feat(multicluster): have linkerd-multicluster chart be responsible for service mirror controllers - probes #13781

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Mar 12, 2025

Followup to #13770, based off of branch alpeb/multicluster-chart-manage-smc

Third task of #13768

#13770 properly sets up the linkerd-multicluster chart to manage controllers, but the probes are still looking for the old probe-gateway-<clusterName> service.

This change updates cluster_watcher.go to have that name be a parameter, that is passed as a controller argument.

Likewise, the linkerd mc gateways command has been updated to select over old and new controllers.

@alpeb alpeb requested a review from a team as a code owner March 12, 2025 17:02
@alpeb alpeb force-pushed the alpeb/multicluster-chart-manage-smc-probes branch from 9c4397d to dbadec1 Compare March 12, 2025 21:02
alpeb added a commit that referenced this pull request Mar 12, 2025
…r service mirror controllers - CLI

Followup to #13770 and #13781, based off of branch `alpeb/multicluster-chart-manage-smc-probes`

Addresses CLI tasks listed in #13768

- Refers in `multicluster/cmd/install.go` the new templates added in #13770, allowing `linkerd mc install` to also install the model that was implemented in #13770 just for helm.
- Adds a new flag `linkerd mc link --service-mirror`; if `false` then it only outputs the Link CR and the credentials secret. The default is `true` so the new model is opt-in.
- Refactors `linkerd mc check` in order to check for resources from both the old and new models.
@alpeb alpeb force-pushed the alpeb/multicluster-chart-manage-smc-probes branch from dbadec1 to 942fffb Compare March 13, 2025 14:50
alpeb added a commit that referenced this pull request Mar 13, 2025
…r service mirror controllers - CLI

Followup to #13770 and #13781, based off of branch `alpeb/multicluster-chart-manage-smc-probes`

Addresses CLI tasks listed in #13768

- Refers in `multicluster/cmd/install.go` the new templates added in #13770, allowing `linkerd mc install` to also install the model that was implemented in #13770 just for helm.
- Adds a new flag `linkerd mc link --service-mirror`; if `false` then it only outputs the Link CR and the credentials secret. The default is `true` so the new model is opt-in.
- Refactors `linkerd mc check` in order to check for resources from both the old and new models.
alpeb added a commit that referenced this pull request Mar 14, 2025
…r service mirror controllers - tests

Followup to #13770, #13781 and #13782, based off of branch alpeb/multicluster-chart-manage-smc-cli-install

Addresses test task in #13768

This introduces a new boolean flag `multicluster-target-context` to the multicluster tests, that when set to true:

- the multicluster extension is installed in both clusters passing a config for a `controllers` entry.
- the `linkerd mc link` command is run with `--service-mirror=false` so it only outputs the Link CR and the credentials secrets.

This is used in a new test triggered in parallel in the test-multicluster integration test job.
alpeb added a commit that referenced this pull request Mar 14, 2025
…r service mirror controllers - tests

Followup to #13770, #13781 and #13782, based off of branch alpeb/multicluster-chart-manage-smc-cli-install

Addresses test task in #13768

This introduces a new boolean flag `multicluster-target-context` to the multicluster tests, that when set to true:

- the multicluster extension is installed in both clusters passing a config for a `controllers` entry.
- the `linkerd mc link` command is run with `--service-mirror=false` so it only outputs the Link CR and the credentials secrets.

This is used in a new test triggered in parallel in the test-multicluster integration test job.
alpeb added a commit that referenced this pull request Mar 14, 2025
…r service mirror controllers - tests

Followup to #13770, #13781 and #13782, based off of branch alpeb/multicluster-chart-manage-smc-cli-install

Addresses test task in #13768

This introduces a new boolean flag `multicluster-target-context` to the multicluster tests, that when set to true:

- the multicluster extension is installed in both clusters passing a config for a `controllers` entry.
- the `linkerd mc link` command is run with `--service-mirror=false` so it only outputs the Link CR and the credentials secrets.

This is used in a new test triggered in parallel in the test-multicluster integration test job.
Base automatically changed from alpeb/multicluster-chart-manage-smc to main March 17, 2025 14:54
alpeb added 2 commits March 17, 2025 10:04
…r service mirror controllers - probes

Followup to #13770, based off of branch `alpeb/multicluster-chart-manage-smc`

#13770 properly sets up the linkerd-multicluster chart to manage controllers, but the probes are still looking for the old `probe-gateway-<clusterName>` service.

This change updates `cluster_watcher.go` to have that name be a parameter, that is passed as a controller argument.

Likewise, the `linkerd mc gateways` command has been updated to select over old and new controllers.
@alpeb alpeb force-pushed the alpeb/multicluster-chart-manage-smc-probes branch from 942fffb to b7bf828 Compare March 17, 2025 15:06
@alpeb alpeb merged commit 0210923 into main Mar 17, 2025
38 checks passed
@alpeb alpeb deleted the alpeb/multicluster-chart-manage-smc-probes branch March 17, 2025 15:27
alpeb added a commit that referenced this pull request Mar 17, 2025
…r service mirror controllers - CLI

Followup to #13770 and #13781, based off of branch `alpeb/multicluster-chart-manage-smc-probes`

Addresses CLI tasks listed in #13768

- Refers in `multicluster/cmd/install.go` the new templates added in #13770, allowing `linkerd mc install` to also install the model that was implemented in #13770 just for helm.
- Adds a new flag `linkerd mc link --service-mirror`; if `false` then it only outputs the Link CR and the credentials secret. The default is `true` so the new model is opt-in.
- Refactors `linkerd mc check` in order to check for resources from both the old and new models.
alpeb added a commit that referenced this pull request Mar 17, 2025
…r service mirror controllers - CLI (#13782)

Followup to #13770 and #13781, based off of branch `alpeb/multicluster-chart-manage-smc-probes`

Addresses CLI tasks listed in #13768

- Refers in `multicluster/cmd/install.go` the new templates added in #13770, allowing `linkerd mc install` to also install the model that was implemented in #13770 just for helm.
- Adds a new flag `linkerd mc link --service-mirror`; if `false` then it only outputs the Link CR and the credentials secret. The default is `true` so the new model is opt-in.
- Refactors `linkerd mc check` in order to check for resources from both the old and new models.
- Extend the image registry overriding logic to cover the new controllers as well.
alpeb added a commit that referenced this pull request Mar 17, 2025
…r service mirror controllers - tests

Followup to #13770, #13781 and #13782, based off of branch alpeb/multicluster-chart-manage-smc-cli-install

Addresses test task in #13768

This introduces a new boolean flag `multicluster-target-context` to the multicluster tests, that when set to true:

- the multicluster extension is installed in both clusters passing a config for a `controllers` entry.
- the `linkerd mc link` command is run with `--service-mirror=false` so it only outputs the Link CR and the credentials secrets.

This is used in a new test triggered in parallel in the test-multicluster integration test job.
alpeb added a commit that referenced this pull request Mar 17, 2025
…r service mirror controllers - tests (#13800)

Followup to #13770, #13781 and #13782, based off of branch alpeb/multicluster-chart-manage-smc-cli-install

Addresses test task in #13768

This introduces a new boolean flag `multicluster-target-context` to the multicluster tests, that when set to true:

- the multicluster extension is installed in both clusters passing a config for a `controllers` entry.
- the `linkerd mc link` command is run with `--service-mirror=false` so it only outputs the Link CR and the credentials secrets.

This is used in a new test triggered in parallel in the test-multicluster integration test job.
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