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

[v2] Inabox Environment Setup #901

Closed
wants to merge 1 commit into from

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Sets up v2 components in local inabox environment.

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim force-pushed the v2-inabox-setup branch 2 times, most recently from ae84dd2 to e2bd06d Compare November 15, 2024 07:00
@ian-shim
Copy link
Contributor Author

ian-shim commented Nov 15, 2024

Depends on #897 and #900

@ian-shim ian-shim marked this pull request as ready for review November 15, 2024 17:48
Comment on lines +631 to +690
func (vars ControllerVars) getEnvMap() map[string]string {
v := reflect.ValueOf(vars)
envMap := make(map[string]string)
for i := 0; i < v.NumField(); i++ {
envMap[v.Type().Field(i).Name] = v.Field(i).String()
}
return envMap
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I like that this is automated, it's different than how we are reading environment variables elsewhere. Is this a pattern that we use just for inabox, or a new pattern that you think we should adopt elsewhere as well?

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