Skip to content

Commit 65c7ca9

Browse files
committed
deployment improvements
1 parent 9fc4b2a commit 65c7ca9

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

k8s/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ spec:
1919
- name: NOTION_TOKEN
2020
valueFrom:
2121
secretKeyRef:
22-
name: sln-bookings-notion-token
22+
name: sln-bookings
2323
key: NOTION_TOKEN
24-
- name: NOTION_DBID
24+
- name: NOTION_DATABASE_ID
2525
valueFrom:
2626
secretKeyRef:
27-
name: sln-bookings-notion-database
27+
name: sln-bookings
2828
key: NOTION_DATABASE_ID
2929
resources:
3030
limits:

k8s/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
- sln-bookings.nova-hub.app
1414
secretName: sln-bookings-tls
1515
rules:
16-
- host: changelog.nova-hub.app
16+
- host: sln-bookings.nova-hub.app
1717
http:
1818
paths:
1919
- pathType: Prefix

k8s/secret.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v1
22
kind: Secret
33
metadata:
4-
name: sln-bookings-notion-token
4+
name: sln-bookings
55
namespace: default
66
data:
7-
NOTION_DBID: MTNl=
8-
NOTION_TOKEN: c2VjcmV0=
7+
NOTION_DATABASE_ID: MjM0NTY=
8+
NOTION_TOKEN: c2VjcmV0dG9rZW4=
99
type: Opaque

src/lib/notion.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ dotenv.config();
55
const NOTION_TOKEN = process.env.NOTION_TOKEN!;
66
const NOTION_DATABASE_ID = process.env.NOTION_DATABASE_ID!;
77

8+
console.log("🚀 ~ NOTION_TOKEN:", NOTION_TOKEN)
9+
console.log("🚀 ~ NOTION_DATABASE_ID:", NOTION_DATABASE_ID)
10+
811
const notion = new Client({
912
auth: NOTION_TOKEN
1013
});

0 commit comments

Comments
 (0)