Skip to content

Commit 4606bbc

Browse files
author
Stanislav Lysikov
committed
fix description and add arguments to readme
1 parent 63eb579 commit 4606bbc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ command | None | A list of commands to be sent. i.e. ["echo","ok"]
185185
arguments | None | A list of arguments to be sent to the docker image.
186186
image | None | An image to use. (Overrides the main pod image)
187187
namespace | None | A namespace to use (Overrides/adds a namespace to main resource)
188+
name_prefix | task_id | The kubernetes resource(s) name prefix
189+
name_postfix | None | The kuberntes resource(s) name postfix
190+
random_name_postfix_length | 8 | Add a random string to all kuberntes resource(s) names if > 0
188191
envs | None | A dictionary of envs to add to the main job pod.
189192
body | None | The body of the job to use. Can be string, dictionary.
190193
body_filepath | None | A filepath to the yaml config file. Can use a relative filepath.

airflow_kubernetes_job_operator/kubernetes_job_operator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def __init__(
9292
arguments (List[str], optional): The kubernetes pod arguments. Defaults to None.
9393
image (str, optional): The kubernetes container image to use. Defaults to None.
9494
name_prefix (str, optional): The kubernetes resource(s) name prefix. Defaults to (corrected) task_id.
95-
name_postfix (str, optional): The postfix for all resource name. Defaults to None.
96-
random_name_postfix_length (int, optional): Add a random string to all resource names if > 0. Defaults to 8.
95+
name_postfix (str, optional): The kuberntes resource(s) name postfix. Defaults to None.
96+
random_name_postfix_length (int, optional): Add a random string to all kuberntes resource(s) names if > 0. Defaults to 8.
9797
namespace (str, optional): The kubernetes namespace to run in. Defaults to current namespace.
9898
envs (dict, optional): A dictionary of key value pairs that is loaded into the environment variables.
9999
Defaults to None.

0 commit comments

Comments
 (0)