title: Helm - Subchart dependent on other subchart
body: <p>I have a Parent chart with two sub-charts <code>subchart1</code> and <code>postgres</code> and there is a <code>pre-install</code> job in <code>subchart1</code> which creates necessary tables/schema's for <code>subchart1</code> service, where the job is in turn dependent on <code>postgres</code> sub-chart to be installed first, so when I install the parent chart with <code>pre-install</code> job hook, it fails because the <code>postgres</code> sub-chart is not installed yet.</p>
  
  <p>To overcome this problem I changed job from <code>pre-install</code> to <code>post-install or install</code>, used <code>initContainer</code> to wait until <code>postgres</code> sub-chart is installed before starting the job, </p>
  
  <p>the issue now I am facing is how to make sure the job is run  before installing the <code>subchart1</code> when doing an <code>subchart1</code> upgrade</p>
  
  <p>One way I can think of is have a <code>initContainer</code> in the <code>subchart1</code> to wait until the job is finished, how to notify <code>subchart1</code> that the job is finished</p>