Skip to content

Commit

Permalink
Set to nil when not needed (so it will actually be removed from the CR)
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep committed Jun 26, 2024
1 parent 2e575f3 commit cc65fff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1/postgres_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc65fff

Please sign in to comment.