How do I mount a Secret or ConfigMap?

Each step in a Jenkins X Pipeline in the jenkins-x.yml file is basically a Container from kubernetes so you can specify the image, resource limits, environment variables and mount them from a ConfigMap or Secret

You can see an example of mounting a Secret to an environment variable here

If you are inside a shell script you can also use the jx step credential