Commit 29a44ff
authored
Shorten metric service name (#195)
Issue #, if available: aws-controllers-k8s/community#956
Description of changes:
* Previous metric service name for applicationautoscaling-controller was going over 63 characters and failing k8s validation
* Other resources are not at risk because they use template from helpers.tpl which restricts the name to 63 chars
* The issue occurred for this service because we were adding a suffix('-metrics')
* It is important to distinguish metrics service because in future controller can have other kinds of service as well.
* With the proposed solution, the metrics service name looks like `applicationautoscaling-controller-metrics` and is also truncated to never cross 63 chars(max 44 chars from service name + '-controller-metrics')
Tested locally that this works accurately and helm test passes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 5a4809a commit 29a44ff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments