From dc872abb51efb87df982bf74f636a5a3ff10d0e0 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 20 Sep 2023 11:57:49 +0200 Subject: [PATCH] support new stream fields in CRD (#2427) --- charts/postgres-operator/crds/postgresqls.yaml | 4 ++++ manifests/postgresql.crd.yaml | 4 ++++ pkg/apis/acid.zalan.do/v1/crds.go | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/charts/postgres-operator/crds/postgresqls.yaml b/charts/postgres-operator/crds/postgresqls.yaml index 6f938cf8f..c9fd30f87 100644 --- a/charts/postgres-operator/crds/postgresqls.yaml +++ b/charts/postgres-operator/crds/postgresqls.yaml @@ -501,6 +501,8 @@ spec: type: integer database: type: string + enableRecovery: + type: boolean filter: type: object additionalProperties: @@ -518,6 +520,8 @@ spec: type: string payloadColumn: type: string + recoveryEventType: + type: string teamId: type: string tls: diff --git a/manifests/postgresql.crd.yaml b/manifests/postgresql.crd.yaml index 6066abad1..5f5b6ff09 100644 --- a/manifests/postgresql.crd.yaml +++ b/manifests/postgresql.crd.yaml @@ -499,6 +499,8 @@ spec: type: integer database: type: string + enableRecovery: + type: boolean filter: type: object additionalProperties: @@ -516,6 +518,8 @@ spec: type: string payloadColumn: type: string + recoveryEventType: + type: string teamId: type: string tls: diff --git a/pkg/apis/acid.zalan.do/v1/crds.go b/pkg/apis/acid.zalan.do/v1/crds.go index 34cfd90dc..3d9f4f08d 100644 --- a/pkg/apis/acid.zalan.do/v1/crds.go +++ b/pkg/apis/acid.zalan.do/v1/crds.go @@ -769,6 +769,9 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ "database": { Type: "string", }, + "enableRecovery": { + Type: "boolean", + }, "filter": { Type: "object", AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ @@ -793,6 +796,9 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ "payloadColumn": { Type: "string", }, + "recoveryEventType": { + Type: "string", + }, }, }, },