aws-app-mesh-controller-for-k8s icon indicating copy to clipboard operation
aws-app-mesh-controller-for-k8s copied to clipboard

Add length validation to route name

Open geezyx opened this issue 2 years ago • 1 comments

Description of changes:

According to the API reference, the route name must be at least 1 character and at most 255 characters. https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_RouteData.html

Currently an empty string is valid input for the CRD, which results in an API error during reconcile. This can be caught early with a validation rule.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

geezyx avatar Aug 28 '23 17:08 geezyx

Thank you, Mike for pointing out. Executed unit tests

ysdongAmazon avatar Aug 30 '23 02:08 ysdongAmazon