-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make volume mount names RFC1123 DNS label strict
In our production environment, we ran into the issue that a Kubernetes secret name contained dots. Based on the Object Names and IDs docs, the object name has to follow RFC1123 DNS Subdomain rules, which allow dots. The volume mount names only support RFC1123 DNS label standard: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/ Remove forbidden characters in name by replacing them with a dash. Introduce test sample with secret name containing dots.
- Loading branch information
1 parent
fbceaae
commit 8c5a751
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters