fix: correct kustomize root path check

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-23 18:40:43 -04:00
1 parent d0ffd7d9f9
commit fd6e56cc5f
2 files changed
+14 -9

No files matched your search

+3 -4
View File
@@ -63,8 +63,7 @@ func TriggerCorePostExtract(appName string, sourceWorkDir string) error {
return nil
}
directory := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "scheduler-k3s", appName)
existingKustomizeDirectory := filepath.Join(directory, "kustomization")
existingKustomizeDirectory := getKustomizeDirectory(appName)
files, err := filepath.Glob(fmt.Sprintf("%s.*", existingKustomizeDirectory))
if err != nil {
return err
@@ -75,7 +74,7 @@ func TriggerCorePostExtract(appName string, sourceWorkDir string) error {
}
}
processSpecificKustomizeRootPath := fmt.Sprintf("%s.%s", kustomizeRootPath, os.Getenv("DOKKU_PID"))
processSpecificKustomizeRootPath := fmt.Sprintf("%s.%s", existingKustomizeDirectory, os.Getenv("DOKKU_PID"))
results, _ := common.CallPlugnTrigger(common.PlugnTriggerInput{
Trigger: "git-get-property",
Args: []string{appName, "source-image"},
@@ -785,7 +784,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
}
kustomizeRootPath := ""
if hasKustomizeRootPath(appName) {
if hasKustomizeDirectory(appName) {
kustomizeRootPath = getProcessSpecificKustomizeRootPath(appName)
}