Add deprecation comment

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
Mikkel Oscar Lyderik Larsen
2021-08-20 09:17:26 +02:00
parent 190f0db092
commit 318d47e05e

View File

@ -53,6 +53,8 @@ func (c *SkipperCollectorPlugin) NewCollector(hpa *autoscalingv2.HorizontalPodAu
if strings.HasPrefix(config.Metric.Name, rpsMetricName) {
backend, ok := config.Config["backend"]
if !ok {
// TODO: remove the deprecated way of specifying
// optional backend at a later point in time.
if len(config.Metric.Name) > len(rpsMetricName) {
metricNameParts := strings.Split(config.Metric.Name, rpsMetricBackendSeparator)
if len(metricNameParts) == 2 {