The use of x-kubernetes-preserve-unknown-fields
stops Terrafrom from updating manifests in-place causing cluster wipes
#2676
Labels
Please, answer some short questions which should help us to understand your problem / question better?
So this is based on hashicorp/terraform-provider-kubernetes#1841 (comment)
Anyway any change to the manifests in Terraform will replace the postgresql crd causing the data to be wiped and the server to be empty.
This seems to be used in a couple of places like (6 total in that file):
postgres-operator/charts/postgres-operator/crds/postgresqls.yaml
Line 206 in 37d6993
and
postgres-operator/charts/postgres-operator/crds/postgresqls.yaml
Line 105 in 37d6993
Both of these should have known specs and it would be very useful if they could be fully specced, which would resolve any problems with programs like terraform or pulumi that require fully specified schema's to do their job and use in-place updates.
An alternative would be to make the operator tolerant to replacement of CRD resources of course, but that feels a bit less clean.
The text was updated successfully, but these errors were encountered: