Skip to content

Commit 6212a6c

Browse files
committed
fix(stack/data-lakehouse-iceberg-trino-spark): Deploy TrinoCatalogs before TrinoCluster
1 parent 13aca7f commit 6212a6c

1 file changed

Lines changed: 50 additions & 48 deletions

File tree

  • stacks/data-lakehouse-iceberg-trino-spark

stacks/data-lakehouse-iceberg-trino-spark/trino.yaml

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
# For now, on K8s 1.35, TrinoCatalogs need to be deployed before the TrinoCluster
2+
# See: https://github.com/stackabletech/trino-operator/issues/854
3+
---
4+
apiVersion: trino.stackable.tech/v1alpha1
5+
kind: TrinoCatalog
6+
metadata:
7+
name: staging
8+
labels:
9+
trino: trino
10+
spec:
11+
connector:
12+
hive:
13+
metastore:
14+
configMap: hive
15+
s3:
16+
reference: minio
17+
---
18+
apiVersion: trino.stackable.tech/v1alpha1
19+
kind: TrinoCatalog
20+
metadata:
21+
name: lakehouse
22+
labels:
23+
trino: trino
24+
spec:
25+
connector:
26+
iceberg:
27+
metastore:
28+
configMap: hive-iceberg
29+
s3:
30+
reference: minio
31+
---
32+
apiVersion: trino.stackable.tech/v1alpha1
33+
kind: TrinoCatalog
34+
metadata:
35+
name: tpcds
36+
labels:
37+
trino: trino
38+
spec:
39+
connector:
40+
tpcds: {}
41+
---
42+
apiVersion: trino.stackable.tech/v1alpha1
43+
kind: TrinoCatalog
44+
metadata:
45+
name: tpch
46+
labels:
47+
trino: trino
48+
spec:
49+
connector:
50+
tpch: {}
151
---
252
apiVersion: trino.stackable.tech/v1alpha1
353
kind: TrinoCluster
@@ -62,54 +112,6 @@ type: kubernetes.io/opaque
62112
stringData:
63113
admin: "{{ trinoAdminPassword }}"
64114
---
65-
apiVersion: trino.stackable.tech/v1alpha1
66-
kind: TrinoCatalog
67-
metadata:
68-
name: staging
69-
labels:
70-
trino: trino
71-
spec:
72-
connector:
73-
hive:
74-
metastore:
75-
configMap: hive
76-
s3:
77-
reference: minio
78-
---
79-
apiVersion: trino.stackable.tech/v1alpha1
80-
kind: TrinoCatalog
81-
metadata:
82-
name: lakehouse
83-
labels:
84-
trino: trino
85-
spec:
86-
connector:
87-
iceberg:
88-
metastore:
89-
configMap: hive-iceberg
90-
s3:
91-
reference: minio
92-
---
93-
apiVersion: trino.stackable.tech/v1alpha1
94-
kind: TrinoCatalog
95-
metadata:
96-
name: tpcds
97-
labels:
98-
trino: trino
99-
spec:
100-
connector:
101-
tpcds: {}
102-
---
103-
apiVersion: trino.stackable.tech/v1alpha1
104-
kind: TrinoCatalog
105-
metadata:
106-
name: tpch
107-
labels:
108-
trino: trino
109-
spec:
110-
connector:
111-
tpch: {}
112-
---
113115
apiVersion: opa.stackable.tech/v1alpha1
114116
kind: OpaCluster
115117
metadata:

0 commit comments

Comments
 (0)