diff --git a/charts/nexus3/Chart.yaml b/charts/nexus3/Chart.yaml index 640540de..c0e73734 100644 --- a/charts/nexus3/Chart.yaml +++ b/charts/nexus3/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nexus3 -version: 1.2.3 +version: 1.2.4 appVersion: 3.20.1 description: Sonatype Nexus OSS is an open source repository manager keywords: diff --git a/charts/nexus3/files/metrics.groovy b/charts/nexus3/files/metrics.groovy index cb57face..0e0f1690 100644 --- a/charts/nexus3/files/metrics.groovy +++ b/charts/nexus3/files/metrics.groovy @@ -5,7 +5,7 @@ def params = new JsonSlurper().parseText(args) if (params.enabled) { def metricsRole = "nx-metrics" - if (!security.securitySystem.listRoles().any { it.source == "default" && it.roleId == metricsName }) { + if (!security.securitySystem.listRoles().any { it.source == "default" && it.roleId == metricsRole }) { security.addRole(metricsRole, metricsRole, "Metrics collection role", [], ["nx-metrics-all"]) }