Skip to content

Commit 5dd4041

Browse files
committed
Merge branch 'main' into add-comatibility-matrix
# Conflicts: # operator/src/main/java/it/aboutbits/postgresql/core/ResourceRef.java
2 parents 2245909 + 1f70f10 commit 5dd4041

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

operator/src/main/java/it/aboutbits/postgresql/core/ResourceRef.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package it.aboutbits.postgresql.core;
22

33
import io.fabric8.crdv2.generator.v1.SchemaCustomizer;
4+
import io.fabric8.generator.annotation.Max;
45
import io.fabric8.generator.annotation.Required;
56
import io.fabric8.generator.annotation.ValidationRule;
67
import it.aboutbits.postgresql.core.schema_customizer.KubernetesNameCustomizer;
@@ -33,10 +34,12 @@ public class ResourceRef {
3334
/// The namespace of the referenced Kubernetes resource.
3435
/// If `null`, defaults to the namespace of the CR that defines this reference.
3536
@Nullable
37+
@Max(63)
3638
@io.fabric8.generator.annotation.Nullable
3739
private String namespace;
3840

3941
@Required
42+
@Max(63)
4043
@ValidationRule(
4144
value = "self.trim().size() > 0",
4245
message = "The name must not be empty."

0 commit comments

Comments
 (0)