You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor SecretRef and ClusterReference to one common ResourceRef (#38)
* update to Quarkus 3.32.1 and update dependencies to latest versions
* validate K8s resource references against the RFC 1123 hostname format Kubernetes uses
* refactor SecretRef and ClusterReference to one common ResourceRef type
* fix the test by having a own SchemaCustomizer for Kubernetes names
* do not short-circuit the PostgreSQLInstanceReadinessCheck check once one instance is down
* let the PostgreSQLContextFactory exception bubble up
* reformat code
* fix compile issue
* the namespace should come always first
* add explicit string max length check of 63
* add explicit string max length check of 63
|`clusterRef`|`ClusterReference`| Reference to the `ClusterConnection` to use. | Yes | No |
10
-
|`database`|`string`| The database containing the objects. | Yes | Yes |
11
-
|`role`|`string`| The role to which privileges are granted. | Yes | Yes |
12
-
|`schema`|`string`| The schema containing the objects. Required, unless `objectType` is `database`. | Conditional | Yes |
13
-
|`objectType`|`string`| The type of object. | Yes | Yes |
14
-
|`objects`|`array[string]`| List of object names. If empty, all objects of this `objectType` will be granted. Required, unless `objectType` is `database` or `schema`. | Conditional | No |
15
-
|`privileges`|`array[string]`| List of privileges to grant. | Yes | No |
7
+
| Field | Type | Description | Required | Immutable |
|`clusterRef`|`ResourceRef`| Reference to the `ClusterConnection` to use. | Yes | No |
10
+
|`database`|`string`| The database containing the objects. | Yes | Yes |
11
+
|`role`|`string`| The role to which privileges are granted. | Yes | Yes |
12
+
|`schema`|`string`| The schema containing the objects. Required, unless `objectType` is `database`. | Conditional | Yes |
13
+
|`objectType`|`string`| The type of object. | Yes | Yes |
14
+
|`objects`|`array[string]`| List of object names. If empty, all objects of this `objectType` will be granted. Required, unless `objectType` is `database` or `schema`. | Conditional | No |
15
+
|`privileges`|`array[string]`| List of privileges to grant. | Yes | No |
16
16
17
17
### Object Types
18
18
@@ -40,12 +40,12 @@ Supported privileges depend on the `objectType`:
|`namespace`|`string`| Namespace of the referenced resource. If not specified, uses the owning CR's namespace. | No |
20
+
|`name`|`string`| Name of the referenced Kubernetes resource. | Yes |
21
+
22
+
**Note**:
23
+
When used as `passwordSecretRef`, the referenced Kubernetes Secret must be of type `kubernetes.io/basic-auth`.
24
+
The `username` key in the Secret is not strictly required, as the role name is specified by the `name` field in the CRD. Only the `password` key is used.
|`namespace`|`string`| Namespace of the secret. If not specified, uses the CR's namespace. | No |
43
-
44
-
The referenced secret must be of type `kubernetes.io/basic-auth`.
45
-
46
-
**Note**: The `username` key in the secret is not strictly required, as the role name is specified by the `name` field in the CRD. Only the `password` key is used.
47
-
48
41
### Login vs No-Login Roles
49
42
50
43
The operator uses the presence of the `passwordSecretRef` field to determine if the role should have the `LOGIN` privilege (User) or not (Group).
0 commit comments