validate checks the DbConfig for any invalid or unsupported values and return a http error. If validateReplications is true, return an error if any replications are not valid. Otherwise issue a warning.
(ctx context.Context, validateOIDCConfig, validateReplications bool)
| 749 | |
| 750 | // validate checks the DbConfig for any invalid or unsupported values and return a http error. If validateReplications is true, return an error if any replications are not valid. Otherwise issue a warning. |
| 751 | func (dbConfig *DbConfig) validate(ctx context.Context, validateOIDCConfig, validateReplications bool) error { |
| 752 | return dbConfig.validateVersion(ctx, base.IsEnterpriseEdition(), validateOIDCConfig, validateReplications) |
| 753 | } |
| 754 | |
| 755 | func (dbConfig *DbConfig) validateVersion(ctx context.Context, isEnterpriseEdition, validateOIDCConfig, validateReplications bool) error { |
| 756 |