refactor: move templating into pseudo-generated helm chart

The previous mechanism of constructing the helm chart was pretty obnoxious due to needing to have some things in the object and some in template files that were appended afterwards. This change simplifies that by using template files per type with minimal replacements.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-01-23 03:00:27 -05:00
1 parent 75539273e3
commit 2336063ca2
15 files changed
+752 -970

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ func CommandInitialize(taintScheduling bool) error {
}
common.LogInfo2Quiet("Updating traefik config")
contents, err := templates.ReadFile("templates/traefik-config.yaml")
contents, err := templates.ReadFile("templates/helm-config/traefik-config.yaml")
if err != nil {
return fmt.Errorf("Unable to read traefik config template: %w", err)
}