Skip to content

Commit 0b9841e

Browse files
Bring back ns enforce (#18)
1 parent 16c9bc3 commit 0b9841e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v0.0.1
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.2.0-alpha-9
5+
version: 0.2.0-alpha-10
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
keywords:
88
- codefresh

charts/gitops-runtime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gitops-runtime
22

3-
![Version: 0.2.0-alpha-9](https://img.shields.io/badge/Version-0.2.0--alpha--9-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
3+
![Version: 0.2.0-alpha-10](https://img.shields.io/badge/Version-0.2.0--alpha--10-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
44

55
A Helm chart for Codefresh gitops runtime
66

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{- if not (hasKey .Values.global.runtime "name") }}
2+
{{- fail "ERROR: runtime.name is mandatory" }}
3+
{{- end }}
4+
5+
{{- if ne .Release.Namespace .Values.global.runtime.name }}
6+
{{- fail (printf "ERROR: Runtime %s must be installed in a namespace with the same name" .Values.global.runtime.name)}}
7+
{{- end }}

0 commit comments

Comments
 (0)