1
0
Fork 0

app/matrix: backport matrix.metadata(component) into matrix-ng

This is used by some external modules (appservices/instance
definitions). In order to reduce scope of (untested) changes in this
rollout, let's temporarily backport that function into matrix-ng.

Change-Id: Ib1054844391497ef1455b25c7f939c68c628ff09
master
informatic 2021-01-31 19:07:32 +01:00
parent 356dd6d571
commit fb119aa4f0
1 changed files with 16 additions and 0 deletions

View File

@ -23,6 +23,11 @@
# .riotConfig → .riot.config
# .synapseConfig → .synapse.config
#
# When migrating from CAS to OpenID Connect authentication scheme following need
# to be ensured:
# * https://{homeserver}/_synapse/oidc/callback is added to allowed callback URLs list
# * openid scope is enabled for configured client
#
# Sequencing appservices is fun. The appservice needs to run first (for
# instance, via a bootstrap job), and on startup it will spit out a
# registration file. This registration file then needs to be fed to synapse -
@ -117,6 +122,17 @@ local synapse = import "./synapse.libsonnet";
wellKnown: false,
},
# DEPRECATED: this needs to be removed in favor of namespace.Contain() in
# modules that depend on this (appservices/instance defintions)
metadata(component):: {
namespace: cfg.namespace,
labels: {
"app.kubernetes.io/name": "matrix",
"app.kubernetes.io/managed-by": "kubecfg",
"app.kubernetes.io/component": component,
},
},
namespace: kube.Namespace(cfg.namespace),
postgres3: postgres {