-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add app and deployment overrides info scripts * overrides/keys scripts * add new scripts to the chart config * archive using scaling * archive check script + README * fix timings values + up contolscripts version * Get rid of kubectl calls * remove tags * remove status mode * rename tag_check to config_check * remove default values logic, optional name, additional checks at helm init * bump chart and app version * add keys sorting * ingress.host to ingress.hostname hardcode * add default override for wordpress * parametrize ingress host key * add gzip static + etag * config_check: logs to stderr + proper user notifications * fix bug with empty value key not being shown * rename app-env-override and deployment-override cli options * rename env configuration for octopod
- Loading branch information
Showing
21 changed files
with
714 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use helm_control_scripts::lib::*; | ||
|
||
fn main() { | ||
let mut log_builder = Builder::from_default_env(); | ||
log_builder.target(Target::Stderr).filter(None, LevelFilter::Info).init(); | ||
info!("Utils version {}", env!("CARGO_PKG_VERSION")); | ||
let envs = EnvVars::parse(); | ||
info!("Env variables received {:?}", &envs); | ||
let cli_opts = CliOpts::from_args(); | ||
info!("Cli options received {:?}", &cli_opts); | ||
let deployment_parameters = HelmDeploymentParameters::new(&cli_opts, &envs); | ||
helm_init(&envs, &deployment_parameters); | ||
let helm_values = HelmCmd { | ||
name: envs.helm_bin, | ||
mode: HelmMode::ShowValues, | ||
release_name: String::from(""), | ||
namespace: String::from(""), | ||
deployment_parameters: deployment_parameters, | ||
overrides: vec![], | ||
}; | ||
info!("Generated Helm args: {:?}", &helm_values.args()); | ||
match helm_values.run_stdout() { | ||
Ok(status) => { | ||
print!("{}", print_keys(helm_values_as_keys(status))); | ||
} | ||
Err(status) => { | ||
error!("Error during helm execution"); | ||
panic!("{:?}", status); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use helm_control_scripts::lib::*; | ||
|
||
fn main() { | ||
let mut log_builder = Builder::from_default_env(); | ||
log_builder.target(Target::Stderr).filter(None, LevelFilter::Info).init(); | ||
info!("Utils version {}", env!("CARGO_PKG_VERSION")); | ||
let envs = EnvVars::parse(); | ||
info!("Env variables received {:?}", &envs); | ||
let default_values: DefaultValues = serde_json::from_str(&envs.defaults).unwrap(); | ||
print!("{}", print_kv(default_values.app_overrides())); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.