Empty database name must be forbidden in initial data script entries when creating sgcluster
Summary
Empty database name must be forbidden in initial data script entries when creating an sgcluster
Current Behaviour
The sgcluster is created without error. An event for that same sgcluster is created with an error about wrong ConfigMap name ending with a -
character.
Steps to reproduce
- Create a cluster with an initial data script entry using a an empty string as database name
Expected Behaviour
A validation error should be returned by Kubernetes API
Possible Solution
Validate that database name should not be empty
Environment
- StackGres version: 1.0.0-alpha2
- Kubernetes version: ?
- Cloud provider or hardware configuration: ?