Skip to content

Commit 7a8802d

Browse files
authored
feat: add secrets
1 parent a0a3572 commit 7a8802d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.transpire.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
def objects():
1111
dep = Deployment(
12-
name="ocfdocs",
12+
name=name,
1313
image=get_image_tag("ocfdocs"),
1414
ports=[15000],
1515
)
1616

1717
svc = Service(
18-
name="ocfdocs",
18+
name=name,
1919
selector=dep.get_selector(),
2020
port_on_pod=15000,
2121
port_on_svc=80,
@@ -29,10 +29,17 @@ def objects():
2929
)
3030

3131
# TODO: Secrets
32+
sec = Secret(
33+
name=name,
34+
string_data={
35+
"OUTLINE_API_KEY": "",
36+
},
37+
)
3238

3339
yield dep.build()
3440
yield svc.build()
3541
yield ing.build()
42+
yield sec.build()
3643

3744

3845
def images():

0 commit comments

Comments
 (0)