In order to be able to deploy SparkApplication relying on volumes, hadoopConfigMap, sparkConfigMap, init containers and so on we need to enable the spark-operator webhook which will mutate spark pods at creation
See for more details on what component are mutated on pods by the webhook: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/pkg/webhook/webhook.go#L539
- Add webhook
- Rely on cert-manager instead of gencert.sh mechanism
- Authorize access from API server to webhook
Done is
- webhook is enabled on spark operator and registered on K8S cluster
- spark pods are well mutated when adding hadoopConfigMap