-
Notifications
You must be signed in to change notification settings - Fork 8k
Add clusterID to x ps #36835
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
Add clusterID to x ps #36835
Conversation
/test integ-pilot-istiodremote-tests_istio |
@esnible PTAL. |
/test all |
@@ -176,8 +178,13 @@ func (s *XdsStatusWriter) setupStatusPrint(drs map[string]*xdsapi.DiscoveryRespo | |||
} | |||
cds, lds, eds, rds := getSyncStatus(&clientConfig) | |||
cp := multixds.CpInfo(dr) | |||
meta, err := model.ParseMetadata(clientConfig.GetNode().GetMetadata()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to get the clusterID via similar way from getSyncStatus
, just like get cds, lds, eds, rds
above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those sync statues are generated from the GenericXdsConfigs
in clientConfig
, and clusterID, proxyID
are from the Node
info in the clientConfig
. I think they should not be mixed up, but there could be an improvement in the next to unify them to a function like getProxyStatuses
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhlsunshine PTAL, thanks!
not stale |
578ac22
to
11a8b50
Compare
11a8b50
to
557a6a8
Compare
557a6a8
to
b95b6d3
Compare
/test integ-security-multicluster_istio |
Please provide a description of this PR:
#36290 adds the id to
istioctl ps
, and this one adds tox ps
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.
Please check any characteristics that apply to this pull request.