Github user liyinan926 commented on the issue:

    https://github.com/apache/spark/pull/21317
  
    I think `TEST-SECRET.USERNAME` is not what users would want. For the 
example `secretKeyRef` below, a user would expect to have 
`TEST-SECRET_USERNAME=<...>` and `SECRET_PASSWORD=<...>`.
    
    ```
    env:
          - name: SECRET_USERNAME
            valueFrom:
              secretKeyRef:
                name: mysecret
                key: username
          - name: SECRET_PASSWORD
            valueFrom:
              secretKeyRef:
                name: mysecret
                key: password
    ```
    
    I think the format of the config property should be 
`spark.kubernetes.executor.secretKeyRef.ENV_NAME=name:key`, and `ENV_NAME` 
should be case sensitive. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to