public String configMapNameDriver() {
    return KubernetesClientUtils.configMapName(String.format("%s-spark-drv", resourceNamePrefix()));
  }
@Test
  void testConfigMapNameDriver() {
    SparkConf sparkConf = new SparkConf();
    sparkConf.set("foo", "bar");
    sparkConf.set("spark.executor.instances", "1");
    String appId = RandomStringUtils.randomAlphabetic(1000);
    SparkAppDriverConf sparkAppDriverConf =
        SparkAppDriverConf.create(
            sparkConf, appId, mock(JavaMainAppResource.class), "foo", null, Option.empty());
    String configMapNameDriver = sparkAppDriverConf.configMapNameDriver();
    assertTrue(
        configMapNameDriver.length() <= 253,
        "config map name length should always comply k8s DNS subdomain length");
  }