Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 0ef937f

Browse files
author
Rey Abe
committed
remove camel case naming in kerberos secret names
The names are currently used when HadoopKerberosKeytabResolverStep tries to safe the kerberos delegation token into a kubernete secret. However, the current camel case values will cause a io.fabric8.kubernetes.client.KubernetesClientException stating the following: a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
1 parent a0117ea commit 0ef937f

File tree

1 file changed

+3
-3
lines changed
  • resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s

1 file changed

+3
-3
lines changed

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/constants.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ package object constants {
110110

111111
// Kerberos Configuration
112112
private[spark] val KERBEROS_DELEGEGATION_TOKEN_SECRET_NAME =
113-
"spark.kubernetes.kerberos.delegationTokenSecretName"
113+
"spark.kubernetes.kerberos.delegation-token-secret-name"
114114
private[spark] val KERBEROS_KEYTAB_SECRET_NAME =
115-
"spark.kubernetes.kerberos.keyTabSecretName"
115+
"spark.kubernetes.kerberos.key-tab-secret-name"
116116
private[spark] val KERBEROS_KEYTAB_SECRET_KEY =
117-
"spark.kubernetes.kerberos.keyTabSecretKey"
117+
"spark.kubernetes.kerberos.key-tab-secret-key"
118118
private[spark] val KERBEROS_SECRET_LABEL_PREFIX =
119119
"hadoop-tokens"
120120
private[spark] val SPARK_HADOOP_PREFIX = "spark.hadoop."

0 commit comments

Comments
 (0)