[Helm] base64 encode secrets
### Discussed in https://github.com/provectus/kafka-ui/discussions/2389

<div type='discussions-op-text'>

<sup>Originally posted by **cignul9** August  4, 2022</sup>
When using envs.secret to store...secrets the chart fails because values are not encoded in the template.  We can encode them beforehand, but that's not very user friendly.  Would you consider changing kafka-ui/charts/kafka-ui/templates/secret.yaml line 9 from 
```
  {{- toYaml .Values.envs.secret | nindent 2 }}
```
to
```
  {{- toYaml .Values.envs.secret | b64enc | nindent 2 }}
```
?</div>
charts/kafka-ui/Chart.yaml charts/kafka-ui/templates/secret.yaml
charts/kafka-ui/Chart.yaml charts/kafka-ui/templates/secret.yaml
diff --git a/charts/kafka-ui/Chart.yaml b/charts/kafka-ui/Chart.yaml
index 7eaff3c59aa..e0d9b0b1611 100644
--- a/charts/kafka-ui/Chart.yaml
+++ b/charts/kafka-ui/Chart.yaml
@@ -2,6 +2,6 @@ apiVersion: v2
 name: kafka-ui
 description: A Helm chart for kafka-UI
 type: application
-version: 0.4.2
+version: 0.4.3
 appVersion: latest
 icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png
diff --git a/charts/kafka-ui/templates/secret.yaml b/charts/kafka-ui/templates/secret.yaml
index a2ebf0fdba8..a2d1f25fa2f 100644
--- a/charts/kafka-ui/templates/secret.yaml
+++ b/charts/kafka-ui/templates/secret.yaml
@@ -6,4 +6,6 @@ metadata:
     {{- include "kafka-ui.labels" . | nindent 4 }}
 type: Opaque
 data:
-  {{- toYaml .Values.envs.secret | nindent 2 }}
\ No newline at end of file
+  {{- range $key, $val := .Values.envs.secret }}
+  {{ $key }}: {{ $val | b64enc | quote }}
+  {{- end -}}
