feat: add the ability to specify a kustomize-root-path

This will default to `config/kustomize`, though may change to `.dokku/kustomize` in the future.
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-23 18:34:53 -04:00
1 parent e034421ea9
commit 5ae6c1c845
3 files changed
+34

No files matched your search

+17
View File
@@ -1190,6 +1190,23 @@ func getGlobalLetsencryptEmailStag() string {
return common.PropertyGetDefault("scheduler-k3s", "--global", "letsencrypt-email-stag", "")
}
func getKustomizeRootPath(appName string) string {
return common.PropertyGetDefault("scheduler-k3s", appName, "kustomize-root-path", "")
}
func getGlobalKustomizeRootPath() string {
return common.PropertyGetDefault("scheduler-k3s", "--global", "kustomize-root-path", "config/kustomize")
}
func getComputedKustomizeRootPath(appName string) string {
kustomizeRootPath := getKustomizeRootPath(appName)
if kustomizeRootPath == "" {
kustomizeRootPath = getGlobalKustomizeRootPath()
}
return kustomizeRootPath
}
func getNamespace(appName string) string {
return common.PropertyGetDefault("scheduler-k3s", appName, "namespace", "")
}