How to add gitlab token for dag.gitsync on flux deployment? #807
Unanswered
LeducH
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
I'm trying to use a GitLab repository for my DAGs in Airflow.
Currently, I'm using a plain text token in the repository URL, which I feel isn't the best approach. However, I've encountered an issue: the DAGs aren't appearing or executing in the Airflow web interface as I expected.
I've gone through the documentation and noticed there are fields for HTTP that use a GitHub token. However, my setup is on GitLab. Here's the snippet of the configuration I'm referring to:
I also attempted to use a secrets file, as suggested in the documentation:
Unfortunately, this didn't resolve the issue either because I there was a problem with the injection.
I gave the token all the necessary access right and I am able to pull the repo as well.
Could someone kindly guide me on how to correctly set this up? Ideally, I'd like to avoid having the token as plain text in the URL. Perhaps injecting it using Kubernetes secrets?
For additional context, I'm deploying my instance with Flux on a K3s cluster. You can find all my configuration details further below.
Thanks in advance for your help and insights!
Beta Was this translation helpful? Give feedback.
All reactions