KubernetesExecutor broken with Airflow 1.10.1 + Airflow operator
barney-s opened this issue · 5 comments
barney-s commented
Open Issues:
- In 1.10.1 release of Airflow, the AirflowExecutor hardcodes the dag source to /tmp/dags for gitsync. With latest master hardcoding is removed. But latest master is not stable.
- Airflow operator does not create/set the configmap for k8sexecutor config section.
jcunhasilva commented
@barney-s is there any updates on this issue?
I tried using the KubernetesExecutor but I'm getting git authentication issues in the worker pods.
The worker pod has an init container to clone the git repo but the authentication details are missing:
initContainers:
- env:
- name: GIT_SYNC_REPO
value: https://github.com/MyOrg/my-repo.git
- name: GIT_SYNC_BRANCH
value: MY_BRANCH
- name: GIT_SYNC_ROOT
value: /tmp
- name: GIT_SYNC_DEST
value: dags
- name: GIT_SYNC_ONE_TIME
value: "true"
image: gcr.io/google-containers/git-sync-amd64:v2.0.5
I tried looking at the code and see where this is defined but I can't seem to find it.
barney-s commented
Ack. Will investigate and update.
dimberman commented
@barni a lot of the issues got solved in 1.10.2. would probably be easier
just upgrade the version
…On Fri, Jan 25, 2019, 11:29 AM barney-s ***@***.***> wrote:
Ack. Will investigate and update.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AChYgjceNQODtechz11lqjBFbdEF0GMJks5vG1sYgaJpZM4ZTDe5>
.
barney-s commented
@dimberman thanks. used the GIT_DAGS_FOLDER_MOUNT_POINT config and matched the GIT_SYNC_DEST to fix this.
@jcunhasilva This is fixed FYI