Merge "[US:349446] Adding capabilites for reading policy.yaml file."

This commit is contained in:
Zuul 2018-12-20 06:20:48 +00:00 committed by Gerrit Code Review
commit 5b26d7c0bd
3 changed files with 15 additions and 0 deletions

View File

@ -55,4 +55,6 @@ data:
{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | indent 4 }}
promenade.conf: |+
{{ include "helm-toolkit.utils.to_ini" .Values.conf.promenade | indent 4 }}
policy.yaml: |+
{{ toYaml .Values.conf.policy | indent 4 }}
{{- end }}

View File

@ -86,6 +86,9 @@ spec:
readOnly: true
- name: cache
mountPath: /tmp/cache
- name: promenade-etc
mountpath: /etc/promenade/policy.yaml
subPath: policy.yaml
volumes:
- name: promenade-etc
configMap:

View File

@ -18,6 +18,16 @@ conf:
delay_auth_decision: true
auth_type: password
auth_section: keystone_authtoken
oslo_policy:
policy_file: policy.yaml
policy_default_rule: admin_required
policy_dirs: policy.d
policy:
admin_required: 'role:admin or is_admin:1'
'kubernetes_provisioner:get_join_scripts': 'rule:admin_required'
'kubernetes_provisioner:post_validatedesign': 'rule:admin_required'
'kubernetes_provisioner:update_node_labels': 'rule:admin_required'
paste:
pipeline:main: