23 lines
657 B
YAML
23 lines
657 B
YAML
{{- if .Values.cluster.createNamespace }}
|
|
|
|
# Don't want to attempt to create the ns if user has specificied the same ns
|
|
# for both the release and the StorageOS cluster.
|
|
# As otherwise it would fail & this could be confusing UX for them.
|
|
{{- if not (eq .Release.Namespace .Values.cluster.namespace) }}
|
|
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: {{ .Values.cluster.namespace }}
|
|
labels:
|
|
app: {{ template "storageos.name" . }}
|
|
app.kubernetes.io/component: operator
|
|
control-plane: storageos-operator
|
|
chart: {{ template "storageos.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|