Skip to content

Commit 925109b

Browse files
committed
Add more documentation to namespace values setting, combine if statements in chart
1 parent 620a22f commit 925109b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
{{ if ne .Values.operator.enabled false }}
2-
{{ if .Values.namespace }}
1+
{{ if and (ne .Values.operator.enabled false) .Values.namespace }}
32
kind: Namespace
43
apiVersion: v1
54
metadata:
65
name: '{{ default .Release.Namespace .Values.namespace }}'
76
labels:
87
app.kubernetes.io/part-of: contrast-agent-operator
98
{{ end }}
10-
{{ end }}

manifests/helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Namespace for the agent-operator, will be created if specified.
2+
# When left blank the Helm namespace will be used and can be changed using `helm -n <namespace>`. Helm's `--create-namespace` option may be needed when the Helm namespace does not exist and should be created.
23
namespace: contrast-agent-operator
34
image:
45
registry: contrast

0 commit comments

Comments
 (0)