Skip to content

Commit 7f9450b

Browse files
added spec.issuerConf to CRD
Signed-off-by: Mayank Shah <mayank.shah@percona.com>
1 parent 3a248eb commit 7f9450b

8 files changed

Lines changed: 181 additions & 0 deletions

File tree

build/crd/percona/generated/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28690,6 +28690,25 @@ spec:
2869028690
type: string
2869128691
certValidityDuration:
2869228692
type: string
28693+
issuerConf:
28694+
description: K8SPG-951
28695+
properties:
28696+
group:
28697+
description: |-
28698+
Group of the issuer being referred to.
28699+
Defaults to 'cert-manager.io'.
28700+
type: string
28701+
kind:
28702+
description: |-
28703+
Kind of the issuer being referred to.
28704+
Defaults to 'Issuer'.
28705+
type: string
28706+
name:
28707+
description: Name of the issuer being referred to.
28708+
type: string
28709+
required:
28710+
- name
28711+
type: object
2869328712
pgBackRestCertValidityDuration:
2869428713
type: string
2869528714
type: object

config/crd/bases/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29385,6 +29385,25 @@ spec:
2938529385
type: string
2938629386
certValidityDuration:
2938729387
type: string
29388+
issuerConf:
29389+
description: K8SPG-951
29390+
properties:
29391+
group:
29392+
description: |-
29393+
Group of the issuer being referred to.
29394+
Defaults to 'cert-manager.io'.
29395+
type: string
29396+
kind:
29397+
description: |-
29398+
Kind of the issuer being referred to.
29399+
Defaults to 'Issuer'.
29400+
type: string
29401+
name:
29402+
description: Name of the issuer being referred to.
29403+
type: string
29404+
required:
29405+
- name
29406+
type: object
2938829407
pgBackRestCertValidityDuration:
2938929408
type: string
2939029409
type: object

config/crd/bases/upstream.pgv2.percona.com_postgresclusters.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28671,6 +28671,25 @@ spec:
2867128671
type: string
2867228672
certValidityDuration:
2867328673
type: string
28674+
issuerConf:
28675+
description: K8SPG-951
28676+
properties:
28677+
group:
28678+
description: |-
28679+
Group of the issuer being referred to.
28680+
Defaults to 'cert-manager.io'.
28681+
type: string
28682+
kind:
28683+
description: |-
28684+
Kind of the issuer being referred to.
28685+
Defaults to 'Issuer'.
28686+
type: string
28687+
name:
28688+
description: Name of the issuer being referred to.
28689+
type: string
28690+
required:
28691+
- name
28692+
type: object
2867428693
pgBackRestCertValidityDuration:
2867528694
type: string
2867628695
type: object

deploy/bundle.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29682,6 +29682,25 @@ spec:
2968229682
type: string
2968329683
certValidityDuration:
2968429684
type: string
29685+
issuerConf:
29686+
description: K8SPG-951
29687+
properties:
29688+
group:
29689+
description: |-
29690+
Group of the issuer being referred to.
29691+
Defaults to 'cert-manager.io'.
29692+
type: string
29693+
kind:
29694+
description: |-
29695+
Kind of the issuer being referred to.
29696+
Defaults to 'Issuer'.
29697+
type: string
29698+
name:
29699+
description: Name of the issuer being referred to.
29700+
type: string
29701+
required:
29702+
- name
29703+
type: object
2968529704
pgBackRestCertValidityDuration:
2968629705
type: string
2968729706
type: object
@@ -66741,6 +66760,25 @@ spec:
6674166760
type: string
6674266761
certValidityDuration:
6674366762
type: string
66763+
issuerConf:
66764+
description: K8SPG-951
66765+
properties:
66766+
group:
66767+
description: |-
66768+
Group of the issuer being referred to.
66769+
Defaults to 'cert-manager.io'.
66770+
type: string
66771+
kind:
66772+
description: |-
66773+
Kind of the issuer being referred to.
66774+
Defaults to 'Issuer'.
66775+
type: string
66776+
name:
66777+
description: Name of the issuer being referred to.
66778+
type: string
66779+
required:
66780+
- name
66781+
type: object
6674466782
pgBackRestCertValidityDuration:
6674566783
type: string
6674666784
type: object

deploy/crd.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29682,6 +29682,25 @@ spec:
2968229682
type: string
2968329683
certValidityDuration:
2968429684
type: string
29685+
issuerConf:
29686+
description: K8SPG-951
29687+
properties:
29688+
group:
29689+
description: |-
29690+
Group of the issuer being referred to.
29691+
Defaults to 'cert-manager.io'.
29692+
type: string
29693+
kind:
29694+
description: |-
29695+
Kind of the issuer being referred to.
29696+
Defaults to 'Issuer'.
29697+
type: string
29698+
name:
29699+
description: Name of the issuer being referred to.
29700+
type: string
29701+
required:
29702+
- name
29703+
type: object
2968529704
pgBackRestCertValidityDuration:
2968629705
type: string
2968729706
type: object
@@ -66741,6 +66760,25 @@ spec:
6674166760
type: string
6674266761
certValidityDuration:
6674366762
type: string
66763+
issuerConf:
66764+
description: K8SPG-951
66765+
properties:
66766+
group:
66767+
description: |-
66768+
Group of the issuer being referred to.
66769+
Defaults to 'cert-manager.io'.
66770+
type: string
66771+
kind:
66772+
description: |-
66773+
Kind of the issuer being referred to.
66774+
Defaults to 'Issuer'.
66775+
type: string
66776+
name:
66777+
description: Name of the issuer being referred to.
66778+
type: string
66779+
required:
66780+
- name
66781+
type: object
6674466782
pgBackRestCertValidityDuration:
6674566783
type: string
6674666784
type: object

deploy/cw-bundle.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29682,6 +29682,25 @@ spec:
2968229682
type: string
2968329683
certValidityDuration:
2968429684
type: string
29685+
issuerConf:
29686+
description: K8SPG-951
29687+
properties:
29688+
group:
29689+
description: |-
29690+
Group of the issuer being referred to.
29691+
Defaults to 'cert-manager.io'.
29692+
type: string
29693+
kind:
29694+
description: |-
29695+
Kind of the issuer being referred to.
29696+
Defaults to 'Issuer'.
29697+
type: string
29698+
name:
29699+
description: Name of the issuer being referred to.
29700+
type: string
29701+
required:
29702+
- name
29703+
type: object
2968529704
pgBackRestCertValidityDuration:
2968629705
type: string
2968729706
type: object
@@ -66741,6 +66760,25 @@ spec:
6674166760
type: string
6674266761
certValidityDuration:
6674366762
type: string
66763+
issuerConf:
66764+
description: K8SPG-951
66765+
properties:
66766+
group:
66767+
description: |-
66768+
Group of the issuer being referred to.
66769+
Defaults to 'cert-manager.io'.
66770+
type: string
66771+
kind:
66772+
description: |-
66773+
Kind of the issuer being referred to.
66774+
Defaults to 'Issuer'.
66775+
type: string
66776+
name:
66777+
description: Name of the issuer being referred to.
66778+
type: string
66779+
required:
66780+
- name
66781+
type: object
6674466782
pgBackRestCertValidityDuration:
6674566783
type: string
6674666784
type: object

pkg/apis/upstream.pgv2.percona.com/v1beta1/postgrescluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"fmt"
1010
"reflect"
1111

12+
cmmeta "github.com/cert-manager/cert-manager/pkg/apis/meta/v1"
1213
gover "github.com/hashicorp/go-version"
1314
"github.com/pkg/errors"
1415
corev1 "k8s.io/api/core/v1"
@@ -230,6 +231,9 @@ type TLSSpec struct {
230231
CAValidityDuration *metav1.Duration `json:"caValidityDuration,omitempty"`
231232
// +optional
232233
PGBackRestCertValidityDuration *metav1.Duration `json:"pgBackRestCertValidityDuration,omitempty"`
234+
// K8SPG-951
235+
// +optional
236+
IssuerConf *cmmeta.IssuerReference `json:"issuerConf,omitempty"`
233237
}
234238

235239
// DataSource defines data sources for a new PostgresCluster.

pkg/apis/upstream.pgv2.percona.com/v1beta1/zz_generated.deepcopy.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)