Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secrets as SparkCluster environment variables #309

Open
windmark opened this issue Sep 30, 2020 · 0 comments
Open

Secrets as SparkCluster environment variables #309

windmark opened this issue Sep 30, 2020 · 0 comments

Comments

@windmark
Copy link

windmark commented Sep 30, 2020

Description:

I'm using the SparkCluster to connect to sensitive systems and I'm trying to pass a secret reference as the environment variable value. Is this a supported feature and I'm simply doing something wrong in my configuration? Although it seems like the CRD schema definition doesn't include it. If not supported, is there any limitations preventing this feature in general?

Steps to reproduce:

Creating a SparkCluster with the following settings

apiVersion: radanalytics.io/v1
kind: SparkCluster
metadata:
  name: spark-cluster
spec:
  env:
    - name: USER
      value: test
    - name: PASSWORD
      valueFrom:
        secretKeyRef:
          name: password-secret-name
          key: password

results in an environment variable without a value

apiVersion: radanalytics.io/v1
kind: Pod
metadata:
  name: spark-cluster-X
spec:
  containers:
    - resources:
      env:
        - name: USER
          value: test
        - name: PASSWORD

I expect the env value reference to the password-secret-name to be in place also for the cluster pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant