Skip to content

Commit a9deaa1

Browse files
committed
Merge branch 'refactor-secret-ref-and-cluster-reference-to-resource-ref' into move-jspecify-annotations-closest-to-the-target
# Conflicts: # operator/src/main/java/it/aboutbits/postgresql/core/ResourceRef.java
2 parents 4c50228 + fc7eaf0 commit a9deaa1

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,9 +34,11 @@ 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
@io.fabric8.generator.annotation.Nullable
37+
@Max(63)
3638
private @Nullable String namespace;
3739

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

0 commit comments

Comments
 (0)