<div dir="ltr">Great insight. Up to this point most users are </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 19, 2018 at 8:34 AM, Charles Moulliard <span dir="ltr"><<a href="mailto:cmoullia@redhat.com" target="_blank">cmoullia@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the info/clarification.<div><br></div><div>How can a dev project discover before to bind an app to a service what will be the env vars that the secret will mount ? Can we show such info using an oc command ?</div><div><div class="h5"><div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Jan 19, 2018 at 2:07 PM, Dylan Murray <span dir="ltr"><<a href="mailto:dymurray@redhat.com" target="_blank">dymurray@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Charles,<br><br>I think you might be confusing the bind credentials with the APB parameters. <a href="https://github.com/ansibleplaybookbundle/mysql-apb/blob/master/roles/rhscl-mysql-apb-openshift/tasks/main.yml#L79" target="_blank">https://github.com<wbr>/ansibleplaybookbundle/mysql-<wbr>apb/blob/master/roles/rhscl-<wbr>mysql-apb-openshift/tasks/<wbr>main.yml#L79</a> shows where the actual Bind credentials are set. If you would like those to be renamed you would need to fork the APB and publish your own version changing the name of these credentials. <br><br>Hope that helps,<br>Dylan</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-4762384257361813811h5">On Fri, Jan 19, 2018 at 5:17 AM, Charles Moulliard <span dir="ltr"><<a href="mailto:cmoullia@redhat.com" target="_blank">cmoullia@redhat.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-4762384257361813811h5"><div dir="ltr">Hi,<div><br></div><div>Is it possible to map or rename the env vars mounted within the pod of the application consuming a service as the current situation is not convenient ?</div><div><br></div><div>Example</div><div><br></div><div>- MySQL ClusterServiceClass will use these parameters as defined within the apb.yml file : <a href="https://goo.gl/HFrpSy" target="_blank">https://goo.gl/HFrpSy</a></div><div>- Then, if a serviceInstance is created, it will contain the same parameters but customized according to the user's choice: <a href="https://goo.gl/dXTZvA" target="_blank">https://goo.gl/dXTZvA</a></div><div><br></div><div><div>    mysql_database: "devel"</div><div>    mysql_password: "devel"</div><div>    mysql_user: "devel"</div></div><div><br></div><div>- But, when the secret is mounted as env var to the pod, then the parameters have been renamed to <br></div><div><br></div><div><div>export DB_NAME="devel"</div><div>export DB_PASSWORD="devel"</div><div>export DB_USER="devel"</div></div><div><br></div><div>Where such transformation take place ? Is it possible to define its own mapping ?</div><div><br></div><div>Regards</div><div><br></div><div><div><div class="m_-4762384257361813811m_-2794788042020853924m_1402677589457204969gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>CHARLES</span> <span>MOULLIARD</span></p><p style="margin:0px 0px 4px;text-transform:uppercase"><span>SOFTWARE ENGINEER MANAGER SPRING(BOOT)</span></p><p style="margin:0px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><p style="margin:0px 0px 6px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px"><a href="mailto:cmoulliard@redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">cmoulliard@redhat.com</a>   </span> <span>M: <a href="tel:+32-473-604014" style="color:rgb(0,136,206);font-size:11px;margin:0px" target="_blank">+32-473-604014</a>    </span></p><table border="0" style="font-size:medium"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a></td></tr></tbody></table><div><div style="color:rgb(153,153,153)"><a href="https://twitter.com/cmoulliard" title="twitter" style="background:url("https://www.redhat.com/files/brand/email/sm-twitter.png") 0px 50%/16px no-repeat transparent;height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px" target="_blank">@cmoulliard</a></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Ansible-service-broker mailing list<br>
<a href="mailto:Ansible-service-broker@redhat.com" target="_blank">Ansible-service-broker@redhat.<wbr>com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ansible-service-broker" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/ansible-service-brok<wbr>er</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>