Please, answer some short questions which should help us to understand your problem / question better?
Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.5.0 - cloned to private registry and installed with helm chart
Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K8s
Are you running Postgres Operator in production? not yet
"error": "postgresql.acid.zalan.do \"***-sample-db\" is invalid: [spec.clone.cluster: Required value, spec.tls: Invalid va
lue: \"null\": spec.tls in body must be of type object: \"null\", spec.postgresql.parameters: Invalid value: \"null\": spec.postgresql.parameters in body must be of type object: \"null\", spec.standby: Invalid value: \"null\": spec.standby in body must be of type object: \"null\", spec.patroni.pg_hba: Invalid value: \"null\": spec.patroni.pg_hba in body m
ust be of type array: \"null\", spec.patroni.initdb: Invalid value: \"null\": spec.patroni.initdb in body must be of type object: \"null\", spec.serviceAnnotations: Invalid value: \"null\": spec.serviceAnnotations in body must be of type object: \"null\", spec.podAnnotations: Invalid value: \"null\": spec.podAnnotations in body must be of type object: \"n
ull\"]"}
...What can be created as a resource in k8s, but the object is misconfigured like the following snippet, because I have to fill in all possible additional fields.
Please, answer some short questions which should help us to understand your problem / question better?
Can someone explain to me how the minimal-postgres-manifest.yaml https://github.com/zalando/postgres-operator/blob/master/manifests/minimal-postgres-manifest.yaml works at all, when at the same time parameters like "clone" are actually required in the CRD: https://github.com/zalando/postgres-operator/blob/master/manifests/postgresql.crd.yaml#L110
In the following, a little more profoundly my concrete problem, but think that this is the essential question.
I am currently writing an operator that manages a postgresqls.acid.zalan.do resource (and does lots of other stuff.), using the CreateOrUpdate function https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/controller/controllerutil/controllerutil.go#L197
However, a
k8serrors.isInvalid(err)==true
(https://github.com/kubernetes/apimachinery/blob/master/pkg/api/errors/errors.go#L498) forced me to configure additional parameters when using "github.com/zalando/postgres-operator/pkg/apis/acid.zalan.do/v1" as a dependency...What can be created as a resource in k8s, but the object is misconfigured like the following snippet, because I have to fill in all possible additional fields.
I tried https://github.com/kubernetes/apimachinery/blob/master/pkg/runtime/scheme.go#L346 but that doesn't work either.