Skip to content

Commit 7141c42

Browse files
authored
Make cluster_context templated (#33604)
1 parent 32feab4 commit 7141c42

File tree

1 file changed

+2
-1
lines changed
  • airflow/providers/cncf/kubernetes/operators

1 file changed

+2
-1
lines changed

airflow/providers/cncf/kubernetes/operators/pod.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class KubernetesPodOperator(BaseOperator):
173173
They can be exposed as environment vars or files in a volume.
174174
:param in_cluster: run kubernetes client with in_cluster configuration.
175175
:param cluster_context: context that points to kubernetes cluster.
176-
Ignored when in_cluster is True. If None, current-context is used.
176+
Ignored when in_cluster is True. If None, current-context is used. (templated)
177177
:param reattach_on_restart: if the worker dies while the pod is running, reattach and monitor
178178
during the next try. If False, always create a new pod for each try.
179179
:param labels: labels to apply to the Pod. (templated)
@@ -262,6 +262,7 @@ class KubernetesPodOperator(BaseOperator):
262262
"container_resources",
263263
"volumes",
264264
"volume_mounts",
265+
"cluster_context",
265266
)
266267
template_fields_renderers = {"env_vars": "py"}
267268

0 commit comments

Comments
 (0)