Hmm that might work but we need to modify templates, not sure all of clients want this feature. Again this UUID should be unique to each pod.
Also some pods might be created without using templates. Is there any other way?? -- Srinivas Kotaru From: Mateus Caruccio <[email protected]> Date: Tuesday, October 11, 2016 at 10:19 AM To: Srinivas Naga Kotaru <[email protected]> Cc: dev <[email protected]> Subject: Re: Container UUID Hi. You could use template parameters to generate a random value and use it into your contiainer template. In you template.parameters: - description: My unique UUID name: UNIQUE_UUID generate: expression from: '[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}' And then in your DC: spec: template: spec: containers: - env: - name: UNIQUE_UUID value: '${UNIQUE_UUID}' Hope it helps. -- Mateus Caruccio / Master of Puppets GetupCloud.com - Eliminamos a Gravidade On Tue, Oct 11, 2016 at 2:11 PM, Srinivas Naga Kotaru (skotaru) <[email protected]<mailto:[email protected]>> wrote: Hi Is there any way to put an environment variable which hold a unique UUID value per pod basis? If we put an environment variable at dc or rc level, same value propagating for all pods. That is expected behavior since all pods are creating using same template definition If we add environment variable at pod level, its life time is limited. Example: Want to put an environment variable like below UUID = FCAC382C-0CEB-40E4-9654-07715CDC9DD8 This UUID is unique to each pod. -- Srinivas Kotaru _______________________________________________ dev mailing list [email protected]<mailto:[email protected]> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
_______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
