Skip to content

Commit cc65fff

Browse files
committed
Set to nil when not needed (so it will actually be removed from the CR)
1 parent 2e575f3 commit cc65fff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/v1/postgres_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,8 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor
788788
z.Spec.TLS = &zalando.TLSDescription{
789789
SecretName: p.ToTLSSecretName(),
790790
}
791+
} else {
792+
z.Spec.TLS = nil
791793
}
792794

793795
jsonZ, err := runtime.DefaultUnstructuredConverter.ToUnstructured(z)

0 commit comments

Comments
 (0)