2024-04-14 14:58:03 -05:00
|
|
|
---
|
2024-04-17 18:45:44 -05:00
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
2024-04-14 14:58:03 -05:00
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
|
|
|
name: home-assistant
|
|
|
|
spec:
|
|
|
|
secretStoreRef:
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
name: onepassword-connect
|
|
|
|
target:
|
|
|
|
name: home-assistant-secret
|
|
|
|
creationPolicy: Owner
|
|
|
|
template:
|
|
|
|
engineVersion: v2
|
|
|
|
data:
|
|
|
|
HASS_ELEVATION: "{{ .hass_elevation }}"
|
|
|
|
HASS_LATITUDE: "{{ .hass_latitude }}"
|
|
|
|
HASS_LONGITUDE: "{{ .hass_longitude }}"
|
|
|
|
dataFrom:
|
|
|
|
- extract:
|
|
|
|
key: home-assistant
|
|
|
|
rewrite:
|
|
|
|
- regexp:
|
|
|
|
source: "(.*)"
|
2024-05-28 08:55:38 -05:00
|
|
|
target: "hass_$1"
|