Move appkey to secret

Move appkey to proper secret. Also support an existingSecret to allow managing the appkey outside on values.yaml.
This commit is contained in:
Jacob Winther
2025-04-26 14:04:41 +12:00
parent 9e10305468
commit 0a99414d6a
8 changed files with 38 additions and 6 deletions

View File

@@ -1 +0,0 @@
APP_KEY={{.Values.librenms.appkey}}

View File

@@ -1,7 +1,7 @@
#!/bin/sh
TARGET="/data/env-volume/env"
echo "Target: $TARGET"
cp /data/files/env $TARGET
echo -e "\nNODE_ID=`hostname`" >> $TARGET
echo "APP_KEY=$(cat /data/key/appkey)" > $TARGET
echo "NODE_ID=$(hostname)" >> $TARGET
cat $TARGET