Skip to content

Commit

Permalink
alow profile name with under score and hyper
Browse files Browse the repository at this point in the history
Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
  • Loading branch information
aneeshkp authored and josephdrichard committed May 16, 2024
1 parent 402929d commit 64dc4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/ptpconfig_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (

// log is for logging in this package.
var ptpconfiglog = logf.Log.WithName("ptpconfig-resource")
var profileRegEx = regexp.MustCompile(`^(\w+)(,\s*([\w-_]+))`)
var profileRegEx = regexp.MustCompile(`^([\w\-_]+)(,\s*([\w\-_]+))*$`)

func (r *PtpConfig) SetupWebhookWithManager(mgr ctrl.Manager) error {
return ctrl.NewWebhookManagedBy(mgr).
Expand Down

0 comments on commit 64dc4c4

Please sign in to comment.