[Backport] Cluster creation in UI send an empty string as database name for initial data script entries
Summary
Cluster creation in UI send an empty string as database name for initial data script entries is database name is not specified.
Current Behaviour
The cluster is created but pods does not start and an error appear in the sgcluster's events:
kubectl get event -n <cluster namespace>
See also # since validation should not allow an empty database name
Steps to reproduce
- Create a cluster with an initial data script entry with just a script with value
SELECT 1
Expected Behaviour
The cluster's pods start without errors
Possible Solution
If no database is specified database
field must be suppressed.
Environment
- StackGres version:
0.9.5
- Kubernetes version: ?
- Cloud provider or hardware configuration: ?
Relevant logs and/or screenshots
Edited by Luis Garcia