Skip to content

Commit dc9f825

Browse files
authored
feat: Updated sample secret following review (#4811)
Updated sample secret following review Signed-off-by: Theodor Mihalache <[email protected]>
1 parent 2c5a6b5 commit dc9f825

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: postgres-secret
5+
namespace: test
6+
stringData:
7+
postgres-secret-parameters: |
8+
path: postgresql+psycopg://postgres:[email protected]:55001/feast
9+
cache_ttl_seconds: 60
10+
sqlalchemy_config_kwargs:
11+
echo: false
12+
pool_pre_ping: true
13+
postgres: |
14+
host: 127.0.0.1
15+
port: 55001
16+
database: feast
17+
db_schema: public
18+
user: postgres
19+
password: mysecretpassword
20+
---
121
apiVersion: feast.dev/v1alpha1
222
kind: FeatureStore
323
metadata:
@@ -12,31 +32,11 @@ spec:
1232
type: postgres
1333
secretRef:
1434
name: postgres-secret
15-
secretKeyName: postgres-secret-parameters # optional
1635
registry:
1736
local:
1837
persistence:
1938
store:
2039
type: sql
2140
secretRef:
2241
name: postgres-secret
23-
secretKeyName: postgres-secret-parameters # optional
24-
---
25-
apiVersion: v1
26-
kind: Secret
27-
metadata:
28-
name: postgres-secret
29-
stringData:
30-
postgres-secret-parameters: |
31-
path: postgresql+postgresql://postgres:[email protected]:55001/feast
32-
cache_ttl_seconds: 60
33-
sqlalchemy_config_kwargs:
34-
echo: false
35-
pool_pre_ping: true
36-
postgres: |
37-
host: 127.0.0.1
38-
port: 55001
39-
database: feast
40-
db_schema: public
41-
user: postgres
42-
password: mysecretpassword
42+
secretKeyName: postgres-secret-parameters # optional, will use store.type by default as the SecretKeyName if none is specified, in this case that's "sql"

0 commit comments

Comments
 (0)