feat: extract kustomize directory from repo during deploys

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-23 18:40:43 -04:00
1 parent 1b4e02eb62
commit e0617b209d
4 files changed
+101 -1

No files matched your search

+13
View File
@@ -1494,6 +1494,19 @@ func getStartCommand(input StartCommandInput) (StartCommandOutput, error) {
}, nil
}
func hasKustomizeRootPath(appName string) bool {
kustomizeRootPath := getComputedKustomizeRootPath(appName)
if common.DirectoryExists(fmt.Sprintf("%s.%s.missing", kustomizeRootPath, os.Getenv("DOKKU_PID"))) {
return false
}
if common.DirectoryExists(fmt.Sprintf("%s.%s", kustomizeRootPath, os.Getenv("DOKKU_PID"))) {
return true
}
return common.DirectoryExists(kustomizeRootPath)
}
func installHelmCharts(ctx context.Context, clientset KubernetesClient, shouldInstall func(HelmChart) bool) error {
for _, repo := range HelmRepositories {
helmAgent, err := NewHelmAgent("default", DeployLogPrinter)