Skip to content

Commit

Permalink
Make cluster_context templated (apache#33604)
Browse files Browse the repository at this point in the history
  • Loading branch information
mati-o authored Aug 22, 2023
1 parent 32feab4 commit 7141c42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/providers/cncf/kubernetes/operators/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class KubernetesPodOperator(BaseOperator):
They can be exposed as environment vars or files in a volume.
:param in_cluster: run kubernetes client with in_cluster configuration.
:param cluster_context: context that points to kubernetes cluster.
Ignored when in_cluster is True. If None, current-context is used.
Ignored when in_cluster is True. If None, current-context is used. (templated)
:param reattach_on_restart: if the worker dies while the pod is running, reattach and monitor
during the next try. If False, always create a new pod for each try.
:param labels: labels to apply to the Pod. (templated)
Expand Down Expand Up @@ -262,6 +262,7 @@ class KubernetesPodOperator(BaseOperator):
"container_resources",
"volumes",
"volume_mounts",
"cluster_context",
)
template_fields_renderers = {"env_vars": "py"}

Expand Down

0 comments on commit 7141c42

Please sign in to comment.