Hi there, I am trying to se custom job variables o...
# ask-community
p
Hi there, I am trying to se custom job variables on Prefect UI. I am using Prefect v3.1.2 I´ve set a job template on a Kubernetes work pool. I have several workflows that need specific ENVs. I am trying to set this ENVs as a kubernetes secretes using the job variable below:
Copy code
{
  "envFrom": [
    {
      "secretRef": {
        "name": "download-doe-envs"
      }
    }
  ]
}
But it is not working. I mean, the k8s container created for this workflows does not reference this Secret. If a set the envs instead of secretRef k8s object it works
Copy code
{
  "env": {
    "EXECUTION_ENVIRONMENT": "staging",
    "MY_NOT_SO_SECRET_CONFIG": "plumbus"
  }
}
But i need to use the secret object (with dozens of envs). If I set this secret in the job template it work, but if I set it on the Prefect UI it does not. Any tips?