Skip to content

Commit

Permalink
Merge pull request #2226 from BenTheElder/no_
Browse files Browse the repository at this point in the history
don't allow _ in cluster names
  • Loading branch information
k8s-ci-robot authored Apr 30, 2021
2 parents e223bfb + 7634cf4 commit 58bdc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/apis/config/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
// and suffix this name, we can relax it a little
// see NewContext() for usage
// https://godoc.org/github.com/docker/docker/daemon/names#pkg-constants
var validNameRE = regexp.MustCompile(`^[a-z0-9_.-]+$`)
var validNameRE = regexp.MustCompile(`^[a-z0-9.-]+$`)

// Validate returns a ConfigErrors with an entry for each problem
// with the config, or nil if there are none
Expand Down

0 comments on commit 58bdc4e

Please sign in to comment.