gbartolini / postgres-kubernetes-playground

Apache License 2.0
14 stars 7 forks source link

unknown field "spec.tablespaces" #7

Open sunnylovestiramisu opened 7 months ago

sunnylovestiramisu commented 7 months ago

Trying to run benchmark with the 03-pgbench-tbs.yaml and then

kubectl apply -f 03-pgbench-tbs.yaml
Error from server (BadRequest): error when creating "03-pgbench-tbs.yaml": Cluster in version "v1" 
cannot be handled as a Cluster: strict decoding error: unknown field "spec.tablespaces"

According to the latest documentation about tablespaces, I also tried the following:

  tablespaces:
    - name: data
      size: 75Gi
      storageClass: standard-rwo
    - name: idx
      size: 50Gi
      storageClass: standard-rwo

But still getting the exact same error about "spec.tablespaces".

sunnylovestiramisu commented 7 months ago

The issue is that in the generated script deploy-cnpg.sh it is installing https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.21/releases/cnpg-1.21.0.yaml

And it does not have tablespace. 1.22 has tablespaces.