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(cli): kumactl install tracing #655

Merged
merged 14 commits into from
Apr 6, 2020
Merged

feat(cli): kumactl install tracing #655

merged 14 commits into from
Apr 6, 2020

Conversation

subnetmarco
Copy link
Contributor

@subnetmarco subnetmarco commented Apr 2, 2020

Adding kumactl install tracing to automatically provision Jaeger with Zipkin compatibility in a kuma-tracing namespace.

Goes in hand with kumahq/kuma-website#167

@subnetmarco subnetmarco requested a review from a team April 2, 2020 06:39
return strings.HasSuffix(file.Name, ".yaml")
})

renderedFiles, err := renderFiles(yamlTemplateFiles, templateArgs, simpleTemplateRenderer)
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to just pass templateFiles instead of yamlTemplateFiles because all files for tracing are YAML files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the existing code in install_metrics.go that also uses yamlTemplateFiles. Should it change in both?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's needed for metrics because we also have .json files, so we have to filter those.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

- env:
- name: COLLECTOR_ZIPKIN_HTTP_PORT
value: "9411"
image: jaegertracing/all-in-one
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it a good idea to leave here the latest version? What if Jaeger releases a new version and this YAML is not compatible with it? I think it's more reliable to lock the version here. Of course this comes at the cost of updating the version every now and then, but then we are sure that we are providing the command that works.

We locked the version in metrics Prometheus + Grafana deployment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -0,0 +1,163 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you maybe also add a comment with a link on which this file is based?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

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

Please add a CHANGELOG.md entry and it's ready to merge

@subnetmarco subnetmarco merged commit 453c494 into master Apr 6, 2020
@subnetmarco subnetmarco deleted the feat/cli-tracing branch April 6, 2020 02:08
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.

None yet

2 participants