Merge "feat(manila): allow users to provide configs in manila.conf.d"
This commit is contained in:
@@ -16,4 +16,5 @@ limitations under the License.
|
||||
|
||||
set -ex
|
||||
exec manila-data \
|
||||
--config-file /etc/manila/manila.conf
|
||||
--config-file /etc/manila/manila.conf \
|
||||
--config-dir /etc/manila/manila.conf.d
|
||||
|
||||
@@ -16,4 +16,5 @@ limitations under the License.
|
||||
|
||||
set -ex
|
||||
exec manila-scheduler \
|
||||
--config-file /etc/manila/manila.conf
|
||||
--config-file /etc/manila/manila.conf \
|
||||
--config-dir /etc/manila/manila.conf.d
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
set -ex
|
||||
exec manila-share \
|
||||
--config-file /etc/manila/manila.conf \
|
||||
--config-dir /etc/manila/manila.conf.d \
|
||||
{{- if and ( empty .Values.conf.manila.generic.service_network_host ) ( .Values.pod.use_fqdn.share ) }}
|
||||
--config-file /tmp/pod-shared/manila-share-fqdn.conf
|
||||
{{- end }}
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
|
||||
{{- $mounts_manila_api := .Values.pod.mounts.manila_api.manila_api }}
|
||||
{{- $mounts_manila_api_init := .Values.pod.mounts.manila_api.init_container }}
|
||||
{{- $etcSources := .Values.pod.etcSources.manila_api }}
|
||||
|
||||
{{- $serviceAccountName := "manila-api" }}
|
||||
{{ tuple $envAll "api" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
@@ -99,6 +100,9 @@ spec:
|
||||
mountPath: /etc/manila/manila.conf
|
||||
subPath: manila.conf
|
||||
readOnly: true
|
||||
- name: manila-etc-snippets
|
||||
mountPath: /etc/manila/manila.conf.d/
|
||||
readOnly: true
|
||||
- name: manila-etc
|
||||
mountPath: /etc/manila/manila-api-uwsgi.ini
|
||||
subPath: manila-api-uwsgi.ini
|
||||
@@ -139,6 +143,14 @@ spec:
|
||||
secret:
|
||||
secretName: manila-etc
|
||||
defaultMode: 0444
|
||||
- name: manila-etc-snippets
|
||||
{{- if $etcSources }}
|
||||
projected:
|
||||
sources:
|
||||
{{ toYaml $etcSources | indent 14 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{ end }}
|
||||
- name: manila-bin
|
||||
configMap:
|
||||
name: manila-bin
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
|
||||
{{- $mounts_manila_data := .Values.pod.mounts.manila_data.manila_data }}
|
||||
{{- $mounts_manila_data_init := .Values.pod.mounts.manila_data.init_container }}
|
||||
{{- $etcSources := .Values.pod.etcSources.manila_data }}
|
||||
|
||||
{{- $serviceAccountName := "manila-data" }}
|
||||
{{ tuple $envAll "data" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
@@ -84,6 +85,9 @@ spec:
|
||||
mountPath: /etc/manila/manila.conf
|
||||
subPath: manila.conf
|
||||
readOnly: true
|
||||
- name: manila-etc-snippets
|
||||
mountPath: /etc/manila/manila.conf.d/
|
||||
readOnly: true
|
||||
{{- if .Values.conf.manila.DEFAULT.log_config_append }}
|
||||
- name: manila-etc
|
||||
mountPath: {{ .Values.conf.manila.DEFAULT.log_config_append }}
|
||||
@@ -116,6 +120,14 @@ spec:
|
||||
secret:
|
||||
secretName: manila-etc
|
||||
defaultMode: 0444
|
||||
- name: manila-etc-snippets
|
||||
{{- if $etcSources }}
|
||||
projected:
|
||||
sources:
|
||||
{{ toYaml $etcSources | indent 14 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{ end }}
|
||||
- name: manila-bin
|
||||
configMap:
|
||||
name: manila-bin
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
|
||||
{{- $mounts_manila_scheduler := .Values.pod.mounts.manila_scheduler.manila_scheduler }}
|
||||
{{- $mounts_manila_scheduler_init := .Values.pod.mounts.manila_scheduler.init_container }}
|
||||
{{- $etcSources := .Values.pod.etcSources.manila_scheduler }}
|
||||
|
||||
{{- $serviceAccountName := "manila-scheduler" }}
|
||||
{{ tuple $envAll "scheduler" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
@@ -84,6 +85,9 @@ spec:
|
||||
mountPath: /etc/manila/manila.conf
|
||||
subPath: manila.conf
|
||||
readOnly: true
|
||||
- name: manila-etc-snippets
|
||||
mountPath: /etc/manila/manila.conf.d/
|
||||
readOnly: true
|
||||
{{- if .Values.conf.manila.DEFAULT.log_config_append }}
|
||||
- name: manila-etc
|
||||
mountPath: {{ .Values.conf.manila.DEFAULT.log_config_append }}
|
||||
@@ -116,6 +120,14 @@ spec:
|
||||
secret:
|
||||
secretName: manila-etc
|
||||
defaultMode: 0444
|
||||
- name: manila-etc-snippets
|
||||
{{- if $etcSources }}
|
||||
projected:
|
||||
sources:
|
||||
{{ toYaml $etcSources | indent 14 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{ end }}
|
||||
- name: manila-bin
|
||||
configMap:
|
||||
name: manila-bin
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
|
||||
{{- $mounts_manila_share := .Values.pod.mounts.manila_share.manila_share }}
|
||||
{{- $mounts_manila_share_init := .Values.pod.mounts.manila_share.init_container }}
|
||||
{{- $etcSources := .Values.pod.etcSources.manila_share }}
|
||||
|
||||
{{- $serviceAccountName := "manila-share" }}
|
||||
{{ tuple $envAll "share" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
@@ -130,6 +131,9 @@ spec:
|
||||
mountPath: /etc/manila/manila.conf
|
||||
subPath: manila.conf
|
||||
readOnly: true
|
||||
- name: manila-etc-snippets
|
||||
mountPath: /etc/manila/manila.conf.d/
|
||||
readOnly: true
|
||||
- name: manila-etc
|
||||
mountPath: /etc/manila/rootwrap.conf
|
||||
subPath: rootwrap.conf
|
||||
@@ -204,6 +208,14 @@ spec:
|
||||
secret:
|
||||
secretName: manila-etc
|
||||
defaultMode: 0444
|
||||
- name: manila-etc-snippets
|
||||
{{- if $etcSources }}
|
||||
projected:
|
||||
sources:
|
||||
{{ toYaml $etcSources | indent 14 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{ end }}
|
||||
- name: manila-bin
|
||||
configMap:
|
||||
name: manila-bin
|
||||
|
||||
@@ -146,6 +146,15 @@ pod:
|
||||
manila_db_sync:
|
||||
volumeMounts:
|
||||
volumes:
|
||||
# -- This allows users to add Kubernetes Projected Volumes to be mounted at /etc/manila/manila.conf.d/
|
||||
## This is a list of projected volume source objects for each deployment/statefulset/daemonset/cronjob
|
||||
## https://kubernetes.io/docs/concepts/storage/projected-volumes/
|
||||
etcSources:
|
||||
manila_api: []
|
||||
manila_scheduler: []
|
||||
manila_data: []
|
||||
manila_share: []
|
||||
manila_db_sync: []
|
||||
replicas:
|
||||
api: 1
|
||||
data: 1
|
||||
|
||||
7
releasenotes/notes/manila-a5beeacdb577dd23.yaml
Normal file
7
releasenotes/notes/manila-a5beeacdb577dd23.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
manila:
|
||||
- |
|
||||
Allow users to add additional sources to the Projected Volume that is mounted
|
||||
at /etc/manila/manila.conf.d/ so they may more easily override configs or provide
|
||||
additional configs for the various services in the chart.
|
||||
...
|
||||
Reference in New Issue
Block a user