Unify backend resources and role bindings in clusters

This commit is contained in:
2026-11-30 18:24:24 +08:00
parent ac62c8a655
commit 9869a9966c
18 changed files with 469 additions and 227 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ pub struct ObjectStorage {
}
impl ObjectStorage {
pub(crate) fn validate(&self) -> Result<(), ConfigError> {
pub(crate) fn resolve(&self) -> Result<Self, ConfigError> {
if self.bucket.trim().is_empty() || self.region.trim().is_empty() {
return Err(ConfigError::ObjectStorage);
}
@@ -29,6 +29,6 @@ impl ObjectStorage {
return Err(ConfigError::ObjectStorage);
}
}
Ok(())
Ok(self.clone())
}
}