ConfigMaps generated by initial data scripts have invalid names
Summary
ConfigMaps generated by initial data scripts have invalid names.
Current Behaviour
A script with a valid database name test_
generates an invalid ConfigMap name making the reconciliation cycle fail for such sgcluster.
Steps to reproduce
- Create a cluster with an initial data script which uses database
test_
Expected Behaviour
The ConfigMap generated has a valid name and the reconciliation cycle does not fail.
Possible Solution
Sanitize ConfigMap generated names for initial data scripts
Environment
- StackGres version: 1.0.0-alpha2
- Kubernetes version: ?
- Cloud provider or hardware configuration: ?