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:
parent
58e19cdb65
commit
61ae063d5e
@ -14,7 +14,7 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Designate
|
description: OpenStack-Helm Designate
|
||||||
name: designate
|
name: designate
|
||||||
version: 0.2.2
|
version: 0.2.3
|
||||||
home: https://docs.openstack.org/designate/latest/
|
home: https://docs.openstack.org/designate/latest/
|
||||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Designate/OpenStack_Project_Designate_vertical.jpg
|
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Designate/OpenStack_Project_Designate_vertical.jpg
|
||||||
sources:
|
sources:
|
||||||
|
@ -96,7 +96,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -110,5 +110,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -83,7 +83,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -97,5 +97,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -94,7 +94,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -108,5 +108,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -83,7 +83,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -97,5 +97,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -79,7 +79,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -93,5 +93,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -72,7 +72,7 @@ spec:
|
|||||||
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
containers:
|
||||||
- name: designate-worker
|
- name: designate-worker
|
||||||
{{ tuple $envAll "designate_worker" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ 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 }}
|
subPath: {{ base .Values.conf.designate.DEFAULT.log_config_append }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- 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:
|
volumes:
|
||||||
- name: pod-etc-designate
|
- name: pod-etc-designate
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -122,5 +122,5 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: designate-etc
|
secretName: designate-etc
|
||||||
defaultMode: 0444
|
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 }}
|
{{- end }}
|
||||||
|
@ -47,12 +47,12 @@ spec:
|
|||||||
mountPath: /tmp/bootstrap.sh
|
mountPath: /tmp/bootstrap.sh
|
||||||
subPath: bootstrap.sh
|
subPath: bootstrap.sh
|
||||||
readOnly: true
|
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:
|
volumes:
|
||||||
- name: designate-bin
|
- name: designate-bin
|
||||||
configMap:
|
configMap:
|
||||||
name: designate-bin
|
name: designate-bin
|
||||||
defaultMode: 0555
|
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 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -6,4 +6,4 @@ designate:
|
|||||||
- 0.2.0 Remove support for releases before T
|
- 0.2.0 Remove support for releases before T
|
||||||
- 0.2.1 Use policies in yaml format
|
- 0.2.1 Use policies in yaml format
|
||||||
- 0.2.2 Update htk requirements repo
|
- 0.2.2 Update htk requirements repo
|
||||||
...
|
- 0.2.3 Fix extra volume mounts
|
||||||
|
Loading…
Reference in New Issue
Block a user