Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
feat: update image, cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenix authored and WrenIX committed Oct 26, 2023
1 parent 6fc17b2 commit f8a9a8f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 41 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: latest
appVersion: 0.23.2
description: A Matrix-Signal puppeting bridge.
name: mautrix-signal
version: 0.2.0
version: 0.2.1
type: application
keywords:
- synapse
Expand Down
73 changes: 38 additions & 35 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,50 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mautrix-signal.fullname" . }}
{{- if .Values.deploymentAnnotations }}
{{- with .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "mautrix-signal.labels" . | indent 4 }}
{{- include "mautrix-signal.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.strategy }}
{{- if .Values.strategy }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
{{ if eq .Values.strategy.type "Recreate" }}
{{- toYaml .Values.strategy | nindent 4 }}
{{- if eq .Values.strategy.type "Recreate" }}
rollingUpdate: null
{{- end }}
{{- end }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "mautrix-signal.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "mautrix-signal.selectorLabels" . | nindent 8 }}
{{- if $podAnnotations }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end
{{- with $podAnnotations }}
annotations:
{{- range $key, $value := $podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
serviceAccountName: {{ template "mautrix-signal.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.dnsConfig }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- name: init
image: "{{ .Values.image.mautrixSignal.repository }}:{{ tpl .Values.image.mautrixSignal.tag . }}"
image: "{{ .Values.image.mautrixSignal.registry }}/{{ .Values.image.mautrixSignal.repository }}:{{ .Values.image.mautrixSignal.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.mautrixSignal.pullPolicy }}
command: ["/bin/sh"]
args:
Expand Down Expand Up @@ -79,29 +78,33 @@ spec:
- name: http
containerPort: {{ required "need config.appservice.port" .Values.config.appservice.port }}
protocol: TCP
env:
[]
{{- with .Values.probes.liveness }}
livenessProbe:
httpGet:
path: /_matrix/mau/live
port: http
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
failureThreshold: {{ .failureThreshold }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- with .Values.probes.readiness }}
readinessProbe:
httpGet:
path: /_matrix/mau/live
port: http
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
failureThreshold: {{ .failureThreshold }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
{{- with .Values.probes.startup }}
startupProbe:
httpGet:
path: /_matrix/mau/live
port: http
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
{{- end }}
initialDelaySeconds: {{ .initialDelaySeconds }}
failureThreshold: {{ .failureThreshold }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- end }}
volumeMounts:
- name: config
mountPath: /config
Expand All @@ -114,7 +117,7 @@ spec:
- name: signald
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.signald.repository }}:{{ tpl .Values.image.signald.tag . }}"
image: "{{ .Values.image.signald.registry }}/{{ .Values.image.signald.repository }}:{{ .Values.image.signald.tag }}"
imagePullPolicy: {{ .Values.image.signald.pullPolicy }}
args:
# user socket
Expand Down Expand Up @@ -155,11 +158,11 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
11 changes: 7 additions & 4 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ replicaCount: 1

image:
mautrixSignal:
repository: dock.mau.dev/mautrix/signal
tag: "{{ .Chart.AppVersion }}"
pullPolicy: Always
registry: dock.mau.dev
repository: mautrix/signal
tag:
pullPolicy: IfNotPresent
signald:
registry: docker.io
repository: signald/signald
tag: 0.23.0
tag: 0.23.2
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand Down Expand Up @@ -388,6 +390,7 @@ tolerations: []
affinity: {}

podAnnotations: {}
podLabels: {}

deploymentAnnotations: {}

Expand Down

0 comments on commit f8a9a8f

Please sign in to comment.