Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Use updated product-config #495

Merged
merged 1 commit into from
Nov 2, 2023
Merged
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
184 changes: 173 additions & 11 deletions Cargo.lock

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

9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[workspace]
members = [
"rust/crd", "rust/operator-binary"
]
members = ["rust/crd", "rust/operator-binary"]

[workspace.package]
version = "0.0.0-dev"
Expand All @@ -13,7 +11,7 @@ repository = "https://github.com/stackabletech/trino-operator"
[workspace.dependencies]
anyhow = "1.0"
async-trait = "0.1"
built = { version = "0.6", features = ["chrono", "git2"] }
built = { version = "0.6", features = ["chrono", "git2"] }
clap = "4.3"
futures = { version = "0.3", features = ["compat"] }
indoc = "2.0"
Expand All @@ -25,7 +23,8 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.7"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.55.0" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.56.0" }
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.6.0" }
strum = { version = "0.25", features = ["derive"] }
tokio = { version = "1.29", features = ["full"] }
tracing = "0.1"
Expand Down
5 changes: 5 additions & 0 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,23 @@ pub const GRACEFUL_SHUTDOWN_SAFETY_OVERHEAD: Duration = Duration::from_secs(30);
pub enum Error {
#[snafu(display("object has no namespace associated"))]
NoNamespace,

#[snafu(display("object has no names"))]
NoName,

#[snafu(display("unknown role {role}. Should be one of {roles:?}"))]
UnknownTrinoRole {
source: strum::ParseError,
role: String,
roles: Vec<String>,
},

#[snafu(display("the role {role} is not defined"))]
CannotRetrieveTrinoRole { role: String },

#[snafu(display("the role group {role_group} is not defined"))]
CannotRetrieveTrinoRoleGroup { role_group: String },

#[snafu(display("fragment validation failure"))]
FragmentValidationFailure { source: ValidationError },
}
Expand Down
1 change: 1 addition & 0 deletions rust/operator-binary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pin-project.workspace = true
semver.workspace = true
snafu.workspace = true
stackable-operator.workspace = true
product-config.workspace = true
strum.workspace = true
tokio.workspace = true
tracing.workspace = true
Expand Down
Loading