4 Commits
0.0.4 ... 0.0.8

Author SHA1 Message Date
2c21ab00a0 counter fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed
2024-12-02 10:31:11 +01:00
d66483cdf3 minimize debug output
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-12-02 10:26:55 +01:00
ecceb5baa3 mqtt cred
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-12-02 10:19:58 +01:00
c505c525f8 fix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-12-02 09:55:54 +01:00
5 changed files with 8 additions and 5 deletions

View File

@ -4,7 +4,7 @@ PGHOST=`kubectl get services traefik -n system -o jsonpath="{.status.loadBalance
PGPASSWORD=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGPASSWORD}" | base64 --decode`
PGUSER=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGUSER}" | base64 --decode`
PGSSLMODE=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGSSLMODE}" | base64 --decode`
PGDATABASE="matest"
PGDATABASE="ma"
export PGUSER PGHOST PGPASSWORD PGSSLMODE PGDATABASE
MA_CONF=`cat config-test.json`

View File

@ -1,6 +1,7 @@
{
"mqtt": {
"broker": "mqtt://emqx01-anonymous-cluster-internal.broker.svc.cluster.local:1883",
"username": "archiver",
"tlsEnable": "false"
},
"includeTopics": [

View File

@ -22,7 +22,9 @@ spec:
imagePullPolicy: Always
envFrom:
- secretRef:
name: ma-db-cred
name: ma-db-cred
- secretRef:
name: ma-mqtt-cred
- configMapRef:
name: ma-conf
name: ma-conf

View File

@ -11,6 +11,7 @@ LOGIN=ma
PASSWORD=`openssl rand -base64 24`
NAMESPACE=`cat namespace`
psql <<EOF
do
\$\$

View File

@ -29,8 +29,7 @@ func InputArchiver() {
}
func handleMessage(message database.Message) {
log.Printf("Archiving Timestamp: %s, Topic: %s, Payload: %s", message.Time, message.Topic, message.Payload)
// log.Printf("Archiving Timestamp: %s, Topic: %s, Payload: %s", message.Time, message.Topic, message.Payload)
dbh.StoreMessage(&message)
counter.S("Stored")
}