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

fix altstatname for subset clusters #51136

Merged
merged 2 commits into from
May 20, 2024

Conversation

ramaraochavali
Copy link
Contributor

@ramaraochavali ramaraochavali commented May 18, 2024

Regression caused in #46352 . The code has been removed

  • Ambient
  • Configuration Infrastructure
  • Docs
  • Dual Stack
  • Installation
  • Networking
  • Performance and Scalability
  • Policies and Telemetry
  • Security
  • Test and Release
  • User Experience
  • Developer Infrastructure

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@ramaraochavali ramaraochavali requested a review from a team as a code owner May 18, 2024 04:23
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 18, 2024
@ramaraochavali
Copy link
Contributor Author

/test integ-security-multicluster

@@ -186,6 +186,11 @@ func (cb *ClusterBuilder) buildSubsetCluster(
return nil
}

if len(cb.req.Push.Mesh.OutboundClusterStatName) != 0 {
subsetCluster.cluster.AltStatName = telemetry.BuildStatPrefix(cb.req.Push.Mesh.OutboundClusterStatName,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why set again as it has been set in buildCluster

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have subset name there so SUBSET_NAME wont be replaced

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get the subset from the clustername.

This way, we do some duplicate work on other fields

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to parse it for every cluster and get subset name - currently this repetition only happens for subset clusters . IMO this is much faster because subset clusters would be few in number. Unless we change the current signature and pass subset name - we can't avoid this.

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@istio-testing istio-testing merged commit 8393ed6 into istio:master May 20, 2024
28 checks passed
@ramaraochavali ramaraochavali deleted the fix/alt_stat_name branch May 20, 2024 10:17
@ramaraochavali ramaraochavali added the cherrypick/release-1.22 Set this label on a PR to auto-merge it to the release-1.22 branch label May 23, 2024
@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request created: #51209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick/release-1.22 Set this label on a PR to auto-merge it to the release-1.22 branch size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants