<p>I am trying to do a helm upgrade dry run.</p>
<p>1.</p>
<pre class="lang-sh prettyprint-override"><code>helm upgrade -i $xyz-abc-ms xyz-abc-exe/target/classes/helm/xyz-abc \
--set jobs.helmServiceAccount=jenkins,csbEnabledLocal=false,jacoco.enabled=true,containerinfo.imageTag=${DOCKER_BUILD_NUMBER},pki.sslenabled=false,pki.kafkaEnabled=true,runtimeContainerInfo.image=fnd-base-images/ocp-os-java-msnext,couchbase.serviceName=oc-cb-02 \
--tiller-namespace=$(oc project -q) \
--namespace $(oc project -q) \
--debug \
--dry-run
</code></pre>
<p>But I get the error below:</p>
<p><code>Error: unknown flag: --tiller-namespace helm.go:81: [debug] unknown flag: --tiller-namespace</code></p>
<p>2.
I think <code>tiller-namespace</code> is removed from the Helm 3. So I tried the below:</p>
<pre class="lang-sh prettyprint-override"><code>helm upgrade -i $xyz-abc-ms xyz-abc-exe/target/classes/helm/xyz-abc \
--set jobs.helmServiceAccount=jenkins,csbEnabledLocal=false,jacoco.enabled=true,containerinfo.imageTag=${DOCKER_BUILD_NUMBER},pki.sslenabled=false,pki.kafkaEnabled=true,runtimeContainerInfo.image=fnd-base-images/ocp-os-java-msnext,couchbase.serviceName=oc-cb-02 \
--namespace $(oc project -q) \
--debug \
--dry-run
</code></pre>
<p>But now I am getting below error:
<code>Error: unknown shorthand flag: 'q' in -q) helm.go:81: [debug] unknown shorthand flag: 'q' in -q)</code></p>
<p>Can someone help me with the correct command here?</p>
<ol start="3">
<li>Wihtout <code>-q</code> when I try as below:</li>
</ol>
<pre class="lang-sh prettyprint-override"><code>helm upgrade -i $xyz-abc-ms xyz-abc-exe/target/classes/helm/xyz-abc \
--set jobs.helmServiceAccount=jenkins,csbEnabledLocal=false,jacoco.enabled=true,containerinfo.imageTag=${DOCKER_BUILD_NUMBER},pki.sslenabled=false,pki.kafkaEnabled=true,runtimeContainerInfo.image=fnd-base-images/ocp-os-java-msnext,couchbase.serviceName=oc-cb-02 ) \
--namespace $(oc project) \
--debug \
--dry-run
</code></pre>
<p>It fails with below Error:</p>
<pre><code>Error: &quot;helm upgrade&quot; requires 2 arguments

Usage:  helm upgrade [RELEASE] [CHART] [flags]
helm.go:81: [debug] &quot;helm upgrade&quot; requires 2 arguments
</code></pre>
<p>What's the proper command for this?</p>

Anjana Ouseph
<p>Yeah tiller is not even used by Helm 3.</p>
<p><a href="https://betterprogramming.pub/why-is-tiller-missing-in-helm-3-2347c446714" rel="nofollow noreferrer">This article</a> talks about why it was needed in Helm 2 and why they eventually removed it but if you want a very short summary, here it is:</p>
<p>Helm takes your yaml and template files and has to add the resulting objects to Kubernetes right? Tiller does that job but in order to be able to do that, it would need to have maximum permission. In Helm 3, they drop tiller and rely on the authorization that comes with Kubernetes.</p>
<p>Now let's go back to your problem. You should drop your <code>tiller-namespace</code> flag as you have already done. With regards to the <code>q</code> flag, you don't even use it with the helm upgrade command, seems like it's the <code>oc project -q</code> is the part that's failing?</p>
