diff --git a/api/v1/postgres_types.go b/api/v1/postgres_types.go index 478d49c3..b16703c3 100644 --- a/api/v1/postgres_types.go +++ b/api/v1/postgres_types.go @@ -788,6 +788,8 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor z.Spec.TLS = &zalando.TLSDescription{ SecretName: p.ToTLSSecretName(), } + } else { + z.Spec.TLS = nil } jsonZ, err := runtime.DefaultUnstructuredConverter.ToUnstructured(z)