Fix problems with local volumes to configmap

- make it possible to mount only one file as configmap
- remove "dots" from path to convert it to volume name
- see #11 that can be resolved
This commit is contained in:
2022-05-23 11:13:42 +02:00
parent 1e8fd44857
commit 63afc3066b
3 changed files with 22 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import (
)
// replaceChars replaces some chars in a string.
const replaceChars = `[^a-zA-Z0-9._]`
const replaceChars = `[^a-zA-Z0-9_]+`
// GetRelPath return the relative path from the root of the project.
func GetRelPath(path string) string {