Skip to content

Commit

Permalink
Remove types from KPO docstring (#21826)
Browse files Browse the repository at this point in the history
These are no longer the right types and now they are inferred correctly
anyways.
  • Loading branch information
jedcunningham committed Feb 25, 2022
1 parent e4ead2b commit a159ae8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class KubernetesPodOperator(BaseOperator):
The docker images's entrypoint is used if this is not provided.
:param arguments: arguments of the entrypoint. (templated)
The docker image's CMD is used if this is not provided.
:param ports: ports for launched pod.
:param volume_mounts: volumeMounts for launched pod.
:param volumes: volumes for launched pod. Includes ConfigMaps and PersistentVolumes.
:param ports: ports for the launched pod.
:param volume_mounts: volumeMounts for the launched pod.
:param volumes: volumes for the launched pod. Includes ConfigMaps and PersistentVolumes.
:param env_vars: Environment variables initialized in the container. (templated)
:param secrets: Kubernetes secrets to inject in the container.
They can be exposed as environment vars or files in a volume.
Expand All @@ -106,11 +106,8 @@ class KubernetesPodOperator(BaseOperator):
:param annotations: non-identifying metadata you can attach to the Pod.
Can be a large range of data, and can include characters
that are not permitted by labels.
:param resources: A dict containing resources requests and limits.
Possible keys are request_memory, request_cpu, limit_memory, limit_cpu,
and limit_gpu, which will be used to generate airflow.kubernetes.pod.Resources.
See also kubernetes.io/docs/concepts/configuration/manage-compute-resources-container
:param affinity: A dict containing a group of affinity scheduling rules.
:param resources: resources for the launched pod.
:param affinity: affinity scheduling rules for the launched pod.
:param config_file: The path to the Kubernetes config file. (templated)
If not specified, default value is ``~/.kube/config``
:param node_selector: A dict containing a group of scheduling rules.
Expand All @@ -136,7 +133,6 @@ class KubernetesPodOperator(BaseOperator):
:param priority_class_name: priority class name for the launched Pod
:param termination_grace_period: Termination grace period if task killed in UI,
defaults to kubernetes default
"""

BASE_CONTAINER_NAME = 'base'
Expand Down

0 comments on commit a159ae8

Please sign in to comment.