Modify it to support cluster-mode with the ArmadaClientApplication, as done here: https://github.com/G-Research/spark/blob/8e90e55ba10d490a193d4290072b8f29f254e818/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L881-L882