From 512c14fc574c74a631f5ae6e5f0300de402dbc77 Mon Sep 17 00:00:00 2001 From: Arnob kumar saha Date: Wed, 31 Jan 2024 19:41:51 +0600 Subject: [PATCH] sort Signed-off-by: Arnob kumar saha --- pkg/monitor/util.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/monitor/util.go b/pkg/monitor/util.go index a0ced3ff4..b1cb623ab 100644 --- a/pkg/monitor/util.go +++ b/pkg/monitor/util.go @@ -29,22 +29,22 @@ func ConvertedResource(resource string) string { switch res { case api.ResourceCodeElasticsearch, api.ResourcePluralElasticsearch, api.ResourceSingularElasticsearch: res = api.ResourcePluralElasticsearch + case api.ResourceCodeKafka, api.ResourcePluralKafka, api.ResourceSingularKafka: + res = api.ResourcePluralKafka + case api.ResourceCodeMariaDB, api.ResourcePluralMariaDB, api.ResourceSingularMariaDB: + res = api.ResourcePluralMariaDB case api.ResourceCodeMongoDB, api.ResourcePluralMongoDB, api.ResourceSingularMongoDB: res = api.ResourcePluralMongoDB - case api.ResourceCodePostgres, api.ResourcePluralPostgres, api.ResourceSingularPostgres: - res = api.ResourcePluralPostgres case api.ResourceCodeMySQL, api.ResourcePluralMySQL, api.ResourceSingularMySQL: res = api.ResourcePluralMySQL - case api.ResourceCodeKafka, api.ResourcePluralKafka, api.ResourceSingularKafka: - res = api.ResourcePluralKafka - case api.ResourceCodeProxySQL, api.ResourcePluralProxySQL, api.ResourceSingularProxySQL: - res = api.ResourcePluralProxySQL case api.ResourceCodePerconaXtraDB, api.ResourcePluralPerconaXtraDB, api.ResourceSingularPerconaXtraDB: res = api.ResourcePluralPerconaXtraDB + case api.ResourceCodePostgres, api.ResourcePluralPostgres, api.ResourceSingularPostgres: + res = api.ResourcePluralPostgres + case api.ResourceCodeProxySQL, api.ResourcePluralProxySQL, api.ResourceSingularProxySQL: + res = api.ResourcePluralProxySQL case api.ResourceCodeRedis, api.ResourcePluralRedis, api.ResourceSingularRedis: res = api.ResourcePluralRedis - case api.ResourceCodeMariaDB, api.ResourcePluralMariaDB, api.ResourceSingularMariaDB: - res = api.ResourcePluralMariaDB default: log.Fatalf("%s is not a valid resource type \n", resource) }