postgres-operator/pkg
Mikhail Vishnyakov a7a03ab0b2
Fix postgresql CRD for more safely validation
This change will allow to immediately discard invalid values when parsing a logicalBackupSchedule string.

Previously used regular expression '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' may pass invalid values to cron, like "00 03 * * 7"
Although "00 03 * * 7" may be valid on some systems, but this value will throw an error when applied to kubernetes.
https://en.wikipedia.org/wiki/Cron

FYI: kubernetes uses cron implementation from go module "github.com/robfig/cron/v3"
https://github.com/robfig/cron/blob/v3/spec.go
https://github.com/robfig/cron/blob/v3/parser.go
2022-08-10 22:03:07 +03:00
..
apis Fix postgresql CRD for more safely validation 2022-08-10 22:03:07 +03:00
apiserver reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
cluster bump pooler image to use new alpine base image (#1985) 2022-08-08 17:36:43 +02:00
controller Set maximum CPU and Memory requests on K8s (#1959) 2022-07-28 14:18:27 +02:00
generated create CDC event stream CRD (#1570) 2022-02-28 10:09:42 +01:00
spec reverse membership for additional owner roles (#1862) 2022-04-28 11:15:40 +02:00
teams Rename roles that are removed from PostgresTeam CRD (#1457) 2021-05-21 15:49:39 +02:00
util Set maximum CPU and Memory requests on K8s (#1959) 2022-07-28 14:18:27 +02:00