Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
442 changes: 235 additions & 207 deletions Cargo.lock

Large diffs are not rendered by default.

647 changes: 371 additions & 276 deletions Cargo.nix

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clap = "4.6"
const_format = "0.2"
futures = { version = "0.3", features = ["compat"] }
indoc = "2.0"
rstest = "0.26"
rstest = "0.27"
semver = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand All @@ -28,7 +28,8 @@ snafu = "0.9"
strum = { version = "0.28", features = ["derive"] }
tokio = { version = "1.53", features = ["full"] }
tracing = "0.1"
url = "2.5"

[patch."https://github.com/stackabletech/operator-rs.git"]
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main"}
stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "feat/from_docs" }
# stackable-operator = { path = "../operator-rs/crates/stackable-operator" }
18 changes: 9 additions & 9 deletions crate-hashes.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/helm/trino-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ annotations:
displayName: TrinoCluster
description: A Trino cluster stacklet. This resource is managed by the Stackable operator for Trino.
- kind: TrinoCatalog
version: v1alpha1
version: v1alpha2
name: trinocatalogs.trino.stackable.tech
displayName: TrinoCatalog
description: The TrinoCatalog resource can be used to define catalogs in Kubernetes objects.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stringData:
accessKey: minio-access-key
secretKey: minio-secret-key
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: tpch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It works like the `/dev/null` device on Unix-like operating systems for data wri

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it will appear in Trino
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It depends on a Hive metastore being present and makes use of the same metastore

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it will appear in Trino
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/trino/pages/usage-guide/catalogs/generic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is how you can e.g. use the {trino-psql-connector}[PostgreSQL connector]:

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it appears in Trino
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Consult the {trino-google-sheets-connector}[official documentation] on how to us

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: gsheet
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/trino/pages/usage-guide/catalogs/hive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy a Hive Stacklet with the xref:hive:index.adoc[].

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive-catalog # <1>
Expand Down Expand Up @@ -143,7 +143,7 @@ To use the unmanaged Hive metastore we define a TrinoCatalog object in the same

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: clouderahive
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/trino/pages/usage-guide/catalogs/iceberg.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can deploy a Hive Metastore Stacklet with the xref:hive:index.adoc[].

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: iceberg # <1>
Expand Down
7 changes: 4 additions & 3 deletions docs/modules/trino/pages/usage-guide/catalogs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can create a catalog using the `TrinoCatalog` object as follows.

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: hive-catalog
Expand All @@ -33,7 +33,7 @@ spec:
credentials:
secretClass: minio-credentials
---
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: iceberg
Expand Down Expand Up @@ -70,7 +70,7 @@ This example illustrates how to use config overrides and config removals

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
spec:
# Add some properties
Expand Down Expand Up @@ -118,6 +118,7 @@ The Trino catalog will be called `my_postgres`:

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
name: my-postgres
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The https://trino.io/docs/current/connector/postgresql.html[PostgreSQL connector

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it will appear in Trino
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/trino/pages/usage-guide/catalogs/tpcds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is not a stored data set and is instead a virtual data set generated at que

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it will appear in Trino
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/trino/pages/usage-guide/catalogs/tpch.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is not a stored data set and is instead a virtual data set generated at que

[source,yaml]
----
apiVersion: trino.stackable.tech/v1alpha1
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
# The name of the catalog as it will appear in Trino
Expand Down
Loading
Loading