Add null check condition in placement deployment manifest

Checking log_config_append vaule is missing in deloyment template
for Placement.

Change-Id: I0f2a0ca7d26320d599fac69ee091ca34b455c481
This commit is contained in:
okozachenko 2020-11-25 19:43:58 +02:00
parent 37e71b3652
commit d5882e97ff
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Placement
name: placement
version: 0.1.3
version: 0.1.4
home: https://docs.openstack.org/placement/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Placement/OpenStack_Project_Placement_vertical.png
sources:

View File

@ -97,10 +97,12 @@ spec:
mountPath: /etc/placement/placement.conf
subPath: placement.conf
readOnly: true
{{- if .Values.conf.placement.DEFAULT.log_config_append }}
- name: placement-etc
mountPath: {{ .Values.conf.placement.DEFAULT.log_config_append }}
subPath: {{ base .Values.conf.placement.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
- name: placement-etc
mountPath: /etc/placement/policy.yaml
subPath: policy.yaml