zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

chart CRD out-of-sync in 1.13.0 #2788

Open bo0ts opened 1 month ago

bo0ts commented 1 month ago

After upgrading to 1.13.0 to CRD in the chart is out-of-sync with the one installed through the helm chart.

Helm Chart:

# charts/postgres-operator/crds/postgresql.yaml
              maintenanceWindows:
                type: array
                items:
                  type: string
                  pattern: '^\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))-((2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))\ *$'

Installed in the cluster:

# pkg/apis/acid.zalan.do/v1/crds.go
                    "maintenanceWindows": {
                        Type: "array",
                        Items: &apiextv1.JSONSchemaPropsOrArray{
                            Schema: &apiextv1.JSONSchemaProps{
                                Type:    "string",
                                Pattern: "^\\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\\d):([0-5]?\\d)|(2[0-3]|[01]?\\d):([0-5]?\\d))-((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\\d):([0-5]?\\d)|(2[0-3]|[01]?\\d):([0-5]?\\d))\\ *$",
                            },
                        },
                    },