mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
getCleanClusterName fixed (#78)
This commit is contained in:
@@ -133,7 +133,7 @@ function getCleanClusterName(rawClusterName) {
|
|||||||
if (rawClusterName.indexOf('arn') === 0) {
|
if (rawClusterName.indexOf('arn') === 0) {
|
||||||
// AWS cluster
|
// AWS cluster
|
||||||
const clusterSplit = rawClusterName.split(':')
|
const clusterSplit = rawClusterName.split(':')
|
||||||
const clusterName = clusterSplit.at(-1).split("/").at(-1)
|
const clusterName = clusterSplit.slice(-1)[0].replace('cluster/','')
|
||||||
const region = clusterSplit.at(-3)
|
const region = clusterSplit.at(-3)
|
||||||
return region + "/" + clusterName + ' [AWS]'
|
return region + "/" + clusterName + ' [AWS]'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user