Skip to content

Commit 6584810

Browse files
committed
Add DbtProject manifests for multi-environment GitOps
1 parent ea33d7c commit 6584810

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: orchestration.scalecraft.io/v1alpha1
2+
kind: DbtProject
3+
metadata:
4+
name: analytics-demo
5+
namespace: default
6+
spec:
7+
git:
8+
repository: https://github.com/scalecraft-dev/dagctl-dbt-demo.git
9+
ref: main
10+
path: /
11+
12+
# Run every 5 minutes (6-field cron: seconds, minutes, hours, day, month, weekday)
13+
schedule: "0 */5 * * * *"
14+
15+
image: scalecraft/dagctl-dbt-demo:latest
16+
17+
profilesConfigMap: dbt-profiles
18+
19+
commands:
20+
- run
21+
22+
env:
23+
- name: DBT_PROFILES_DIR
24+
value: /root/.dbt
25+
26+
resources:
27+
requests:
28+
memory: "256Mi"
29+
cpu: "250m"
30+
limits:
31+
memory: "512Mi"
32+
cpu: "500m"
33+
34+
successfulJobsHistoryLimit: 3
35+
failedJobsHistoryLimit: 1
36+
37+
suspend: false
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: orchestration.scalecraft.io/v1alpha1
2+
kind: DbtProject
3+
metadata:
4+
name: analytics-demo
5+
namespace: default
6+
spec:
7+
git:
8+
repository: https://github.com/scalecraft-dev/dagctl-dbt-demo.git
9+
ref: main
10+
11+
schedule: "0 0 */6 * * *" # Every 6 hours for production
12+
13+
image: scalecraft/dagctl-dbt-demo:latest
14+
15+
profilesConfigMap: dbt-profiles
16+
17+
commands:
18+
- run
19+
- --target
20+
- prod
21+
22+
resources:
23+
requests:
24+
memory: "1Gi"
25+
cpu: "500m"
26+
limits:
27+
memory: "2Gi"
28+
cpu: "1000m"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: orchestration.scalecraft.io/v1alpha1
2+
kind: DbtProject
3+
metadata:
4+
name: analytics-demo
5+
namespace: default
6+
spec:
7+
git:
8+
repository: https://github.com/scalecraft-dev/dagctl-dbt-demo.git
9+
ref: main
10+
11+
schedule: "0 0 */4 * * *" # Every 4 hours for staging
12+
13+
image: scalecraft/dagctl-dbt-demo:latest
14+
15+
profilesConfigMap: dbt-profiles
16+
17+
commands:
18+
- run
19+
- --target
20+
- dev
21+
22+
resources:
23+
requests:
24+
memory: "512Mi"
25+
cpu: "250m"
26+
limits:
27+
memory: "1Gi"
28+
cpu: "500m"

0 commit comments

Comments
 (0)