postgres-operator/pkg/cluster
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
..
cluster.go grant db owners to cron_admin (#1805) 2022-03-18 12:36:12 +01:00
cluster_test.go Fix empty resources spec field failing schema validation (#1589) 2022-03-18 16:16:32 +01:00
connection_pooler.go Pooler sync fix (#1811) 2022-03-17 19:22:18 +01:00
connection_pooler_new_test.go Connection pooler for replica (#1127) 2020-11-13 14:52:21 +01:00
connection_pooler_test.go LoadBalancer toggles for master and replica pooler pods (#1799) 2022-03-04 13:36:17 +01:00
database.go create CDC event stream CRD (#1570) 2022-02-28 10:09:42 +01:00
exec.go pick first container if postgres is not found (#1505) 2021-05-28 11:44:10 +02:00
filesystems.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
k8sres.go Fix empty resources spec field failing schema validation (#1589) 2022-03-18 16:16:32 +01:00
k8sres_test.go Fix empty resources spec field failing schema validation (#1589) 2022-03-18 16:16:32 +01:00
majorversionupgrade.go make sure upgrade script runs on the master (#1715) 2021-12-02 14:10:58 +01:00
pod.go add new parameter for Patroni API (PatroniAPICheckInterval, PatroniAPICheckTimeout) (#1803) 2022-03-15 11:34:09 +01:00
pod_test.go add new parameter for Patroni API (PatroniAPICheckInterval, PatroniAPICheckTimeout) (#1803) 2022-03-15 11:34:09 +01:00
resources.go LoadBalancer toggles for master and replica pooler pods (#1799) 2022-03-04 13:36:17 +01:00
streams.go fix comparison of event stream array (#1817) 2022-03-18 15:06:17 +01:00
streams_test.go fix comparison of event stream array (#1817) 2022-03-18 15:06:17 +01:00
sync.go LoadBalancer toggles for master and replica pooler pods (#1799) 2022-03-04 13:36:17 +01:00
sync_test.go create CDC event stream CRD (#1570) 2022-02-28 10:09:42 +01:00
types.go choose switchover candidate based on lag and role (#1700) 2021-12-14 10:35:21 +01:00
util.go choose switchover candidate based on lag and role (#1700) 2021-12-14 10:35:21 +01:00
util_test.go LoadBalancer toggles for master and replica pooler pods (#1799) 2022-03-04 13:36:17 +01:00
volumes.go Initialize arrays of errors / error messages + minor refactoring (#1701) 2021-11-29 12:49:12 +01:00
volumes_test.go Fix go lint errors (#1468) 2021-05-10 11:48:03 +02:00