Skip to content

Commit

Permalink
regexp for admin matches emails
Browse files Browse the repository at this point in the history
  • Loading branch information
cscognamiglio committed Jul 2, 2024
1 parent 097c994 commit 6a1c5bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/multitenancy/v1/tenant_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/multitenancy.edge-net.io_tenants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a1c5bc

Please sign in to comment.