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
/// The database to grant privileges on for this role.
21
22
@Required
23
+
@ValidationRule(
24
+
value = "self == oldSelf",
25
+
message = "The Grant database is immutable. Changing it would require revoking permissions from the old database before granting them in the new one."
26
+
)
22
27
privateStringdatabase = "";
23
28
24
29
/// The name of the role to grant privileges on.
25
30
@Required
31
+
@ValidationRule(
32
+
value = "self == oldSelf",
33
+
message = "The Grant role is immutable. Changing it would require revoking permissions from the old role before granting them to the new one."
34
+
)
26
35
privateStringrole = "";
27
36
28
37
/// The database schema to grant privileges on for this role (required except if objectType is "database")
29
38
@Required
39
+
@ValidationRule(
40
+
value = "self == oldSelf",
41
+
message = "The Grant schema is immutable. Changing it would require revoking permissions from the old schema before granting them to objects in the new schema."
42
+
)
30
43
privateStringschema = "";
31
44
32
45
/// The PostgreSQL object type to grant the privileges on.
Copy file name to clipboardExpand all lines: operator/src/main/java/it/aboutbits/postgresql/crd/role/RoleSpec.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ public class RoleSpec {
21
21
@Required
22
22
@ValidationRule(
23
23
value = "self == oldSelf",
24
-
message = "The Role name must not be changed once it is created"
24
+
message = "The Role name is immutable. Allowing to rename the Role name using 'alter role <old_name> rename to <new_name>' would add unwanted side-effects to the operator."
0 commit comments