File tree 3 files changed +27
-1
lines changed
pkg/apis/postgres-operator.crunchydata.com/v1beta1
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 40
40
description: PostgresClusterSpec defines the desired state of PostgresCluster
41
41
properties:
42
42
authentication:
43
+ description: Authentication settings for the PostgreSQL server
43
44
properties:
44
45
rules:
45
- description: 'More info: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html'
46
+ description: |-
47
+ Postgres compares every new connection to these rules in the order they are
48
+ defined. The first rule that matches determines if and how the connection
49
+ must then authenticate. Connections that match no rules are disconnected.
50
+
51
+ When this is omitted or empty, Postgres accepts encrypted connections to any
52
+ database from users that have a password. To refuse all network connections,
53
+ set this to one rule that matches "host" connections to the "reject" method.
54
+
55
+ More info: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
46
56
items:
47
57
properties:
48
58
connection:
79
89
description: |-
80
90
The authentication method to use when a connection matches this rule.
81
91
The special value "reject" refuses connections that match this rule.
92
+
82
93
More info: https://www.postgresql.org/docs/current/auth-methods.html
83
94
maxLength: 20
84
95
minLength: 1
93
104
- type: integer
94
105
- type: string
95
106
x-kubernetes-int-or-string: true
107
+ description: Additional settings for this rule or its authentication
108
+ method.
96
109
maxProperties: 20
97
110
type: object
98
111
x-kubernetes-map-type: atomic
@@ -4447,6 +4460,7 @@ spec:
4447
4460
type: object
4448
4461
type: object
4449
4462
config:
4463
+ description: General configuration of the PostgreSQL server
4450
4464
properties:
4451
4465
files:
4452
4466
description: Files to mount under "/etc/postgres".
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ import (
10
10
)
11
11
12
12
type PostgresAuthenticationSpec struct {
13
+ // Postgres compares every new connection to these rules in the order they are
14
+ // defined. The first rule that matches determines if and how the connection
15
+ // must then authenticate. Connections that match no rules are disconnected.
16
+ //
17
+ // When this is omitted or empty, Postgres accepts encrypted connections to any
18
+ // database from users that have a password. To refuse all network connections,
19
+ // set this to one rule that matches "host" connections to the "reject" method.
20
+ //
13
21
// More info: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
14
22
// ---
15
23
// +kubebuilder:validation:MaxItems=10
@@ -99,6 +107,7 @@ type PostgresHBARule struct {
99
107
100
108
// The authentication method to use when a connection matches this rule.
101
109
// The special value "reject" refuses connections that match this rule.
110
+ //
102
111
// More info: https://www.postgresql.org/docs/current/auth-methods.html
103
112
// ---
104
113
// +kubebuilder:validation:MinLength=1
@@ -108,6 +117,7 @@ type PostgresHBARule struct {
108
117
// +optional
109
118
Method string `json:"method,omitempty"`
110
119
120
+ // Additional settings for this rule or its authentication method.
111
121
// ---
112
122
// +kubebuilder:validation:MaxProperties=20
113
123
// +mapType=atomic
Original file line number Diff line number Diff line change @@ -21,13 +21,15 @@ type PostgresClusterSpec struct {
21
21
// +optional
22
22
DataSource * DataSource `json:"dataSource,omitempty"`
23
23
24
+ // Authentication settings for the PostgreSQL server
24
25
// +optional
25
26
Authentication * PostgresAuthenticationSpec `json:"authentication,omitempty"`
26
27
27
28
// PostgreSQL backup configuration
28
29
// +optional
29
30
Backups Backups `json:"backups,omitempty"`
30
31
32
+ // General configuration of the PostgreSQL server
31
33
// +optional
32
34
Config * PostgresConfigSpec `json:"config,omitempty"`
33
35
You can’t perform that action at this time.
0 commit comments