Commit d3c9aa1a authored by one_jh's avatar one_jh
Browse files

Update passfail.py

parent 7cceec8b
...@@ -22,27 +22,27 @@ dag = DAG( ...@@ -22,27 +22,27 @@ dag = DAG(
start = DummyOperator(task_id='run_this_first', dag=dag) start = DummyOperator(task_id='run_this_first', dag=dag)
passing = KubernetesPodOperator(namespace='default', # passing = KubernetesPodOperator(namespace='default',
image="Python:3.6", # image="Python:3.6",
cmds=["Python","-c"], # cmds=["Python","-c"],
arguments=["print('hello world')"], # arguments=["print('hello world')"],
labels={"foo": "bar"}, # labels={"foo": "bar"},
name="passing-test", # name="passing-test",
task_id="passing-task", # task_id="passing-task",
get_logs=True, # get_logs=True,
dag=dag # dag=dag
) # )
failing = KubernetesPodOperator(namespace='default', # failing = KubernetesPodOperator(namespace='default',
image="ubuntu:1604", # image="ubuntu:1604",
cmds=["Python","-c"], # cmds=["Python","-c"],
arguments=["print('hello world')"], # arguments=["print('hello world')"],
labels={"foo": "bar"}, # labels={"foo": "bar"},
name="fail", # name="fail",
task_id="failing-task", # task_id="failing-task",
get_logs=True, # get_logs=True,
dag=dag # dag=dag
) # )
templated_command = """ templated_command = """
kubectl get pods 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