6b2be98f0d
- remove the need to create the openstack namespace: the namespace will be created by default by helm when the first chart is installed using the namespace - the rbd-provisioner chart is now installed in the openstack namespace and doesn't create resources over multiple namespaces Change-Id: I875acd5959ceca033d9233ddf70ac951db7ca6a8 Story: 2004520 Task: 28395 Signed-off-by: Irina Mihai <irina.mihai@windriver.com>
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
{{/*
|
|
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
*/}}
|
|
|
|
{{- if eq .Values.global.deployAs "DaemonSet" }}
|
|
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: {{ .Values.global.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ .Values.global.name }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Values.global.name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Values.global.name }}
|
|
spec:
|
|
{{- if (.Values.global.rbac) or (.Values.global.reuseRbac)}}
|
|
serviceAccountName: {{.Values.rbac.serviceAccount}}
|
|
{{- end}}
|
|
{{- if .Values.global.tolerations }}
|
|
tolerations:
|
|
{{ .Values.global.tolerations | toYaml | trim | indent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.global.nodeSelector }}
|
|
nodeSelector:
|
|
{{ .Values.global.nodeSelector | toYaml | trim | indent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- image: {{ .Values.global.image | quote }}
|
|
name: {{ .Values.global.name }}
|
|
{{- if .Values.global.resources }}
|
|
resources:
|
|
{{ .Values.global.resources | toYaml | trim | indent 12 }}
|
|
{{- end }}
|
|
env:
|
|
- name: PROVISIONER_NAME
|
|
value: ceph.com/rbd
|
|
{{- end}}
|
|
|