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/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: 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