update secret to match case if imported keys

This commit is contained in:
Joseph Hanson 2024-09-22 23:00:07 -05:00
parent 94f9b7fb96
commit 40fe789509
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -43,11 +43,11 @@ spec:
},
{
username = "tasmota"
password = "{{ .X_EMQX_TASMOTA_PASSWORD }}"
password = "{{ .x-emqx-tasmota-password }}"
},
{
username = "homeassistant"
password = "{{ .X_EMQX_HOMEASSISTANT_PASSWORD }}"
password = "{{ .x-emqx-homeassistant-password }}"
}
]
@ -59,10 +59,10 @@ spec:
rewrite:
- regexp:
source: "(.*)"
target: "X_EMQX_TASMOTA_$1"
target: "x-emqx-tasmota-$1"
- extract:
key: "emqx [homeassistant]"
rewrite:
- regexp:
source: "(.*)"
target: "X_EMQX_HOMEASSISTANT_$1"
target: "x-emqx-homeassistant-$1"