-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Render a pod spec using the pod_template_file
override, if passed to the executor
#46374
Conversation
562f04f
to
01bb5ab
Compare
pod_template_file
override, if passed to the executor
8d34bab
to
1f71b35
Compare
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 <[email protected]>
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 <[email protected]>
…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 <[email protected]>
If a task was created by a custom
executor_options['pod_template_file']
option, we make sure to render theTaskInstance
's associatedk8s_pod_spec
with 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 Spec
pane were now visible (namely, thekubeapi_enabled
label in the following screenshot).closes: #46373