postgres-operator/pkg/apis/acid.zalan.do/v1
Jakob Gillich f3b83c0b05
Fix empty resources spec field failing schema validation (#1589)
In Go, when a struct field is not set, it becomes a struct with
default values for all fields. These default values are included
during serialization. This causes issues with schema validation
where optional fields cannot be omitted because default values
are considered invalid.

This patch addresses this issue for `Resources` fields on several
types by using a pointer value.
2022-03-18 16:16:32 +01:00
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go grant db owners to cron_admin (#1805) 2022-03-18 12:36:12 +01:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go refactor restarting instances (#1535) 2021-08-09 16:23:41 +02:00
operator_configuration_type.go grant db owners to cron_admin (#1805) 2022-03-18 12:36:12 +01:00
postgres_team_type.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
postgresql_type.go Fix empty resources spec field failing schema validation (#1589) 2022-03-18 16:16:32 +01:00
register.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
util.go change Clone attribute of PostgresSpec to *CloneDescription (#1020) 2020-07-30 16:31:29 +02:00
util_test.go Fix empty resources spec field failing schema validation (#1589) 2022-03-18 16:16:32 +01:00
zz_generated.deepcopy.go fix comparison of event stream array (#1817) 2022-03-18 15:06:17 +01:00