Skip to content

Commit

Permalink
Add KubernetesPodOperat pod-template-file jinja template support (#…
Browse files Browse the repository at this point in the history
…15942)

This PR adds jinja template support for KubernetesPodOperator
pod-template-file.

fixes #15892
  • Loading branch information
Dr-Denzy authored May 20, 2021
1 parent fabe8a2 commit 85b2ccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class KubernetesPodOperator(BaseOperator): # pylint: disable=too-many-instance-
'pod_template_file',
)

template_ext = ('yaml', 'yml', 'json')

# fmt: off
def __init__( # pylint: disable=too-many-arguments,too-many-locals
# fmt: on
Expand Down

0 comments on commit 85b2ccb

Please sign in to comment.