Default cluster properties are not being applied on operator namespace
Summary
If a stackgres cluster with the minimal configuration settings is created on the stackgres namespace, it fails because some configuration properties are missing
Environment
-
StackGres version: 0.8 alpha4
-
Kubernetes version (use
kubectl version
): 1.12.10 - 1.17.2 -
Cloud provider or hardware configuration:kind amd64
Steps to reproduce
- Create a cluster with the following yaml:
apiVersion: stackgres.io/v1alpha1
kind: StackGresCluster
metadata:
name: stackgres-cluster
spec:
instances: 1
pgVersion: '12.1'
volumeSize: '5Gi'
Relevant logs and/or screenshots
Kubectl returns the following error:
Error from server: error when creating "test.yaml": admission webhook "sgcluster.stackgres-operator.default" denied the request: resource profile must not be null, You need to associate a Postgres configuration to this cluster
Edited by Matteo Melli