feat: OKD Installation now generates ignition files, copies them over, also uploads scos images
Some checks failed
Run Check Script / check (pull_request) Failing after 30s
Some checks failed
Run Check Script / check (pull_request) Failing after 30s
This commit is contained in:
@@ -29,12 +29,20 @@ impl SecretStore for LocalFileSecretStore {
|
||||
file_path.display()
|
||||
);
|
||||
|
||||
tokio::fs::read(&file_path)
|
||||
.await
|
||||
.map_err(|_| SecretStoreError::NotFound {
|
||||
namespace: ns.to_string(),
|
||||
key: key.to_string(),
|
||||
})
|
||||
let content =
|
||||
tokio::fs::read(&file_path)
|
||||
.await
|
||||
.map_err(|_| SecretStoreError::NotFound {
|
||||
namespace: ns.to_string(),
|
||||
key: key.to_string(),
|
||||
})?;
|
||||
info!(
|
||||
"Sum of all vec get {ns} {key} {:?}",
|
||||
content
|
||||
.iter()
|
||||
.fold(0, |acc: u64, val: &u8| { acc + *val as u64 })
|
||||
);
|
||||
Ok(content)
|
||||
}
|
||||
|
||||
async fn set_raw(&self, ns: &str, key: &str, val: &[u8]) -> Result<(), SecretStoreError> {
|
||||
@@ -56,6 +64,12 @@ impl SecretStore for LocalFileSecretStore {
|
||||
.map_err(|e| SecretStoreError::Store(Box::new(e)))?;
|
||||
}
|
||||
|
||||
info!(
|
||||
"Sum of all vec set {ns} {key} {:?}",
|
||||
val.iter()
|
||||
.fold(0, |acc: u64, val: &u8| { acc + *val as u64 })
|
||||
);
|
||||
|
||||
tokio::fs::write(&file_path, val)
|
||||
.await
|
||||
.map_err(|e| SecretStoreError::Store(Box::new(e)))
|
||||
|
||||
Reference in New Issue
Block a user