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

custom conf can't overwrite the default conf #647

Closed
jianhaiqing opened this issue Jan 16, 2021 · 1 comment · Fixed by #651
Closed

custom conf can't overwrite the default conf #647

jianhaiqing opened this issue Jan 16, 2021 · 1 comment · Fixed by #651

Comments

@jianhaiqing
Copy link
Contributor

https://github.com/presslabs/mysql-operator/blob/2a95c33f1d7155306e973f2957cc8bd5fffeeeab/pkg/controller/mysqlcluster/internal/syncer/config_map.go#L100

it would nice as follows:

if cluster.GetMySQLSemVer().Major == 5 {
addKVConfigsToSection(sec, convertMapToKVConfig(mysql5xConfigs))
} else if cluster.GetMySQLSemVer().Major == 8 {
addKVConfigsToSection(sec, convertMapToKVConfig(mysql8xConfigs))
}
// common configs
addKVConfigsToSection(sec, convertMapToKVConfig(mysqlCommonConfigs), cluster.Spec.MysqlConf)
@AMecea
Copy link
Contributor

AMecea commented Jan 18, 2021

Hi @jianhaiqing, indeed this should be fixed, please open a PR.

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 a pull request may close this issue.

2 participants