Roger Parkinson
unread,Aug 27, 2021, 9:27:06 AM8/27/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Postgres Operator, jonath...@crunchydata.com, Postgres Operator, Roger Parkinson
Thanks for the quick reply.
I have now cloned the postgres-operator-examples/kustomize/postgres into postgres-operator-examples/kustomize/bonanza
And I've added the following to my postgres-operator-examples/kustomize/bonanza/postgres.yaml (otherwise this file is the same as the original)
patroni:
postgresql:
pg_hba:
- "host all all all md5"
(I'm not worrying about getting the right CIDR in there yet, so 'all' is good enough)
When I run
microk8s kubectl apply -k kustomize/bonanza
I get ValidationError(PostgresCluster.spec.patroni): unknown field "postgresql" in com.crunchydata.postgres-operator.v1beta1.PostgresCluster.spec.patroni
which looks like I am not running the latest version, ie 5.0.1
So I shut everything down and cleared out microk8s and then did a git pull of postgres-operator-examples. Some changes came down and I re-cloned the postgres.yaml file and re-edited in my changes.
But I get the same error.
I wondered if I am running 5.0.1 after all but a search of postgres-operator-examples shows two references to 5.0.1 so I guess I am.
What did I do wrong?