Skip to content

Commit b283100

Browse files
authored
feat: onboard cube (#757)
* fix/fix-dagster * fix: fix pr comment * feat: add cube (api + worker) * WIP: add cubestore * feat(cubestore): add gcp backend * feat: add default demo database postgrs * feat: enable probes * fix: fix images + probes * fix: fix cbue chart version * fix: fix pr comment
1 parent eb67d20 commit b283100

33 files changed

+648
-0
lines changed

cube/Pluralfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REPO cube
2+
ATTRIBUTES Plural repository.yaml
3+
4+
TF terraform/*
5+
HELM helm/*
6+
RECIPE plural/recipes/*

cube/helm/cube/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

cube/helm/cube/Chart.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: cube
3+
repository: https://gadsme.github.io/charts
4+
version: 2.0.1
5+
- name: cubestore
6+
repository: https://gadsme.github.io/charts
7+
version: 0.9.2
8+
digest: sha256:6776e6daf6dc72ce0789a7291ce9e2f5f1952baabe3b9a83b2434cc5b59a1ff5
9+
generated: "2023-07-01T02:50:11.674402+02:00"

cube/helm/cube/Chart.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v2
2+
name: cube
3+
description: helm chart for cube
4+
type: application
5+
version: 0.1.8
6+
appVersion: "v0.33.30"
7+
dependencies:
8+
- name: cube
9+
version: 2.0.1
10+
repository: https://gadsme.github.io/charts
11+
- name: cubestore
12+
version: 0.9.2
13+
repository: https://gadsme.github.io/charts

cube/helm/cube/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A helm chart for cube
18.2 KB
Binary file not shown.
9.84 KB
Binary file not shown.

cube/helm/cube/deps.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
application: true
5+
description: Deploys cube crafted for the target cloud
6+
spec:
7+
dependencies:
8+
- type: helm
9+
name: bootstrap
10+
repo: bootstrap
11+
version: '>= 0.5.1'
12+
- type: helm
13+
name: ingress-nginx
14+
repo: ingress-nginx
15+
version: ">= 0.1.2"
16+
- type: terraform
17+
name: aws
18+
repo: cube
19+
version: '>= 0.1.0'
20+
optional: true
21+
- type: terraform
22+
name: azure
23+
repo: cube
24+
version: '>= 0.1.0'
25+
optional: true
26+
- type: terraform
27+
name: gcp
28+
repo: cube
29+
version: '>= 0.1.0'
30+
optional: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
cubes:
2+
- name: orders
3+
sql_table: public.orders
4+
data_source: default
5+
6+
joins: []
7+
8+
dimensions:
9+
- name: id
10+
sql: id
11+
type: number
12+
primary_key: true
13+
14+
- name: status
15+
sql: status
16+
type: string
17+
18+
- name: created_at
19+
sql: created_at
20+
type: time
21+
22+
- name: completed_at
23+
sql: completed_at
24+
type: time
25+
26+
measures:
27+
- name: count
28+
type: count
29+
30+
- name: number
31+
sql: number
32+
type: sum
33+
34+
pre_aggregations:
35+
# Pre-aggregation definitions go here.
36+
# Learn more in the documentation: https://cube.dev/docs/caching/pre-aggregations/getting-started
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: cube-schema
5+
data:
6+
{{ (.Files.Glob "schemas/**.yaml").AsConfig | indent 2 }}

0 commit comments

Comments
 (0)