diff --git a/library/common/Chart.yaml b/library/common/Chart.yaml index 4b2792c9..60e8476a 100644 --- a/library/common/Chart.yaml +++ b/library/common/Chart.yaml @@ -15,7 +15,7 @@ maintainers: name: common sources: null type: library -version: 20.1.1 +version: 20.1.2 annotations: artifacthub.io/category: "integration-delivery" artifacthub.io/license: "BUSL-1.1" diff --git a/library/common/templates/lib/metadata/_namespace.tpl b/library/common/templates/lib/metadata/_namespace.tpl index 0a9fa980..d7a5cda3 100644 --- a/library/common/templates/lib/metadata/_namespace.tpl +++ b/library/common/templates/lib/metadata/_namespace.tpl @@ -28,6 +28,9 @@ {{- fail (printf "%s - Namespace [%v] expected to have [ix-] prefix when installed in TrueNAS SCALE" $caller $namespace) -}} {{- end -}} {{- end -}} + {{- else if and (hasPrefix "ix-" $namespace) ( not $rootCtx.Values.global.ixChartContext ) -}} + {{/* Users should not use SCALE-reserved Namespace prefixes to hack things into the SCALE GUI */}} + {{- fail (printf "%s - Namespace [%v] is not allowed to have [ix-] prefix when installed outside of SCALE-Apps" $caller $namespace) -}} {{- end -}} {{- $namespace -}}