<p>how can I disable secret creating for elasticsearch? I'm using deployment with Kind: ElasticSearch and I want to use my own password but elastic is still recreating k8s password like elastic: password with name xyz-elastic-user. Is it possible to disable it? I found <a href="https://github.com/elastic/helm-charts/blob/main/elasticsearch/values.yaml#L60" rel="nofollow noreferrer">https://github.com/elastic/helm-charts/blob/main/elasticsearch/values.yaml#L60</a> but it doesn't work</p>

diablo296
<p>you can set custom password through <code>env</code> if you do not want to use the auto-generated one.</p>
<pre><code>extraEnvs:
  - name: ELASTIC_PASSWORD
    value: my-passs
</code></pre>
<p><a href="https://github.com/elastic/helm-charts/blob/main/elasticsearch/values.yaml#L47" rel="nofollow noreferrer">extraEnvs</a></p>
<p>make sure to set <code>secret</code> false.</p>
<pre><code>secret:
  enabled: false
</code></pre>
