title: Read secrets from file in Helm
body: <p>I've created some secrets and I'm trying to import the file in this way:</p>
  
  <pre><code>apiVersion: v1
  kind: Secret
  metadata:
    name: {{ template "amq.broker.fullname" . }}-tls
    labels:
      app: {{ template "amq.name" . }}
      chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
      component: "{{ .Values.broker.name }}"
      release: "{{ .Release.Name }}"
      heritage: "{{ .Release.Service }}"
  type: Opaque
  data:
  {{ (.Files.Glob "secrets/broker.ks").AsSecrets | indent 2 }}
  </code></pre>
  
  <p>The file is under the <code>secrets</code> dir. When I run the install, the <code>broker.ks</code> secret is not there. However the secret is under the <code>secrets</code> folder. Any idea?</p>
  
  <p>Here the dir struct</p>
  
  <pre><code>├── Chart.yaml
  ├── README.md
  ├── secrets
  │   ├── broker.ks
  │   ├── broker_cert
  │   ├── client.ks
  │   └── client.ts
  ├── templates
  │   ├── NOTES.txt
  │   ├── _helpers.tpl
  └── values.yaml
  </code></pre>