git.iko.soy/typeable/octopod
on master help sign in
fix bug with empty value key not being shown
commit12bad3752205cc164cd19f42719408449f1d0641 authorAleksei Sizov <a.sizov@typeable.io> dateWed 29 Sep 2021, 15:31 (5 years ago) parentb0a57ad
2 files changed+3−3
helm-control-scripts/src/app_keys.rs+1−1 helm-control-scripts/src/lib.rs+2−2
helm-control-scripts/src/app_keys.rs+1−1
@@ -21,7 +21,7 @@ fn main() {
2121 info!("Generated Helm args: {:?}", &helm_values.args());
2222 match helm_values.run_stdout() {
2323 Ok(status) => {
24− print!("{}", print_keys(helm_values_as_keys(status)));
24+ print!("{}", print_keys(helm_values_as_keys(status)));
2525 }
2626 Err(status) => {
2727 error!("Error during helm execution");
helm-control-scripts/src/lib.rs+2−2
@@ -9,7 +9,7 @@ pub mod lib {
99 pub use serde::{Serialize, Deserialize};
1010 pub use serde_json::json;
1111 pub use std::error;
12− pub use yaml_rust::{YamlLoader, YamlEmitter};
12+ pub use yaml_rust::{YamlLoader, YamlEmitter, Yaml};
1313 pub use k8s_openapi::api::{
1414 apps::v1::{Deployment, StatefulSet},
1515 networking::v1::Ingress,
@@ -759,7 +759,7 @@ pub mod lib {
759759 }
760760 }
761761 },
762− None => continue
762+ None => keys.push(format!("{}", doc.0.as_str().unwrap())),
763763 }
764764 }
765765 if keys.is_empty() {