Skip to content

Commit 43c6468

Browse files
committed
chore: Bump stackable-operator to 0.94.0 and update other dependencies
1 parent c46ff65 commit 43c6468

10 files changed

Lines changed: 1253 additions & 1857 deletions

File tree

Cargo.lock

Lines changed: 405 additions & 563 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 799 additions & 1246 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/stackabletech/trino-operator"
1111

1212
[workspace.dependencies]
1313
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.7.0" }
14-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.93.1" }
14+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.94.0" }
1515

1616
anyhow = "1.0"
1717
async-trait = "0.1"

crate-hashes.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/helm/trino-operator/crds/crds.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
type: string
4646
extraScopes:
4747
default: []
48-
description: An optional list of extra scopes which get merged with the scopes defined in the `AuthenticationClass`.
48+
description: An optional list of extra scopes which get merged with the scopes defined in the AuthenticationClass
4949
items:
5050
type: string
5151
type: array
@@ -1199,11 +1199,6 @@ spec:
11991199
format: date-time
12001200
nullable: true
12011201
type: string
1202-
lastUpdateTime:
1203-
description: The last time this condition was updated.
1204-
format: date-time
1205-
nullable: true
1206-
type: string
12071202
message:
12081203
description: A human readable message indicating details about the transition.
12091204
nullable: true

rust/operator-binary/src/command.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,8 @@ pub fn add_cert_to_truststore(
153153
/// into a new keystore with password in a writeable empty dir
154154
///
155155
/// # Arguments
156-
/// - `source_directory` - The directory of the source keystore.
157-
/// Should usually be a secret operator volume mount.
158-
/// - `destination_directory` - The directory of the destination keystore.
159-
/// Should usually be an empty dir.
156+
/// - `source_directory`: The directory of the source keystore. Should usually be a secret operator volume mount.
157+
/// - `destination_directory`: The directory of the destination keystore. Should usually be an empty dir.
160158
fn import_keystore(source_directory: &str, destination_directory: &str) -> Vec<String> {
161159
vec![
162160
// The source directory is a secret-op mount and we do not want to write / add anything in there
@@ -177,10 +175,8 @@ fn import_keystore(source_directory: &str, destination_directory: &str) -> Vec<S
177175
/// into a new truststore with password in a writeable empty dir
178176
///
179177
/// # Arguments
180-
/// - `source_directory` - The directory of the source truststore.
181-
/// Should usually be a secret operator volume mount.
182-
/// - `destination_directory` - The directory of the destination truststore.
183-
/// Should usually be an empty dir.
178+
/// - `source_directory`: The directory of the source truststore. Should usually be a secret operator volume mount.
179+
/// - `destination_directory`: The directory of the destination truststore. Should usually be an empty dir.
184180
fn import_truststore(source_directory: &str, destination_directory: &str) -> Vec<String> {
185181
vec![
186182
// The source directory is a secret-op mount and we do not want to write / add anything in there

rust/operator-binary/src/crd/catalog/mod.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ use tpch::TpchConnector;
2626

2727
use self::delta_lake::DeltaLakeConnector;
2828

29-
#[versioned(version(name = "v1alpha1"), options(skip(from)))]
29+
#[versioned(
30+
version(name = "v1alpha1"),
31+
crates(
32+
kube_core = "stackable_operator::kube::core",
33+
kube_client = "stackable_operator::kube::client",
34+
k8s_openapi = "stackable_operator::k8s_openapi",
35+
schemars = "stackable_operator::schemars",
36+
versioned = "stackable_operator::versioned",
37+
),
38+
skip(from)
39+
)]
3040
pub mod versioned {
3141
/// The TrinoCatalog resource can be used to define catalogs in Kubernetes objects.
3242
/// Read more about it in the [Trino operator concept docs](DOCS_BASE_URL_PLACEHOLDER/trino/concepts)
3343
/// and the [Trino operator usage guide](DOCS_BASE_URL_PLACEHOLDER/trino/usage-guide/catalogs/).
3444
/// The documentation also contains a list of all the supported backends.
35-
#[versioned(k8s(
36-
group = "trino.stackable.tech",
37-
kind = "TrinoCatalog",
38-
plural = "trinocatalogs",
39-
namespaced,
40-
crates(
41-
kube_core = "stackable_operator::kube::core",
42-
k8s_openapi = "stackable_operator::k8s_openapi",
43-
schemars = "stackable_operator::schemars"
44-
)
45-
))]
45+
#[versioned(crd(group = "trino.stackable.tech", plural = "trinocatalogs", namespaced,))]
4646
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
4747
#[serde(rename_all = "camelCase")]
4848
pub struct TrinoCatalogSpec {
@@ -95,9 +95,9 @@ pub enum TrinoCatalogConnector {
9595

9696
#[cfg(test)]
9797
mod tests {
98-
use crate::crd::catalog::TrinoCatalog;
98+
use crate::crd::catalog::{TrinoCatalog, TrinoCatalogVersion};
9999
#[test]
100100
fn test_crd_generation() {
101-
TrinoCatalog::merged_crd(TrinoCatalog::V1Alpha1).unwrap();
101+
TrinoCatalog::merged_crd(TrinoCatalogVersion::V1Alpha1).unwrap();
102102
}
103103
}

rust/operator-binary/src/crd/mod.rs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,27 @@ pub enum Error {
160160
FragmentValidationFailure { source: ValidationError },
161161
}
162162

163-
#[versioned(version(name = "v1alpha1"), options(skip(from)))]
163+
#[versioned(
164+
version(name = "v1alpha1"),
165+
crates(
166+
kube_core = "stackable_operator::kube::core",
167+
kube_client = "stackable_operator::kube::client",
168+
k8s_openapi = "stackable_operator::k8s_openapi",
169+
schemars = "stackable_operator::schemars",
170+
versioned = "stackable_operator::versioned",
171+
),
172+
skip(from)
173+
)]
164174
pub mod versioned {
165175
/// A Trino cluster stacklet. This resource is managed by the Stackable operator for Trino.
166176
/// Find more information on how to use it and the resources that the operator generates in the
167177
/// [operator documentation](DOCS_BASE_URL_PLACEHOLDER/trino/).
168-
#[versioned(k8s(
178+
#[versioned(crd(
169179
group = "trino.stackable.tech",
170-
kind = "TrinoCluster",
171180
plural = "trinoclusters",
172181
shortname = "trino",
173182
status = "TrinoClusterStatus",
174183
namespaced,
175-
crates(
176-
kube_core = "stackable_operator::kube::core",
177-
k8s_openapi = "stackable_operator::k8s_openapi",
178-
schemars = "stackable_operator::schemars"
179-
)
180184
))]
181185
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
182186
#[serde(rename_all = "camelCase")]

rust/operator-binary/src/listener.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub fn build_group_listener_pvc(
6565
&ListenerReference::ListenerName(group_listener_name.to_string()),
6666
unversioned_recommended_labels,
6767
)
68-
.context(BuildListenerPersistentVolumeSnafu)?
6968
.build_pvc(LISTENER_VOLUME_NAME.to_string())
7069
.context(BuildListenerPersistentVolumeSnafu)
7170
}

rust/operator-binary/src/main.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Look into how to properly resolve `clippy::result_large_err`.
2+
// This will need changes in our and upstream error types.
3+
#![allow(clippy::result_large_err)]
14
mod authentication;
25
mod authorization;
36
mod catalog;
@@ -39,7 +42,11 @@ use stackable_operator::{
3942

4043
use crate::{
4144
controller::{FULL_CONTROLLER_NAME, OPERATOR_NAME},
42-
crd::{TrinoCluster, catalog::TrinoCatalog, v1alpha1},
45+
crd::{
46+
TrinoCluster, TrinoClusterVersion,
47+
catalog::{TrinoCatalog, TrinoCatalogVersion},
48+
v1alpha1,
49+
},
4350
};
4451

4552
mod built_info {
@@ -58,9 +65,9 @@ async fn main() -> anyhow::Result<()> {
5865
let opts = Opts::parse();
5966
match opts.cmd {
6067
Command::Crd => {
61-
TrinoCluster::merged_crd(TrinoCluster::V1Alpha1)?
68+
TrinoCluster::merged_crd(TrinoClusterVersion::V1Alpha1)?
6269
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
63-
TrinoCatalog::merged_crd(TrinoCatalog::V1Alpha1)?
70+
TrinoCatalog::merged_crd(TrinoCatalogVersion::V1Alpha1)?
6471
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
6572
}
6673
Command::Run(ProductOperatorRun {

0 commit comments

Comments
 (0)