Commit d3c9aa1a authored by one_jh's avatar one_jh
Browse files

Update passfail.py

parent 7cceec8b
......@@ -22,27 +22,27 @@ dag = DAG(
start = DummyOperator(task_id='run_this_first', dag=dag)
passing = KubernetesPodOperator(namespace='default',
image="Python:3.6",
cmds=["Python","-c"],
arguments=["print('hello world')"],
labels={"foo": "bar"},
name="passing-test",
task_id="passing-task",
get_logs=True,
dag=dag
)
failing = KubernetesPodOperator(namespace='default',
image="ubuntu:1604",
cmds=["Python","-c"],
arguments=["print('hello world')"],
labels={"foo": "bar"},
name="fail",
task_id="failing-task",
get_logs=True,
dag=dag
)
# passing = KubernetesPodOperator(namespace='default',
# image="Python:3.6",
# cmds=["Python","-c"],
# arguments=["print('hello world')"],
# labels={"foo": "bar"},
# name="passing-test",
# task_id="passing-task",
# get_logs=True,
# dag=dag
# )
# failing = KubernetesPodOperator(namespace='default',
# image="ubuntu:1604",
# cmds=["Python","-c"],
# arguments=["print('hello world')"],
# labels={"foo": "bar"},
# name="fail",
# task_id="failing-task",
# get_logs=True,
# dag=dag
# )
templated_command = """
kubectl get pods
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment