File tree Expand file tree Collapse file tree
operator/src/main/java/it/aboutbits/postgresql/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package it .aboutbits .postgresql .core ;
22
33import io .fabric8 .crdv2 .generator .v1 .SchemaCustomizer ;
4+ import io .fabric8 .generator .annotation .Max ;
45import io .fabric8 .generator .annotation .Required ;
56import io .fabric8 .generator .annotation .ValidationRule ;
67import it .aboutbits .postgresql .core .schema_customizer .KubernetesNameCustomizer ;
1516@ SchemaCustomizer (KubernetesNameCustomizer .class )
1617public class ClusterReference {
1718 @ Required
19+ @ Max (63 )
1820 @ ValidationRule (
1921 value = "self.trim().size() > 0" ,
2022 message = "The ClusterReference name must not be empty."
2123 )
2224 private String name = "" ;
2325
2426 @ Nullable
27+ @ Max (63 )
2528 @ io .fabric8 .generator .annotation .Nullable
2629 private String namespace ;
2730}
Original file line number Diff line number Diff line change 11package it .aboutbits .postgresql .core ;
22
33import io .fabric8 .crdv2 .generator .v1 .SchemaCustomizer ;
4+ import io .fabric8 .generator .annotation .Max ;
45import io .fabric8 .generator .annotation .Required ;
56import io .fabric8 .generator .annotation .ValidationRule ;
67import it .aboutbits .postgresql .core .schema_customizer .KubernetesNameCustomizer ;
1516@ SchemaCustomizer (KubernetesNameCustomizer .class )
1617public class SecretRef {
1718 @ Required
19+ @ Max (63 )
1820 @ ValidationRule (
1921 value = "self.trim().size() > 0" ,
2022 message = "The SecretRef name must not be empty."
@@ -26,6 +28,7 @@ public class SecretRef {
2628 * If it is null, it means the Secret is in the same namespace as the resource referencing it.
2729 */
2830 @ Nullable
31+ @ Max (63 )
2932 @ io .fabric8 .generator .annotation .Nullable
3033 private String namespace ;
3134}
You can’t perform that action at this time.
0 commit comments