Cluster default configurations must not be required
Summary
Cluster configurations properties are marked as required in the cluster CRD schema. For this properties it should be used the default configurations
Environment
-
StackGres version: 0.8 alpha2
-
Kubernetes version (use
kubectl version
): 1.12.10 -
Cloud provider or hardware configuration: kind
Steps to reproduce
Create a namespace named "demo"
kubectl create namespace demo
Create a cluster with the following yaml
apiVersion: stackgres.io/v1alpha1
kind: StackGresCluster
metadata:
name: stackgres
namespace: demo
spec:
instances: 2
pgVersion: "11.6"
volumeSize: 5Gi
Relevant logs and/or screenshots
The StackGresCluster "stackgres" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"stackgres.io/v1alpha1", "kind":"StackGresCluster", "metadata":map[string]interface {}{"namespace":"demo", "generation":1, "uid":"38e6ed1d-3c42-11ea-92bf-0242ac110002", "annotations":map[string]interface {}{"kubectl.kubernetes.io/last-applied-configuration":"{"apiVersion":"stackgres.io/v1alpha1","kind":"StackGresCluster","metadata":{"annotations":{},"name":"stackgres","namespace":"demo"},"spec":{"instances":2,"pgVersion":"11.6","volumeSize":"5Gi"}}\n", "stackgres.io/operatorVersion":"0.8-SNAPSHOT"}, "creationTimestamp":"2020-01-21T11:36:10Z", "name":"stackgres"}, "spec":map[string]interface {}{"instances":2, "pgConfig":"defaultpgconfig", "pgVersion":"11.6", "resourceProfile":"defaultprofile", "volumeSize":"5Gi"}}: validation failure list: spec.connectionPoolingConfig in body is required spec.sidecars in body is required