Add resource_filters.json to Cinder's configmap
During the Stein development cycle, Cinder removed the deprecated query_volume_filters configuration option with Icd311db7f88c3c274d9a362eb96519e46c7e4d17. This chart update will add resource_filters.json to the configmap and provides the default values for the filter keys to enable filtering in the list APIs. Change-Id: I31263e9ce06d31773e961ae5d1252e062a38a4e5 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
parent
89d53f2d78
commit
d1fbf4ac14
@ -121,6 +121,7 @@ data:
|
|||||||
policy.json: {{ toJson .Values.conf.policy | b64enc }}
|
policy.json: {{ toJson .Values.conf.policy | b64enc }}
|
||||||
cinder_sudoers: {{ $envAll.Values.conf.cinder_sudoers | b64enc }}
|
cinder_sudoers: {{ $envAll.Values.conf.cinder_sudoers | b64enc }}
|
||||||
rootwrap.conf: {{ $envAll.Values.conf.rootwrap | b64enc }}
|
rootwrap.conf: {{ $envAll.Values.conf.rootwrap | b64enc }}
|
||||||
|
resource_filters.json: {{ toJson .Values.conf.resource_filters | b64enc }}
|
||||||
{{- range $key, $value := $envAll.Values.conf.rootwrap_filters }}
|
{{- range $key, $value := $envAll.Values.conf.rootwrap_filters }}
|
||||||
{{- $filePrefix := replace "_" "-" $key }}
|
{{- $filePrefix := replace "_" "-" $key }}
|
||||||
{{ printf "%s.filters" $filePrefix }}: {{ $value.content | b64enc }}
|
{{ printf "%s.filters" $filePrefix }}: {{ $value.content | b64enc }}
|
||||||
|
@ -119,6 +119,10 @@ spec:
|
|||||||
mountPath: /etc/cinder/policy.json
|
mountPath: /etc/cinder/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: cinder-etc
|
||||||
|
mountPath: {{ .Values.conf.cinder.DEFAULT.resource_query_filters_file }}
|
||||||
|
subPath: resource_filters.json
|
||||||
|
readOnly: true
|
||||||
{{- if eq ( split "://" .Values.conf.cinder.coordination.backend_url )._0 "file" }}
|
{{- if eq ( split "://" .Values.conf.cinder.coordination.backend_url )._0 "file" }}
|
||||||
- name: cinder-coordination
|
- name: cinder-coordination
|
||||||
mountPath: {{ ( split "://" .Values.conf.cinder.coordination.backend_url )._1 }}
|
mountPath: {{ ( split "://" .Values.conf.cinder.coordination.backend_url )._1 }}
|
||||||
|
@ -721,6 +721,7 @@ conf:
|
|||||||
chunk_size: 8
|
chunk_size: 8
|
||||||
cinder:
|
cinder:
|
||||||
DEFAULT:
|
DEFAULT:
|
||||||
|
resource_query_filters_file: /etc/cinder/resource_filters.json
|
||||||
log_config_append: /etc/cinder/logging.conf
|
log_config_append: /etc/cinder/logging.conf
|
||||||
use_syslog: false
|
use_syslog: false
|
||||||
use_stderr: true
|
use_stderr: true
|
||||||
@ -871,6 +872,44 @@ conf:
|
|||||||
sla:
|
sla:
|
||||||
failure_rate:
|
failure_rate:
|
||||||
max: 0
|
max: 0
|
||||||
|
resource_filters:
|
||||||
|
volume:
|
||||||
|
- name
|
||||||
|
- status
|
||||||
|
- metadata
|
||||||
|
- bootable
|
||||||
|
- migration_status
|
||||||
|
- availability_zone
|
||||||
|
- group_id
|
||||||
|
backup:
|
||||||
|
- name
|
||||||
|
- status
|
||||||
|
- volume_id
|
||||||
|
snapshot:
|
||||||
|
- name
|
||||||
|
- status
|
||||||
|
- volume_id
|
||||||
|
- metadata
|
||||||
|
- availability_zone
|
||||||
|
group: []
|
||||||
|
group_snapshot:
|
||||||
|
- status
|
||||||
|
- group_id
|
||||||
|
attachment:
|
||||||
|
- volume_id
|
||||||
|
- status
|
||||||
|
- instance_id
|
||||||
|
- attach_status
|
||||||
|
message:
|
||||||
|
- resource_uuid
|
||||||
|
- resource_type
|
||||||
|
- event_id
|
||||||
|
- request_id
|
||||||
|
- message_level
|
||||||
|
pool:
|
||||||
|
- name
|
||||||
|
- volume_type
|
||||||
|
volume_type: []
|
||||||
|
|
||||||
backup:
|
backup:
|
||||||
external_ceph_rbd:
|
external_ceph_rbd:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user