diff --git a/api/v1alpha1/userconfig_types.go b/api/v1alpha1/userconfig_types.go index fcc5bd4..19d8ed2 100644 --- a/api/v1alpha1/userconfig_types.go +++ b/api/v1alpha1/userconfig_types.go @@ -33,7 +33,8 @@ type Identity struct { Groups []string `json:"groups,omitempty"` // Contact is the user's email address for communication. - // +kubebuilder:validation:Pattern="^[a-zA-Z._%+-]+@[a-zA-Z.-]+\\.[a-zA-Z]{2,}$" + // +kubebuilder:validation:Pattern=^(?!.*\.\.)(?!\.)([\w\.]+)(?