<p>When installing Kong with Helm through ArgoCD the installation fails, because ArgoCD can only run <code>helm upgrade</code>. So the step initialising the Database is not run, resulting in the pre_migration pod to fail.</p>
<p>The docs statet that i can &quot;Annotate pre-install and post-install with hook-weight: &quot;-1&quot;. This will make sure it runs to success before any upgrade hooks.&quot; How do i correctly annotate this?</p>
<p>I tried adding:</p>
<pre><code>helm.sh/hook = pre-install
helm.sh/hook = weight: -1
</code></pre>
<p>To the app's configuration using UI in Annotation field. This change is strangely not reflected in manifest.yaml and also not working.</p>
<p>So how do I ensure that ArgoCD runs the pre-install steps of a helm chart beforehand?</p>

Pierre
<p>This probably works</p>
<pre><code>annotations:
  helm.sh/hook: pre-install
  helm.sh/hook-weight: '-1'
</code></pre>
