From cf867dbd1b4043806ce61f9f5747c04574aee85e Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Mon, 5 Jan 2026 16:13:45 +0100 Subject: [PATCH 1/2] Fixed litellm installation order --- CHANGELOG.md | 3 ++- applications/litellm/litellm-values.yaml | 3 ++- applications/litellm/templates/database.yaml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ed947..37e010f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ See [keep a changelog] for information about writing changes to this log. ## [Unreleased] -* Extracted repoUrl in argo-cd-resources to values.yaml for easier configuration +* Added ArgoCD sync waves to LiteLLM to fix database migration timing +* Extracted repoUrl in argo-cd-resources to values.yaml for easier configuration * Added configuration for the OIDC patch (disabled by default) * Update docker image with the AAK OIDC patch diff --git a/applications/litellm/litellm-values.yaml b/applications/litellm/litellm-values.yaml index 3cce1a2..bb4258e 100644 --- a/applications/litellm/litellm-values.yaml +++ b/applications/litellm/litellm-values.yaml @@ -187,7 +187,8 @@ litellm: retries: 3 # Number of retries for the Job in case of failure backoffLimit: 4 # Backoff limit for Job restarts disableSchemaUpdate: false # Skip schema migrations for specific environments. When True, the job will exit with code 0. - annotations: {} + annotations: + argocd.argoproj.io/sync-wave: "1" ttlSecondsAfterFinished: 120 extraContainers: [] diff --git a/applications/litellm/templates/database.yaml b/applications/litellm/templates/database.yaml index a6c5a90..3405cd9 100644 --- a/applications/litellm/templates/database.yaml +++ b/applications/litellm/templates/database.yaml @@ -2,6 +2,8 @@ apiVersion: postgresql.cnpg.io/v1 kind: Database metadata: name: litellm + annotations: + argocd.argoproj.io/sync-wave: "-1" spec: name: litellm owner: litellm From 952b67535f209528fc75c43b6e0e8fec3fbf41f3 Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Tue, 6 Jan 2026 09:16:01 +0100 Subject: [PATCH 2/2] Ensudred argo repoUrl works --- applications/argo-cd-resources/templates/applications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/argo-cd-resources/templates/applications.yaml b/applications/argo-cd-resources/templates/applications.yaml index c2a321e..71037a0 100644 --- a/applications/argo-cd-resources/templates/applications.yaml +++ b/applications/argo-cd-resources/templates/applications.yaml @@ -8,7 +8,7 @@ metadata: spec: project: {{ .project }} source: - repoURL: {{ .Values.repoUrl }} + repoURL: {{ $.Values.repoUrl }} path: applications/{{ .path | default .name }} targetRevision: HEAD helm: