uranusjr commented on a change in pull request #17408:
URL: https://github.com/apache/airflow/pull/17408#discussion_r686507785



##########
File path: airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py
##########
@@ -67,11 +67,12 @@ def __init__(
     def execute(self, context):
         self.log.info("Creating sparkApplication")
         hook = KubernetesHook(conn_id=self.kubernetes_conn_id)
-        response = hook.create_custom_object(
-            group=self.api_group,
-            version=self.api_version,
-            plural="sparkapplications",
-            body=self.application_file,
-            namespace=self.namespace,
-        )
-        return response
+        with open(self.application_file, 'r', encoding='utf-8') as app_file:

Review comment:
       The `r` part is not technically needed, but this is also fine.




-- 
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