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:
3 files changed
+34
No files matched your search
@@ -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", "")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user