From 474b41ffce5d635b11033a5da6d0c5e4f9f993fd Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 6 Jan 2026 14:02:11 +0100 Subject: [PATCH] deploy confguuration script --- tools/deploy-configuration.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/deploy-configuration.sh diff --git a/tools/deploy-configuration.sh b/tools/deploy-configuration.sh new file mode 100755 index 0000000..05d6956 --- /dev/null +++ b/tools/deploy-configuration.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +NAMESPACE=homea2 + +kubectl create configmap home-automation-config \ + --from-file=devices.yaml=config/devices.yaml \ + --from-file=groups.yaml=config/groups.yaml \ + --from-file=layout.yaml=config/layout.yaml \ + --from-file=rules.yaml=config/rules.yaml \ + --from-file=scenes.yaml=config/scenes.yaml \ + --namespace=$NAMESPACE \ + --dry-run=client -o yaml | kubectl apply -f - + +kubectl apply -f deployment/configmap.yaml -n $NAMESPACE +