Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alertmanager bridge for prometheus alerts; replace Discord bridge…
… with mautrix/discord (#588) * add hookshot bridge Signed-off-by: jessebot <jessebot@linux.com> * remove hookshot bridge pvc until we have a need for it Signed-off-by: jessebot <jessebot@linux.com> * make sure we evaluate if hookshot is enabled everywhere Signed-off-by: jessebot <jessebot@linux.com> * tidy up existingSecret and existingConfigmap logic to use named templates Signed-off-by: jessebot <jessebot@linux.com> * fix volumes to use projected.sources for single directory with multiple secrets and configmaps Signed-off-by: jessebot <jessebot@linux.com> * fix incorrect secret values and missing n in nindent for security context Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * clean up pem generation docs Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * add all three ports for the services as listed in the hookshot helm chart Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * fix missing port parameter for bridge-hookshot deployment ports Signed-off-by: jessebot <jessebot@linux.com> * fix generic webhook docs Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * add more doc links for permissions and metrics Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * fix conditional for creating name of configmap Signed-off-by: jessebot <jessebot@linux.com> * fix base64 encoding of secrets Signed-off-by: jessebot <jessebot@linux.com> * fix projected volumes Signed-off-by: jessebot <jessebot@linux.com> * change yml to yaml for registration hookshot secret Signed-off-by: jessebot <jessebot@linux.com> * change config.yaml to config.yml for hookshot Signed-off-by: jessebot <jessebot@linux.com> * fix: listeners for hookshot bridge config was duplicated due to wrong placement of range function Signed-off-by: jessebot <jessebot@linux.com> * remove ingress and include as optional path Signed-off-by: jessebot <jessebot@linux.com> * add as_token for hookshot registration secret Signed-off-by: jessebot <jessebot@linux.com> * try to fix appservice port for registration.yaml Signed-off-by: jessebot <jessebot@linux.com> * fix appservice port, take 2 Signed-off-by: jessebot <jessebot@linux.com> * change back to yml versis yaml for registration file Signed-off-by: jessebot <jessebot@linux.com> * fix listeners.resources range for configmap Signed-off-by: jessebot <jessebot@linux.com> * generate passkey.pem if there isn't one given or an existing secret for it Signed-off-by: jessebot <jessebot@linux.com> * add better docs on how passkey works for hookshot bridge Signed-off-by: jessebot <jessebot@linux.com> * fix helm-docs Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * update genPrivateKey function Signed-off-by: jessebot <jessebot@linux.com> * explain bridges a bit more in values.yaml Signed-off-by: jessebot <jessebot@linux.com> * fix secret templating for passkey.pem for hookshot bridge Signed-off-by: jessebot <jessebot@linux.com> * change nindent to indent for passkey.pem for hookshot Signed-off-by: jessebot <jessebot@linux.com> * fix ending whitespace for passkey.pem for hookshot bridge Signed-off-by: jessebot <jessebot@linux.com> * remove RSA from PRIVATE KEY for passkey.pem for hookshot bridge Signed-off-by: jessebot <jessebot@linux.com> * remove replace for RSA for hookshot bridge passkey.pem Signed-off-by: jessebot <jessebot@linux.com> * trim plain text passkey and also automatically template our registration for webhook and github Signed-off-by: jessebot <jessebot@linux.com> * recommend the /webhook endpoint instead of _hookshot_webhook Signed-off-by: jessebot <jessebot@linux.com> * adding encryption and removing spacing Signed-off-by: jessebot <jessebot@linux.com> * helm-docs: automated action Signed-off-by: jessebot <jessebot@linux.com> * remove more whitespace from registration Signed-off-by: jessebot <jessebot@linux.com> * remove extra bridge port from hookshot deployment as I don't _think_ we need it * re-roll synapse and hookshot bridge deployments if underlying configs/secrets change * add bridge port to match upstream example * make registration templatable kinda * helm-docs: automated action * fix url on wrong line for hookshot bridge registration * add back http:// for bridge svc * add new mautrix discord bridge * helm-docs: automated action * first crack at adding mautrix discord bridge * fix secret for mautrix bridge to template properly * helm-docs: automated action * allow for extra volumes to be passed to the mautrix deployment * always recreate the mautrix/discord deployment and only allow 1 replica as per their docs * fix default permissions * fix templating of permissions for mautrix * fix default permissions to be empty array for mautrix * helm-docs: automated action * fix registration for mautrix * make sure that discord_mautrix is considered for mounting bridges pvc * helm-docs: automated action * change mautrix port for service * fix registration.yaml for mautrix * quote all templates * use a volume for the data dir for mautrix/discord, allow existing claims for that and bridges for hookshot as well, update helpers for more useful named tempaltes * helm-docs: automated action * fix missing end for mautrix discord helpers * fix missing not for pvc existingClaim evaluation on mautrix/discord bridge * turn off readonly root file system for bridge-mautrix-discord/deployment.yaml * update mautrix securityContext and podSecurityContext * helm-docs: automated action * mautrix/discord disable security contexts by default * helm-docs: automated action * mautrix/discord: make as_token and hs_token match * mautrix/discord: fix config-secret.yaml -> secret-config.yaml * mautrix/discord bridge: make permissions a map {} instead of an array [] * helm-docs: automated action * attempt to set default permissions for mautrix/discord * use hostname instead of baseurl for permissions for mautrix/discord * allow an admin user to be set for permissions for mautrix/discord * helm-docs: automated action * fix admin user templating for mautrix/discord * try to fix registration regex * mautrix/discord: add existingSecret for registration file or just hs_token/as_token * helm-docs: automated action * mautrix/discord: deployment: image.args: remove - from |- * matrix/discord: remove args entirely from deployment initContainer, and just use command * fix templating issues due to indentation in templates/bridge-mautrix-discord/deployment.yaml * mautrix-bridge: update as_token/hs_token for config.yaml * add debug lines in initcontainer * mautrix/discord: set command for docker image, so we don't update the registration token by default * mautrix/discord: specify config file for bridge * change templating arg order * mautrix/discord - update correct config.yaml tokens * getting rid of synapse.ingress.host and adding bridges.discord_mautrix.admin_users also adding more docs on removals * bump chart to 13.0.0 as we have breaking changes * helm-docs: automated action * remove ingress.host from synapse ingress templating * change replicasets to use .spec.revisionHistoryLimit to allow us to set less replicaSets being retained when argocd updates a deployment * helm-docs: automated action * add note that setting revisionHistoryLimit to 0 means you can't rollback a deployment * helm-docs: automated action * add a bunch more docs * don't require encryption for appservice in mautrix/discord notes * add hookshot user to registration for matrix * clean up hookshot registration to match discord a bit more for appservice reg with synapse * update default appservice service for hookshot * helm-docs: automated action * remove bridge port for hookshot deployment * don't define default avatar urls for bots * helm-docs: automated action * clean up service and deployment for hookshot to only create ports if matrix or generic are enabled and set load config container to be alpine for loading speed * try adding a random alertmanager service * helm-docs: automated action * fix values for alertmanager bridge * helm-docs: automated action * clean up default values for alertmanager * helm-docs: automated action * clean up more alert manager defaults * quote alertmanager port in env var * allow existing secret for registration for alertmanager and make sure synapse actually registers the service * helm-docs: automated action * add dash to if in deployment for alertmanager * add http to service for alertmanager * fix default docker image to be our own for the matrix alertmanager * helm-docs: automated action * update alertmanager to 0.9.0 * helm-docs: automated action * try using 0.10.0-dev of our new image * helm-docs: automated action * try using jessebot/matrix-alertmanager-bot:0.10.1-dev * helm-docs: automated action * upgrade jessebot/matrix-alertmanager-bot to 0.10.0 * helm-docs: automated action * finish filling out possible hookshot values * helm-docs: automated action * add listeners example comment for hookshot's widgets feature * helm-docs: automated action * move alertmanager bridge bot related values under bridges.alertmanager.config.bot and add bot.display_name and bot.avatar * helm-docs: automated action * update issues with alertmanager deployment templating and and alertmanager.config.matrix_homeserver_url to alertmanager.config.homeserver_url * helm-docs: automated action * fix remaining templating issues with the bridge-alertmanager/deployment.yaml and always use with instead of if when possible * bridge-alertmanager: fix avatar URL env var * helm-docs: automated action * update docs on registration and rooms values for alertmanager * helm-docs: automated action * allow existing secret for github hookshot hook * helm-docs: automated action * add hookshot /data emptyDir * hookshot: registration: fix github typo * fix env from secret for bridge hookshot * fix github private key pem in hookshot * helm-docs: automated action * use empty dir for discord volume * helm-docs: automated action * remove pvc for mautrix discord * fix checking discord config for tokens * fix yq of github data for hookshot bridge * fix bridge hookshot registration.yml * add scratch space for hookshot * fix scratch typo * fix where github pem is located * helm-docs: automated action * clean up templating names for config files * fix hookshot securityContexts * helm-docs: automated action * don't set securityContexts by default * helm-docs: automated action * clean up docs on using new bridges * helm-docs: automated action --------- Signed-off-by: jessebot <jessebot@linux.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information