From 6a1c5bcc259414174f455e16429dfce2a8a1eb2b Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Tue, 2 Jul 2024 16:34:30 +0200 Subject: [PATCH] regexp for admin matches emails --- api/multitenancy/v1/tenant_types.go | 2 +- config/crd/bases/multitenancy.edge-net.io_tenants.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/multitenancy/v1/tenant_types.go b/api/multitenancy/v1/tenant_types.go index d1531b1..241e77e 100644 --- a/api/multitenancy/v1/tenant_types.go +++ b/api/multitenancy/v1/tenant_types.go @@ -41,7 +41,7 @@ type TenantSpec struct { // providers this can be any name. // +kubebuilder:validation:MaxLength=200 // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$` + // +kubebuilder:validation:Pattern=`^[a-z0-9]([-.@_a-z0-9]*[a-z0-9])?$` Admin string `json:"admin"` // Website of the tenant. diff --git a/config/crd/bases/multitenancy.edge-net.io_tenants.yaml b/config/crd/bases/multitenancy.edge-net.io_tenants.yaml index e1f11c7..8b4068d 100644 --- a/config/crd/bases/multitenancy.edge-net.io_tenants.yaml +++ b/config/crd/bases/multitenancy.edge-net.io_tenants.yaml @@ -57,7 +57,7 @@ spec: The username for some cases can also be emails. This was the old method. But with different identity providers this can be any name. maxLength: 200 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ + pattern: ^[a-z0-9]([-.@_a-z0-9]*[a-z0-9])?$ type: string clusterNetworkPolicy: default: false