mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-05 08:12:26 -08:00
well-known: use helpers for configmap data and drop chart version from pod labels
This commit is contained in:
2 files changed
+16
-9
No files matched your search
@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
app.kubernetes.io/component: matrix-delegation
|
||||
app.kubernetes.io/name: well-known-delegation
|
||||
app.kubernetes.io/instance: {{ $root.Release.Name }}-well-known-delegation
|
||||
app.kubernetes.io/version: {{ $root.Chart.Version }}
|
||||
app.kubernetes.io/version: {{ $root.Values.haproxy.image.tag }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -86,3 +86,17 @@ k8s.element.io/target-instance: {{ $root.Release.Name }}-haproxy
|
||||
{{- tpl (toPrettyJson (merge $config $additional)) $root -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "element-io.well-known-delegation.configmap-data" -}}
|
||||
{{- $root := .root -}}
|
||||
{{- with required "element-io.well-known-delegation.configmap-data missing context" .context -}}
|
||||
client: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.client" (dict "root" $root "context" .)) $root) | nindent 2 }}
|
||||
server: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.server" (dict "root" $root "context" .)) $root) | nindent 2 }}
|
||||
support: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.support" (dict "root" $root "context" .)) $root) | nindent 2 }}
|
||||
element.json: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.element" (dict "root" $root "context" .)) $root) | nindent 2 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -14,13 +14,6 @@ metadata:
|
||||
name: {{ $.Release.Name }}-well-known-haproxy
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
data:
|
||||
client: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.client" (dict "root" $ "context" .)) $) | nindent 4 }}
|
||||
server: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.server" (dict "root" $ "context" .)) $) | nindent 4 }}
|
||||
support: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.support" (dict "root" $ "context" .)) $) | nindent 4 }}
|
||||
element.json: |
|
||||
{{ (tpl (include "element-io.well-known-delegation.element" (dict "root" $ "context" .)) $) | nindent 4 }}
|
||||
{{- include "element-io.well-known-delegation.configmap-data" (dict "root" $ "context" .) | nindent 2 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user