Add details and example for secrets
As discussed in Slack, this part lacked some information (at least for me). This should give some more hints to new users.
@@ -328,7 +328,8 @@ that the platform does not have an integration for yet,
Polyaxon provides a way to mount custom config maps and secrets for your runs.
To be able to mount a config map or secret in your jobs/builds/experiments,
-you need to create the config map/secret, and add it to you deployment config:
+you need to create the config map/secret in the namespace of your Polyaxon
+deployment and add it to you deployment config:
For example:
@@ -348,6 +349,17 @@ environment:
configmap_refs: ['configmap1', 'configmap3']
```
+Within your build/job/experiment the individual items of your secrets are then exposed
+as environment variables. As an example, requiring a secret with the following data section
+
+```yaml
+data:
+ test_user: <base64>
+ test_password: <base64>
+```
+
+would expose `test_user` and `test_password` environment values containing the decoded values.
+
## Custom resources
You can customize your container's resources, by providing a resources subsection to the environment's section:
