Unify backend resources and role bindings in clusters
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user