Skip to content

Commit 74c53ee

Browse files
committed
fix(stack/trino-iceberg): Deploy TrinoCatalogs before TrinoCluster
1 parent 1becf80 commit 74c53ee

1 file changed

Lines changed: 36 additions & 34 deletions

File tree

stacks/trino-iceberg/trino.yaml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
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: lakehouse
8+
labels:
9+
trino: trino
10+
spec:
11+
connector:
12+
iceberg:
13+
metastore:
14+
configMap: hive-iceberg
15+
s3:
16+
reference: minio
17+
---
18+
apiVersion: trino.stackable.tech/v1alpha1
19+
kind: TrinoCatalog
20+
metadata:
21+
name: tpcds
22+
labels:
23+
trino: trino
24+
spec:
25+
connector:
26+
tpcds: {}
27+
---
28+
apiVersion: trino.stackable.tech/v1alpha1
29+
kind: TrinoCatalog
30+
metadata:
31+
name: tpch
32+
labels:
33+
trino: trino
34+
spec:
35+
connector:
36+
tpch: {}
137
---
238
apiVersion: trino.stackable.tech/v1alpha1
339
kind: TrinoCluster
@@ -61,40 +97,6 @@ type: kubernetes.io/opaque
6197
stringData:
6298
admin: "{{ trinoAdminPassword }}"
6399
---
64-
apiVersion: trino.stackable.tech/v1alpha1
65-
kind: TrinoCatalog
66-
metadata:
67-
name: lakehouse
68-
labels:
69-
trino: trino
70-
spec:
71-
connector:
72-
iceberg:
73-
metastore:
74-
configMap: hive-iceberg
75-
s3:
76-
reference: minio
77-
---
78-
apiVersion: trino.stackable.tech/v1alpha1
79-
kind: TrinoCatalog
80-
metadata:
81-
name: tpcds
82-
labels:
83-
trino: trino
84-
spec:
85-
connector:
86-
tpcds: {}
87-
---
88-
apiVersion: trino.stackable.tech/v1alpha1
89-
kind: TrinoCatalog
90-
metadata:
91-
name: tpch
92-
labels:
93-
trino: trino
94-
spec:
95-
connector:
96-
tpch: {}
97-
---
98100
apiVersion: opa.stackable.tech/v1alpha1
99101
kind: OpaCluster
100102
metadata:

0 commit comments

Comments
 (0)