-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: env-overrides with tests #550
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
rust/crd/src/lib.rs
Outdated
@@ -655,4 +671,134 @@ impl HbaseCluster { | |||
tracing::debug!("Merged config: {:?}", conf_rolegroup); | |||
fragment::validate(conf_rolegroup).context(FragmentValidationFailureSnafu) | |||
} | |||
|
|||
pub fn merged_env(&self, rolegroup_config: Option<&BTreeMap<String, String>>) -> Vec<EnvVar> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about renaming it and making it a stand alone function ? For example:
pub fn make_env (env_map: Option<&BTreeMap<String, String>>) -> Vec<EnvVar>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Changed here: 0545c9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have also renamed it to make_env
or something else more general since it knows nothing about merged configuration.
why is the "definition of done" duplicated ? :) |
Description
fix: implemented env-var merge and added tests
Tests:
AKS: 🟢
OKD: 🟢 (except Omid test, but a separate issue has been opened for that)
Definition of Done Checklist
Author
Reviewer
Acceptance