-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate job not showing up in ArgoCD #107
Comments
It seams that ArgoCD doesn't understand
See here: |
Hello. I found a way to make this work using ArgoCD's built-in sync waves. I use Helm in Kustomize like this: apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openfga
helmCharts:
- name: openfga
repo: https://openfga.github.io/helm-charts
version: 0.2.3
releaseName: openfga
namespace: openfga
valuesFile: values.yaml And the full helm values: replicaCount: 1
datastore:
engine: postgres
uriSecret: pg-uri
serviceAccount: # Requires existing before the migrations job
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/sync-wave: "-2"
migrate:
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/sync-wave: "-1" For reference I'm using CNPG (postgres 14.11) as postgres operator and external-secrets-operator to create a shared secret for the pg username, password and uri. |
This helps me only partly. The migration jobs seems to be running to completion but the pod will not start cause it does not notice that the migration job is complete. |
There is an issue with OpenFGA helm chart when it's used with ArgoCD.
Migrate job doesn't show up on ArgoCD and is not created by ArgoCD.
This is due to the default
helm hooks
in place in the migrate job defined in the default values.yaml of this helm charts:https://github.com/openfga/helm-charts/blob/main/charts/openfga/values.yaml#L269-L271
The current workaround is to disable them like this in one of your child charts:
Could we remove them ?
The text was updated successfully, but these errors were encountered: