Merge "Support both json and yaml RBAC Policy Format"
This commit is contained in:
commit
311fb5bf69
@ -14,7 +14,7 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Horizon
|
description: OpenStack-Helm Horizon
|
||||||
name: horizon
|
name: horizon
|
||||||
version: 0.2.11
|
version: 0.2.12
|
||||||
home: https://docs.openstack.org/horizon/latest/
|
home: https://docs.openstack.org/horizon/latest/
|
||||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
|
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -27,6 +27,9 @@ data:
|
|||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.horizon.security "key" "security.conf" "format" "Secret" ) | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.horizon.security "key" "security.conf" "format" "Secret" ) | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.conf.horizon.policy }}
|
{{- range $key, $value := .Values.conf.horizon.policy }}
|
||||||
{{ printf "%s_policy.yaml" $key }}: {{ $value | toPrettyJson | b64enc }}
|
{{ printf "%s_policy.json" $key }}: {{ $value | toPrettyJson | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $key, $value := .Values.conf.horizon.policy }}
|
||||||
|
{{ printf "%s_policy.yaml" $key }}: {{ toYaml $value | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -123,10 +123,17 @@ spec:
|
|||||||
subPath: local_settings
|
subPath: local_settings
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- range $key, $value := $envAll.Values.conf.horizon.policy }}
|
{{- range $key, $value := $envAll.Values.conf.horizon.policy }}
|
||||||
{{- $policyFile := printf "/etc/openstack-dashboard/%s_policy.yaml" $key }}
|
{{- $policyYamlFile := printf "/etc/openstack-dashboard/%s_policy.yaml" $key }}
|
||||||
- name: horizon-etc
|
- name: horizon-etc
|
||||||
mountPath: {{ $policyFile }}
|
mountPath: {{ $policyYamlFile }}
|
||||||
subPath: {{ base $policyFile }}
|
subPath: {{ base $policyYamlFile }}
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
{{- range $key, $value := $envAll.Values.conf.horizon.policy }}
|
||||||
|
{{- $policyJsonFile := printf "/etc/openstack-dashboard/%s_policy.json" $key }}
|
||||||
|
- name: horizon-etc
|
||||||
|
mountPath: {{ $policyJsonFile }}
|
||||||
|
subPath: {{ base $policyJsonFile }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.secrets.tls.dashboard.dashboard.internal "path" "/etc/openstack-dashboard/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
|
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.secrets.tls.dashboard.dashboard.internal "path" "/etc/openstack-dashboard/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
|
||||||
|
@ -21,4 +21,5 @@ horizon:
|
|||||||
- 0.2.9 Removed default policy in chart in favor of default policy in code
|
- 0.2.9 Removed default policy in chart in favor of default policy in code
|
||||||
- 0.2.10 Helm 3 - Fix Job Labels
|
- 0.2.10 Helm 3 - Fix Job Labels
|
||||||
- 0.2.11 Update htk requirements repo
|
- 0.2.11 Update htk requirements repo
|
||||||
|
- 0.2.12 Support both json and yaml RBAC Policy Format
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user