designate: Fix extra volume mounts

This patch fixes the code for adding extra mounts
for the Designate pods, it would otherwise
generate invalid YAML.

Change-Id: I7126e20090714db85f571a3a6a80ea2fc4e069d5
This commit is contained in:
Mohammed Naser 2021-11-12 01:32:37 -05:00
parent 58e19cdb65
commit 61ae063d5e
9 changed files with 17 additions and 17 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Designate
name: designate
version: 0.2.2
version: 0.2.3
home: https://docs.openstack.org/designate/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Designate/OpenStack_Project_Designate_vertical.jpg
sources:

View File

@ -96,7 +96,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_api.volumeMounts }}{{ toYaml $mounts_designate_api.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_api.volumeMounts }}{{ toYaml $mounts_designate_api.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -110,5 +110,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_api.volumes }}{{ toYaml $mounts_designate_api.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_api.volumes }}{{ toYaml $mounts_designate_api.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -83,7 +83,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_central.volumeMounts }}{{ toYaml $mounts_designate_central.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_central.volumeMounts }}{{ toYaml $mounts_designate_central.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -97,5 +97,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_central.volumes }}{{ toYaml $mounts_designate_central.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_central.volumes }}{{ toYaml $mounts_designate_central.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -94,7 +94,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_mdns.volumeMounts }}{{ toYaml $mounts_designate_mdns.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_mdns.volumeMounts }}{{ toYaml $mounts_designate_mdns.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -108,5 +108,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_mdns.volumes }}{{ toYaml $mounts_designate_mdns.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_mdns.volumes }}{{ toYaml $mounts_designate_mdns.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -83,7 +83,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_producer.volumeMounts }}{{ toYaml $mounts_designate_producer.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_producer.volumeMounts }}{{ toYaml $mounts_designate_producer.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -97,5 +97,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_producer.volumes }}{{ toYaml $mounts_designate_producer.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_producer.volumes }}{{ toYaml $mounts_designate_producer.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -79,7 +79,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_sink.volumeMounts }}{{ toYaml $mounts_designate_sink.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_sink.volumeMounts }}{{ toYaml $mounts_designate_sink.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -93,5 +93,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_sink.volumes }}{{ toYaml $mounts_designate_sink.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_sink.volumes }}{{ toYaml $mounts_designate_sink.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -72,7 +72,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_worker.volumeMounts }}{{ toYaml $mounts_designate_worker.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_worker.volumeMounts }}{{ toYaml $mounts_designate_worker.volumeMounts | indent 12 }}{{ end }}
containers:
- name: designate-worker
{{ tuple $envAll "designate_worker" | include "helm-toolkit.snippets.image" | indent 10 }}
@ -108,7 +108,7 @@ spec:
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
readOnly: true
{{- end }}
{{- if $mounts_designate_worker.volumeMounts }}{{ toYaml $mounts_designate_worker.volumeMounts | indent 12 }}{{ end }}
{{ if $mounts_designate_worker.volumeMounts }}{{ toYaml $mounts_designate_worker.volumeMounts | indent 12 }}{{ end }}
volumes:
- name: pod-etc-designate
emptyDir: {}
@ -122,5 +122,5 @@ spec:
secret:
secretName: designate-etc
defaultMode: 0444
{{- if $mounts_designate_worker.volumes }}{{ toYaml $mounts_designate_worker.volumes | indent 8 }}{{ end }}
{{ if $mounts_designate_worker.volumes }}{{ toYaml $mounts_designate_worker.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -47,12 +47,12 @@ spec:
mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh
readOnly: true
{{- if $mounts_designate_bootstrap.volumeMounts }}{{ toYaml $mounts_designate_bootstrap.volumeMounts | indent 10 }}{{ end }}
{{ if $mounts_designate_bootstrap.volumeMounts }}{{ toYaml $mounts_designate_bootstrap.volumeMounts | indent 10 }}{{ end }}
volumes:
- name: designate-bin
configMap:
name: designate-bin
defaultMode: 0555
{{- if $mounts_designate_bootstrap.volumes }}{{ toYaml $mounts_designate_bootstrap.volumes | indent 6 }}{{ end }}
{{ if $mounts_designate_bootstrap.volumes }}{{ toYaml $mounts_designate_bootstrap.volumes | indent 6 }}{{ end }}
{{- end }}
{{- end }}

View File

@ -6,4 +6,4 @@ designate:
- 0.2.0 Remove support for releases before T
- 0.2.1 Use policies in yaml format
- 0.2.2 Update htk requirements repo
...
- 0.2.3 Fix extra volume mounts