vandonr-amz commented on code in PR #31191:
URL: https://github.com/apache/airflow/pull/31191#discussion_r1191403195


##########
tests/system/providers/amazon/aws/example_eks_with_nodegroup_in_one_step.py:
##########
@@ -116,13 +116,15 @@ def delete_launch_template(template_name: str):
 
     describe_pod = BashOperator(
         task_id="describe_pod",
-        bash_command=""
-        # using reinstall option so that it doesn't fail if already present
-        "install_aws.sh --reinstall " "&& install_kubectl.sh --reinstall "
-        # configure kubectl to hit the cluster created
-        f"&& aws eks update-kubeconfig --name {cluster_name} "
-        # once all this setup is done, actually describe the pod
-        "&& kubectl describe pod {{ ti.xcom_pull(key='pod_name', 
task_ids='run_pod') }}",
+        bash_command=f"""
+            install_aws.sh || true;
+            install_kubectl.sh || true;
+            # configure kubectl to hit the cluster created
+            aws eks update-kubeconfig --name {cluster_name};
+            # once all this setup is done, actually describe the pod
+            echo "vvv pod description below vvv";
+            kubectl describe pod {{{{ ti.xcom_pull(key='pod_name', 
task_ids='run_pod') }}}};
+            echo "^^^ pod description above ^^^" """,

Review Comment:
   yeah, I was thinking about making it a script, but I'm not really sure if it 
would be accessible from how we run system tests ?
   I was also thinking about putting it in `utils` ? We already have 
`utils/ec2.py`, I could put this in `utils/k8s.py` ? Thoughts ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to