diff --git a/apis/appmesh/v1beta2/virtualrouter_types.go b/apis/appmesh/v1beta2/virtualrouter_types.go index 8a12a5d0..12f8cde5 100644 --- a/apis/appmesh/v1beta2/virtualrouter_types.go +++ b/apis/appmesh/v1beta2/virtualrouter_types.go @@ -247,6 +247,8 @@ type GRPCRoute struct { // Route refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_RouteSpec.html type Route struct { // Route's name + // +kubebuilder:validation:MinLength=1 + // +kubebuilder:validation:MaxLength=255 Name string `json:"name"` // An object that represents the specification of a gRPC route. // +optional diff --git a/config/crd/bases/appmesh.k8s.aws_virtualrouters.yaml b/config/crd/bases/appmesh.k8s.aws_virtualrouters.yaml index c8e7b05b..0ad39901 100644 --- a/config/crd/bases/appmesh.k8s.aws_virtualrouters.yaml +++ b/config/crd/bases/appmesh.k8s.aws_virtualrouters.yaml @@ -943,6 +943,8 @@ spec: type: object name: description: Route's name + maxLength: 255 + minLength: 1 type: string priority: description: The priority for the route. diff --git a/config/helm/appmesh-controller/crds/crds.yaml b/config/helm/appmesh-controller/crds/crds.yaml index 90537e32..6ff59e4d 100644 --- a/config/helm/appmesh-controller/crds/crds.yaml +++ b/config/helm/appmesh-controller/crds/crds.yaml @@ -3813,6 +3813,8 @@ spec: type: object name: description: Route's name + maxLength: 255 + minLength: 1 type: string priority: description: The priority for the route.