Skip to content

Commit

Permalink
esphome: add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
cubic3d committed Feb 13, 2025
1 parent 0451be6 commit 5f67a36
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion kubernetes/main/apps/automation/esphome/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ spec:
template:
data:
secrets.yaml: |-
ssid: "{{ .esphome_ssid }}"
wifi_ssid: "{{ .esphome_wifi_ssid }}"
wifi_pwd: "{{ .esphome_wifi_password }}"
wifi_fallback_ssid_password: "{{ .esphome_wifi_fallback_ssid_password }}"
mqtt_host: mqtt.${domain}
mqtt_user: user
mqtt_pwd: "{{ .emqx_user_password }}"
dataFrom:
- extract:
Expand All @@ -21,3 +27,10 @@ spec:
- regexp:
source: "(.*)"
target: "esphome_$1"

- extract:
key: emqx
rewrite:
- regexp:
source: "(.*)"
target: "emqx_$1"

0 comments on commit 5f67a36

Please sign in to comment.