--- # yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: pterodactyl spec: secretStoreRef: kind: ClusterSecretStore name: onepassword-connect target: name: pterodactyl-secret template: engineVersion: v2 data: APP_SERVICE_AUTHOR: "{{ .PTERODACTYL_APP_EMAIL }}" APP_URL: "https://pt.hsn.dev" DB_DATABASE: "pterodactyl" DB_HOST: "mariadb.database.svc.cluster.local" DB_PASSWORD: "{{ .PTERODACTYL_MARIADB_PANEL_PASSWORD }}" DB_USERNAME: "pterodactyl" REDIS_HOST: "dragonfly.database.svc.cluster.local" dataFrom: - extract: key: pterodactyl rewrite: - regexp: source: "(.*)" target: "PTERODACTYL_$1"