initial commit
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
.PHONY: default all ui-minimalist config sensors
|
||||
|
||||
NAMESPACE := home-assistant
|
||||
POD_ID := $(shell kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}")
|
||||
CONFIG_FILES := configuration.yaml secrets.yaml input_boolean.yaml
|
||||
|
||||
default: all
|
||||
|
||||
all: ui-minimalist config sensors
|
||||
|
||||
config:
|
||||
for FILE in $(CONFIG_FILES); do \
|
||||
kubectl cp $$FILE $(NAMESPACE)/$(POD_ID):/config; \
|
||||
done
|
||||
|
||||
ui-minimalist:
|
||||
kubectl cp ui_lovelace_minimalist $(NAMESPACE)/$(POD_ID):/config; \
|
||||
|
||||
sensors:
|
||||
kubectl cp sensors $(NAMESPACE)/$(POD_ID):/config
|
Reference in New Issue
Block a user