meshtastic bridge: switch to go impl

This commit is contained in:
Finn 2024-10-20 21:59:22 -07:00
parent b76ff4d7d4
commit f2d1506438
4 changed files with 23 additions and 30 deletions

View file

@ -3,9 +3,9 @@ kind: Kustomization
namespace: meshtastic
resources:
- namespace.yaml
- matrix-meshtastic-bridge.yaml
- matrix-bridge-meshtastic.yaml
- secrets.yaml
configMapGenerator:
- name: matrix-meshtastic-bridge
- name: matrix-bridge-meshtastic
files:
- matrix-meshtastic-bridge/config.json
- matrix-bridge-meshtastic/config.json

View file

@ -1,35 +1,29 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: matrix-meshtastic-bridge
name: matrix-bridge-meshtastic
spec:
selector:
matchLabels:
app: matrix-meshtastic-bridge
serviceName: matrix-meshtastic-bridge
app: matrix-bridge-meshtastic
serviceName: matrix-bridge-meshtastic
replicas: 1
template:
metadata:
labels:
app: matrix-meshtastic-bridge
app: matrix-bridge-meshtastic
spec:
tolerations:
- key: rtlsdr
value: "true"
effect: NoSchedule
containers:
- name: matrix-meshtastic-bridge
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-4f5b878
- name: matrix-bridge-meshtastic
image: git.janky.solutions/finn/matrix-bridge-meshtastic:sha-fae2a30
securityContext:
privileged: true
env:
- name: RUST_LOG
value: debug
- name: CONFIG_PATH
- name: MATRIX_BRIDGE_MESHTASTIC_CONFIG
value: /config/config.json
envFrom:
- secretRef:
name: matrix-meshtastic-bridge
name: matrix-bridge-meshtastic
volumeMounts:
- name: config
mountPath: /config
@ -38,7 +32,7 @@ spec:
volumes:
- name: config
configMap:
name: matrix-meshtastic-bridge
name: matrix-bridge-meshtastic
volumeClaimTemplates:
- metadata:
name: data

View file

@ -0,0 +1,11 @@
{
"matrix": {
"user": "@meshtastic-test:janky.bot",
"room": "!VRoqFXTXJCHdTDdilP:janky.solutions",
"state": "/data/matrix.db"
},
"meshtastic": {
"address": "10.5.0.214"
},
"db": "/data/bridge.db"
}

View file

@ -1,12 +0,0 @@
{
"matrix": {
"username": "@meshtastic-test:janky.bot",
"room": "!VRoqFXTXJCHdTDdilP:janky.solutions",
"user": "@finn:janky.solutions",
"state": "/data/matrix.db"
},
"meshtastic": {
"address": "10.5.0.214:80"
},
"db": "sqlite:///data/bridge.db"
}