NormalizeTemplatePath converts OS-specific path separators to forward slash. Helm engine's Render() returns map keys with forward slashes regardless of OS, so input paths must be normalized to match.
(p string)
| 73 | // Helm engine's Render() returns map keys with forward slashes regardless of OS, |
| 74 | // so input paths must be normalized to match. |
| 75 | func NormalizeTemplatePath(p string) string { |
| 76 | return filepath.ToSlash(p) |
| 77 | } |
| 78 | |
| 79 | // debugPhase is a unified debug function that prints debug information based on the given stage and context, |
| 80 | // then exits the program. |
no outgoing calls