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

feat: add missing validations in the database #389

Merged

Conversation

szymonnogiec
Copy link
Contributor

Resolves #387

  • add supported versions of mariadb on both azure and aws;
  • check username & password;
  • check if dbsize is not set to unknown;
  • some minor validation structure refactor (use Validator interface);

@szymonnogiec
Copy link
Contributor Author

Note: Couldn't really find any other strict restrictions for username&password for all of the databases; these datafields can be anything that is utf-8 encoded really, only restricted in maximum length;

Copy link
Member

@goncalo-rodrigues goncalo-rodrigues left a comment

Choose a reason for hiding this comment

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

Perfect, thanks for investigating the restrictions and the comments with the SO answers are really helpful!

validate/validate.go Outdated Show resolved Hide resolved
validate/validate.go Outdated Show resolved Hide resolved
Resolves multycloud#387

- add supported versions of mariadb on both azure and aws;
- check username & password;
- check if dbsize is not set to unknown;
- some minor validation structure refactor (use Validator interface);
@szymonnogiec szymonnogiec force-pushed the feat-db-missing-validations branch from ff6d733 to 9993e35 Compare August 2, 2022 17:47
@goncalo-rodrigues goncalo-rodrigues self-requested a review August 2, 2022 18:08
@goncalo-rodrigues goncalo-rodrigues enabled auto-merge (squash) August 2, 2022 18:09
@goncalo-rodrigues goncalo-rodrigues merged commit 9d615ed into multycloud:main Aug 2, 2022
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.

Validate database resource
2 participants