Hi. ---- On Mon, 30 Jan 2017 10:04:35 +0100 Lionel Orellana <lione...@gmail.com> wrote ---- > Put another way, how can I create a secret from user input?
You will need to base64 encode the given string. echo -n 'pass'|base64 This value is then the SVN_PASSWORD what's the ouput of? oc process -f ... -p ... BR aleks--- Mit freundlichen Grüßen Aleksandar Lazic - ME2Digital e. U. https://me2digital.online/ UID-Nr.: ATU71765716 IBAN: AT27 1420 0200 1096 9086 Firmenbuch: 462678 i > On 30 January 2017 at 18:45, Lionel Orellana <lione...@gmail.com> wrote: > Hello > I'm trying to create a secret as part of a template but the value of the > secret should come from a parameter. Something like this: > { "kind": "Template", "apiVersion": "v1",... }, > "objects": [ > ... { "kind": "Secret", "apiVersion": "v1", > "metadata": { "name": "svn-pwd", > "creationTimestamp": null }, "stringData": { > "password": "${SVN_PASSWORD}" } } ], > "parameters": [ { "name": "SVN_PASSWORD", "value": "", > "description": "Will be stored as a secret", "required": true } ]} > > The secret is getting created but it's not resolving the parameter value > (i.e. the value is literally ${SVN_PASSWORD}). > Is there a way to resolve the template parameter in the secret definition? > Thanks > > > _______________________________________________ > users mailing list > users@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > _______________________________________________ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users