shinyproxy-operator
shinyproxy-operator copied to clipboard
How to have custom environment variables forwarded to ShinyProxy ?
Hello,
Thanks a lot for you great work with ShinyProxy and this Kubernetes Operator.
The documentation of ShinyProxy says that it is possible to fill some configurations keys with environment variables https://www.shinyproxy.io/documentation/configuration/#config-env-var
This is usefull for many usecases, but I can't figure out how to acheive this with the Operator ?
My usecase would be to get the configuration of many fields out of the application.yaml files, with a particular consideration for the spec.proxy.openid.client-secret field.
So I would like to be able to set the PROXY_OPENID_CLIENT_SECRET environment variables of each of my shinyproxy instances.
This is because I don't want to have theses fields versioned in my Git repositories, nor being spread within my CI/CD pipelines.
The best option for me would be to use a real secret, and inject-it whitin the shinyproxy deployement, but as this deployment is handled by the Operator I can't figure out how to acheive this.
Maybe by adding extra code in the PodTemplateSpecFactory.tk and with the shinyproxy-operator.yaml file with an envFrom attribute ?
Or is there any other options ?