-
Notifications
You must be signed in to change notification settings - Fork 153
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
[8.16](backport #5831) Use a PodTemplate resource in the Helm Chart #5930
Conversation
Cherry-pick of f891fb0 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
* Use PodTemplate resource in the Helm Chart * Remove unnecessary named template * Use PodTemplate resource in the Helm Chart for ECK (cherry picked from commit f891fb0) # Conflicts: # deploy/helm/elastic-agent/examples/eck/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/kubernetes-default/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/kubernetes-hints-autodiscover/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/kubernetes-only-logs/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/multiple-integrations/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/nginx-custom-integration/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/system-custom-auth-paths/rendered/manifest.yaml
66672bb
to
dde8dc5
Compare
Quality Gate passedIssues Measures |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
What does this PR do?
Instead of an untyped .tpl Helm template, use a PodTemplate resource. This resource is loaded from a file, templated via the tpl function, converted to a dict to get a specific key, and then converted back to YAML.
This is a bit convoluted, but it gives us intellisense for the pod template.
Why is it important?
.tpl files aren't very readable. On the other hand, Kubernetes resources get pretty good support from IDEs and tools. So this is a maintainability improvement.
Checklist
This is an automatic backport of pull request #5831 done by [Mergify](https://mergify.com).