-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Render a pod spec using the pod_template_file override, if passed to the executor
#46374
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
Conversation
562f04f to
01bb5ab
Compare
pod_template_file override, if passed to the executor
8d34bab to
1f71b35
Compare
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good to me but I'd love others (@hussein-awala ?) to take a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about updating the documentation? Like in pod_override here.
providers/src/airflow/providers/cncf/kubernetes/template_rendering.py
Outdated
Show resolved
Hide resolved
dba7c1d to
b3ba3ef
Compare
The documentation is actually quite good there! I did add a mention related to the non default |
…the executor If a task was created by a custom `executor_options['pod_template_file']` option, we make sure to render the `TaskInstance`'s associated `k8s_pod_spec` with this specific `pod_template_file`, to avoid seeing discrepancies between the spec visible in airflow and the one deployed to Kubernetes. Signed-off-by: Balthazar Rouberol <brouberol@wikimedia.org>
b3ba3ef to
183fe66
Compare
…sed to the executor (apache#46374) If a task was created by a custom `executor_options['pod_template_file']` option, we make sure to render the `TaskInstance`'s associated `k8s_pod_spec` with this specific `pod_template_file`, to avoid seeing discrepancies between the spec visible in airflow and the one deployed to Kubernetes. Signed-off-by: Balthazar Rouberol <brouberol@wikimedia.org>
…sed to the executor (apache#46374) If a task was created by a custom `executor_options['pod_template_file']` option, we make sure to render the `TaskInstance`'s associated `k8s_pod_spec` with this specific `pod_template_file`, to avoid seeing discrepancies between the spec visible in airflow and the one deployed to Kubernetes. Signed-off-by: Balthazar Rouberol <brouberol@wikimedia.org>
This will give us the k8s pod spec fix we sent in apache/airflow#46374. Signed-off-by: Balthazar Rouberol <brouberol@wikimedia.org> Bug: T388378 Change-Id: I97f66eb0ac879a5bbdb297730e11f8fc66a094a1
If a task was created by a custom
executor_options['pod_template_file']option, we make sure to render theTaskInstance's associatedk8s_pod_specwith this specificpod_template_file, to avoid seeing discrepancies between the spec visible in airflow and the one deployed to Kubernetes.After having deployed this patch to my test instance running in our Kubernetes cluster, the 2 fields that were missing from the
K8s Pod Specpane were now visible (namely, thekubeapi_enabledlabel in the following screenshot).closes: #46373