Skip to content

Commit

Permalink
Remove redundant fully-qualified references for Constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzho committed May 2, 2024
1 parent aa52ad5 commit 1fb3061
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ private SparkPod addConfigMap(SparkPod pod, Map<String, String> confFilesMap) {
Container containerWithVolume =
new ContainerBuilder(pod.container())
.addNewEnv()
.withName(org.apache.spark.deploy.k8s.Constants.ENV_SPARK_CONF_DIR())
.withValue(org.apache.spark.deploy.k8s.Constants.SPARK_CONF_DIR_INTERNAL())
.withName(Constants.ENV_SPARK_CONF_DIR())
.withValue(Constants.SPARK_CONF_DIR_INTERNAL())
.endEnv()
.addNewVolumeMount()
.withName(org.apache.spark.deploy.k8s.Constants.SPARK_CONF_VOLUME_DRIVER())
.withMountPath(org.apache.spark.deploy.k8s.Constants.SPARK_CONF_DIR_INTERNAL())
.withName(Constants.SPARK_CONF_VOLUME_DRIVER())
.withMountPath(Constants.SPARK_CONF_DIR_INTERNAL())
.endVolumeMount()
.build();
Pod podWithVolume =
Expand Down

0 comments on commit 1fb3061

Please sign in to comment.