fdb-kubernetes-operator icon indicating copy to clipboard operation
fdb-kubernetes-operator copied to clipboard

Add validation pattern to ProcessGroupIDPrefix

Open johscheuer opened this issue 3 years ago • 0 comments

What would you like to be added/changed?

As mentioned in https://github.com/FoundationDB/fdb-kubernetes-operator/pull/1060/files#r821385897 we should consider adding a validation pattern to the ProcessGroupIDPrefix the suggestion was:

// +kubebuilder:validation:Pattern:=^[a-z0-9A-Z]([\-._a-z0-9A-Z])*[a-z0-9A-Z]$

We have to ensure that our validation pattern matches the validation pattern from Kubernetes: https://github.com/kubernetes/apimachinery/blob/master/pkg/util/validation/validation.go

johscheuer avatar Mar 09 '22 06:03 johscheuer