@aiyengar2 suggested that Logging v2 should follow the pattern utilized by _pod.tpl for Grafana. This would reduce code reuse and decrease chances of human error when adding new charts fields.
Context
Logging v2 had not previously used a CR-specific template file before because the Logging CRs previously existed to only satisfy differing environmental constraints. Moreover, these CR files only contained a fraction of the code reuse seen today. Since Logging v2 has expanded greatly since Rancher v2.5.0, this task should help guide the minimization of code reuse in CR files.
Task
@aiyengar2 suggested that Logging v2 should follow the pattern utilized by
_pod.tpl
for Grafana. This would reduce code reuse and decrease chances of human error when adding new charts fields.Context
Logging v2 had not previously used a CR-specific template file before because the Logging CRs previously existed to only satisfy differing environmental constraints. Moreover, these CR files only contained a fraction of the code reuse seen today. Since Logging v2 has expanded greatly since Rancher v2.5.0, this task should help guide the minimization of code reuse in CR files.