Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
317 changes: 274 additions & 43 deletions Cargo.lock

Large diffs are not rendered by default.

1,356 changes: 1,151 additions & 205 deletions Cargo.nix

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["rust/crd", "rust/operator-binary"]
members = ["rust/operator-binary"]
resolver = "2"

[workspace.package]
Expand All @@ -24,6 +24,7 @@ serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.8"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.85.0" }
stackable-versioned = { git = "https://github.com/stackabletech/operator-rs.git", features = ["k8s"], tag = "stackable-versioned-0.5.0" }
strum = { version = "0.26", features = ["derive"] }
tokio = { version = "1.40", features = ["full"] }
tracing = "0.1"
Expand Down
3 changes: 3 additions & 0 deletions crate-hashes.json

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

23 changes: 0 additions & 23 deletions rust/crd/Cargo.toml

This file was deleted.

137 changes: 0 additions & 137 deletions rust/crd/src/druidconnection.rs

This file was deleted.

7 changes: 5 additions & 2 deletions rust/operator-binary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,27 @@ repository.workspace = true
publish = false

[dependencies]
stackable-superset-crd = { path = "../crd" }

anyhow.workspace = true
clap.workspace = true
const_format.workspace = true
fnv.workspace = true
futures.workspace = true
indoc.workspace = true
serde.workspace = true
serde_json.workspace = true
snafu.workspace = true
stackable-operator.workspace = true
stackable-versioned.workspace = true
product-config.workspace = true
strum.workspace = true
tokio.workspace = true
tracing.workspace = true

[dev-dependencies]
indoc.workspace = true
rstest.workspace = true
serde_yaml.workspace = true
tokio.workspace = true

[build-dependencies]
built.workspace = true
5 changes: 3 additions & 2 deletions rust/operator-binary/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use std::collections::BTreeMap;
use indoc::formatdoc;
use snafu::{ResultExt, Snafu};
use stackable_operator::commons::authentication::{ldap, oidc};
use stackable_superset_crd::{

use crate::crd::{
authentication::{
FlaskRolesSyncMoment, SupersetAuthenticationClassResolved,
v1alpha1::FlaskRolesSyncMoment, SupersetAuthenticationClassResolved,
SupersetClientAuthenticationDetailsResolved, DEFAULT_OIDC_PROVIDER,
},
SupersetConfigOptions,
Expand Down
3 changes: 2 additions & 1 deletion rust/operator-binary/src/controller_commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use stackable_operator::{
},
},
};
use stackable_superset_crd::MAX_LOG_FILES_SIZE;

use crate::crd::MAX_LOG_FILES_SIZE;

pub const CONFIG_VOLUME_NAME: &str = "config";
pub const LOG_CONFIG_VOLUME_NAME: &str = "log-config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use stackable_operator::{
k8s_openapi::api::core::v1::PodAntiAffinity,
};

use crate::{SupersetRole, APP_NAME};
use crate::crd::{SupersetRole, APP_NAME};

pub fn get_affinity(cluster_name: &str, role: &SupersetRole) -> StackableAffinityFragment {
StackableAffinityFragment {
Expand Down Expand Up @@ -32,7 +32,7 @@ mod tests {
};

use super::*;
use crate::SupersetCluster;
use crate::crd::v1alpha1::SupersetCluster;

#[test]
fn test_affinity_defaults() {
Expand Down
Loading
Loading