We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When I start velaux with command --datastore-type=mysql, the velaux pod start failed with message Error: not support datastore type mysql.
--datastore-type=mysql
Error: not support datastore type mysql
To Reproduce
Expected behavior
The velaux support mysql as datastore, as the code https://github.com/kubevela/velaux/blob/main/pkg/server/server.go#L146
switch s.cfg.Datastore.Type { case "mongodb": ds, err = mongodb.New(context.Background(), s.cfg.Datastore) if err != nil { return fmt.Errorf("create mongodb datastore instance failure %w", err) } case "kubeapi": ds, err = kubeapi.New(context.Background(), s.cfg.Datastore, kubeClient) if err != nil { return fmt.Errorf("create kubeapi datastore instance failure %w", err) } case "mysql": ds, err = mysql.New(context.Background(), s.cfg.Datastore) if err != nil { return fmt.Errorf("create mysql datastore instance failure %w", err) }
Screenshots
KubeVela Version
latest version.
Additional context
It's caused by config validation not include mysql. https://github.com/kubevela/velaux/blob/v1.9.3/pkg/server/config/config.go#L110
The text was updated successfully, but these errors were encountered:
need optimize the code, when new database type is involved, it should work for all validations.
Sorry, something went wrong.
Hi, is there anything I can do to help? I'm available and would be happy to assist.
No branches or pull requests
Describe the bug
When I start velaux with command
--datastore-type=mysql
, the velaux pod start failed with messageError: not support datastore type mysql
.To Reproduce
Expected behavior
The velaux support mysql as datastore, as the code https://github.com/kubevela/velaux/blob/main/pkg/server/server.go#L146
Screenshots
KubeVela Version
latest version.
Additional context
It's caused by config validation not include mysql.
https://github.com/kubevela/velaux/blob/v1.9.3/pkg/server/config/config.go#L110
The text was updated successfully, but these errors were encountered: