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
[Feature] consule register need suport tags[] #3219
Comments
Hey there, @techidea8! Good to see you back with more insights. 👋 Thank you for your feature request. I understand that you would like to extend the Currently, the Kratos framework does support the asr := &api.AgentServiceRegistration{
ID: svc.ID,
Name: svc.Name,
Meta: svc.Metadata,
Tags: []string{fmt.Sprintf("version=%s", svc.Version)},
TaggedAddresses: addresses,
} To support additional tags, you can modify the // Assuming svc.Tags is a []string field that contains additional tags you want to register.
asr := &api.AgentServiceRegistration{
ID: svc.ID,
Name: svc.Name,
Meta: svc.Metadata,
Tags: append([]string{fmt.Sprintf("version=%s", svc.Version)}, svc.Tags...),
TaggedAddresses: addresses,
} In this example, Remember, for this approach to work, you would need to ensure that the I hope this helps! If you have any further questions or need more clarification, please don't hesitate to ask. Sources
|
I understand what your mean |
when we use traefik as gateway
and consule as registry
the tags is very important
but now kratos just surport tag
version
please suport more attribute as follow
The text was updated successfully, but these errors were encountered: