Namespace chart iteration (#45)

This commit is contained in:
Laszlo Fogas
2022-06-23 12:56:21 +02:00
committed by GitHub
parent 3ee1679e1d
commit 285a6cca10
5 changed files with 154 additions and 205 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.2.1
+2 -2
View File
@@ -4,8 +4,8 @@ apiVersion: v1
kind: Namespace
metadata:
name: {{ .name }}
{{- if .annotations }}
annotations:
{{- if .annotations }}
{{- toYaml .annotations | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
+4
View File
@@ -10,3 +10,7 @@ tests:
- equal:
path: metadata.name
value: staging
- it: Should not set annotations if none provided in values
asserts:
- isNull:
path: metadata.annotations