Skip to content

Commit

Permalink
sort
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Jan 31, 2024
1 parent d523ee8 commit 512c14f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/monitor/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 512c14f

Please sign in to comment.