Commit f444553
Update validation method for storing usernames in Kubernetes Secrets
The username provided in the pgo-conf file will be used to create
a Kubernetes Secret for that user. The username must follow the
Kube Secret naming requirements so that the secret can be created.
Kube secrets can only have lower case alphanumeric characters,
'-' or '.', and must start and end with an alphanumeric character.
These requirements can be validated using the
"IsDNS1123Subdomain" function found in the Kubernetes validation
library:
https://godoc.org/k8s.io/kubernetes/pkg/apis/core/validation#ValidateDNS1123Subdomain1 parent 75172e7 commit f444553
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | | - | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| |||
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
480 | 493 | | |
481 | 494 | | |
482 | 495 | | |
| |||
0 commit comments