Skip to content

Commit 6911d17

Browse files
LuizMacedoCopilot
andauthored
Update k8s/secrets.yaml
Co-authored-by: Copilot <[email protected]>
1 parent 0e92299 commit 6911d17

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

k8s/secrets.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,26 @@ type: Opaque
77
stringData:
88
SA_PASSWORD: "@someThingComplicated1234"
99
CatalogConnection: "Server=sqlserver-service;Database=Microsoft.eShopOnWeb.CatalogDb;User Id=sa;Password=@someThingComplicated1234;TrustServerCertificate=true"
10-
IdentityConnection: "Server=sqlserver-service;Database=Microsoft.eShopOnWeb.Identity;User Id=sa;Password=@someThingComplicated1234;TrustServerCertificate=true"
10+
apiVersion: external-secrets.io/v1beta1
11+
kind: ExternalSecret
12+
metadata:
13+
name: eshoponweb-secrets
14+
namespace: eshoponweb
15+
spec:
16+
refreshInterval: "1h"
17+
secretStoreRef:
18+
name: eshoponweb-secret-store
19+
kind: SecretStore
20+
target:
21+
name: eshoponweb-secrets
22+
creationPolicy: Owner
23+
data:
24+
- secretKey: SA_PASSWORD
25+
remoteRef:
26+
key: eshoponweb-sa-password
27+
- secretKey: CatalogConnection
28+
remoteRef:
29+
key: eshoponweb-catalog-connection
30+
- secretKey: IdentityConnection
31+
remoteRef:
32+
key: eshoponweb-identity-connection

0 commit comments

Comments
 (0)