Support SSL identity endpoint in horizon

Change-Id: I14c99d6966f3610425c5430d40f28d7bce7d2750
This commit is contained in:
josebb 2022-03-10 17:33:21 +02:00
parent ced30abead
commit 51b6cf4664
4 changed files with 11 additions and 3 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Horizon
name: horizon
version: 0.2.25
version: 0.2.26
home: https://docs.openstack.org/horizon/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
sources:

View File

@ -70,6 +70,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
{{- if or .Values.manifests.certificates .Values.tls.identity }}
- name: REQUESTS_CA_BUNDLE
value: "/etc/openstack-dashboard/certs/ca.crt"
{{- end }}
lifecycle:
preStop:
exec:
@ -157,7 +161,7 @@ spec:
mountPath: /tmp/favicon.ico
subPath: favicon.ico
{{- 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" (or $envAll.Values.manifests.certificates $envAll.Values.tls.identity) "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.endpoints.oslo_db.auth.admin.secret.tls.internal "path" "/etc/mysql/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
{{ if $mounts_horizon.volumeMounts }}{{ toYaml $mounts_horizon.volumeMounts | indent 12 }}{{ end }}
volumes:
@ -181,6 +185,6 @@ spec:
name: horizon-logo
{{- end }}
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.endpoints.oslo_db.auth.admin.secret.tls.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }}
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.secrets.tls.dashboard.dashboard.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }}
{{- dict "enabled" (or $envAll.Values.manifests.certificates $envAll.Values.tls.identity) "name" $envAll.Values.secrets.tls.dashboard.dashboard.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }}
{{ if $mounts_horizon.volumes }}{{ toYaml $mounts_horizon.volumes | indent 8 }}{{ end }}
{{- end }}

View File

@ -1236,6 +1236,9 @@ secrets:
oci_image_registry:
horizon: horizon-oci-image-registry
tls:
identity: false
# typically overridden by environmental
# values, but should include all endpoints
# required by this chart

View File

@ -35,4 +35,5 @@ horizon:
- 0.2.23 Add Xena and Yoga value overrides
- 0.2.24 Remove blank lines in logo configmap
- 0.2.25 Added OCI registry authentication
- 0.2.26 Support SSL identity endpoint
...