Skip to content
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

k8s support for static env var config #343

Merged
merged 5 commits into from
Oct 11, 2021

Conversation

linkous8
Copy link
Contributor

@linkous8 linkous8 commented Oct 5, 2021

No description provided.

@linear
Copy link

linear bot commented Oct 5, 2021

ENG-439 K8s connector support for configuration of static environment variable injection into tuning pod

To support @daniel's AppD efforts, the need has been identified to set an environment variable in the tuning pod so that it can be differentiated from the main app pods in the AppD metrics.

Given the value of this environment variable does not need to change once applied, this is being implemented as a configuration option for the sake of expediency and will not be exposed for adjustment to the backend/optimizer

mode
- Check env var configuration during DeploymentOptimization.create and
raise NotImplementedError if present
- Expand test coverage for tuning pod creation
- Add static_environment_variables to tuning pod creation tests and
validations
- Update opsani_dev_test TestConfig.test_generate with
static_environment_variables config key
- Add opsani_dev_test TestConfig.test_genrate_kubernetes_config
including static_environment_variables input and validation
@linkous8 linkous8 marked this pull request as ready for review October 5, 2021 20:07
@DanielHHowell
Copy link
Contributor

Confirming this worked on live tests with the opsani_dev connector and directly in the kubernetes connector. Good to go after merge conflict

- Update static_environment_variables logic to filter out existing
environment variables with same name(s) as configured variables
- Expand integration test coverage to verify existing environment
variables are overriden by static_environment_variables
@linkous8 linkous8 merged commit 53078f3 into main Oct 11, 2021
@linkous8 linkous8 deleted the fred/eng-439-k8s-connector-support-for-configuration branch October 11, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants