Skip to content

Commit 6779106

Browse files
committed
simplify the ClusterConnectionSpec validation rule
1 parent 9f5d13c commit 6779106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

operator/src/main/java/it/aboutbits/postgresql/crd/clusterconnection/ClusterConnectionSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@SchemaCustomizer(value = HostCustomizer.class, input = "host")
2222
@NullMarked
2323
@ValidationRule(
24-
value = "(has(self.adminSecretRef) ? 1 : 0) + (has(self.adminSecretFileRef) ? 1 : 0) == 1",
24+
value = "has(self.adminSecretRef) != has(self.adminSecretFileRef)",
2525
message = "Exactly one of 'adminSecretRef' or 'adminSecretFileRef' must be provided"
2626
)
2727
public class ClusterConnectionSpec {

0 commit comments

Comments
 (0)