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

Override provider from the db YAML #81

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Override provider from the db YAML #81

merged 1 commit into from
Mar 23, 2021

Conversation

sorenmat
Copy link
Owner

Allows us to override the provider in the database YAML file.
This is intended to phase out the include and exclude namespace option, as
that could give a strange binding between the operator and the services using it

@sorenmat sorenmat force-pushed the provider-fix branch 5 times, most recently from b3c9358 to 4818c84 Compare March 23, 2021 07:48
Allows us to override the provider in the database YAML file.
This is intended to phase out the include and exclude namespace option, as
that could give a strange binding between the operator and the services using it
Copy link
Contributor

@blacksails blacksails left a comment

Choose a reason for hiding this comment

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

Minor comment overall LGTM

Comment on lines +173 to +177
provider := dbprovider
if db.Spec.Provider != "" {
provider = db.Spec.Provider
}
switch provider {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
provider := dbprovider
if db.Spec.Provider != "" {
provider = db.Spec.Provider
}
switch provider {
if db.Spec.Provider != "" {
dbprovider = db.Spec.Provider
}
switch dbprovider {

@sorenmat sorenmat merged commit f76ba00 into master Mar 23, 2021
@sorenmat sorenmat deleted the provider-fix branch March 23, 2021 09:02
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