Skip to content

Commit

Permalink
bump: operator-rs 0.52.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Oct 5, 2023
1 parent 5b4ec37 commit 8d61d94
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All notable changes to this project will be documented in this file.
### Changed

- `vector` `0.26.0` -> `0.31.0` ([#361]).
- `operator-rs` `0.44.0` -> `0.51.1` ([#360], [#376]).
- `operator-rs` `0.44.0` -> `0.52.0` ([#360], [#376]).

[#360]: https://github.com/stackabletech/hive-operator/pull/360
[#361]: https://github.com/stackabletech/hive-operator/pull/361
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.51.1" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.52.0" }
strum = { version = "0.25", features = ["derive"] }
tokio = { version = "1.29", features = ["full"] }
tracing = "0.1"
Expand Down
4 changes: 2 additions & 2 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use stackable_operator::{
kube::{runtime::reflector::ObjectRef, CustomResource, ResourceExt},
product_config_utils::{ConfigError, Configuration},
product_logging::{self, spec::Logging},
role_utils::{Role, RoleConfig, RoleGroup, RoleGroupRef},
role_utils::{GenericRoleConfig, Role, RoleGroup, RoleGroupRef},
schemars::{self, JsonSchema},
status::condition::{ClusterCondition, HasStatusCondition},
};
Expand Down Expand Up @@ -582,7 +582,7 @@ impl HiveCluster {
.cloned()
}

pub fn role_config(&self, role: &HiveRole) -> Option<&RoleConfig> {
pub fn role_config(&self, role: &HiveRole) -> Option<&GenericRoleConfig> {
match role {
HiveRole::MetaStore => self.spec.metastore.as_ref().map(|m| &m.role_config),
}
Expand Down
5 changes: 2 additions & 3 deletions rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use stackable_hive_crd::{
use stackable_operator::k8s_openapi::DeepMerge;
use stackable_operator::memory::MemoryQuantity;
use stackable_operator::product_config::writer::to_java_properties_string;
use stackable_operator::role_utils::RoleConfig;
use stackable_operator::{
builder::{
resources::ResourceRequirementsBuilder, ConfigMapBuilder, ContainerBuilder,
Expand Down Expand Up @@ -56,7 +55,7 @@ use stackable_operator::{
CustomContainerLogConfig,
},
},
role_utils::RoleGroupRef,
role_utils::{GenericRoleConfig, RoleGroupRef},
status::condition::{
compute_conditions, operations::ClusterOperationsConditionBuilder,
statefulset::StatefulSetConditionBuilder,
Expand Down Expand Up @@ -374,7 +373,7 @@ pub async fn reconcile_hive(hive: Arc<HiveCluster>, ctx: Arc<Ctx>) -> Result<Act
}

let role_config = hive.role_config(&hive_role);
if let Some(RoleConfig {
if let Some(GenericRoleConfig {
pod_disruption_budget: pdb,
}) = role_config
{
Expand Down

0 comments on commit 8d61d94

Please sign in to comment.