layoaster commented on issue #19909:
URL: https://github.com/apache/superset/issues/19909#issuecomment-1146071087

   I'm also facing the same issue in version 0.6.1. I tried to pass secrets in 
two ways (`extraEnvRaw` and `envFromSecrets`) with no luck. The init job didn't 
pick them up:
   
   ```
   Containers:
     superset-init-db:
       Container ID:  
docker://a259a5e77e1a2dac05179fa4ef73afdb6f3db35174fcda57d041b7772d9147fc
       Image:         apache/superset:latest
       Image ID:      
docker-pullable://apache/superset@sha256:14a31801f5f2180a7198a36c7044d75a91fa7d383091375aeb4b6c69e2713d5a
       Port:          <none>
       Host Port:     <none>
       Command:
         /bin/sh
         -c
         . /app/pythonpath/superset_bootstrap.sh; . 
/app/pythonpath/superset_init.sh
       State:          Terminated
         Reason:       Completed
         Exit Code:    0
         Started:      Wed, 01 Jun 2022 09:12:54 +0100
         Finished:     Wed, 01 Jun 2022 09:13:03 +0100
       Ready:          False
       Restart Count:  0
       Environment Variables from:
         superset-env  Secret  Optional: false
       Environment:    <none>
   ```
   
   I can't understand what it's going on with the init-job template:
   
   ```yaml
   containers:
       - name: {{ template "superset.name" . }}-init-db
         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
         {{- if or .Values.extraEnv .Values.extraEnvRaw }}
         env:
           {{- range $key, $value := .Values.extraEnv }}
           - name: {{ $key | quote }}
             value: {{ $value | quote }}
           {{- end }}
           {{- if .Values.extraEnvRaw }}
           {{- toYaml .Values.extraEnvRaw | nindent 10 }}
           {{- end }}
         {{- end }}
         envFrom:
           - secretRef:
               name: {{ tpl .Values.envFromSecret . }}
           {{- range .Values.envFromSecrets }}
           - secretRef:
               name: {{ tpl . $ }}
           {{- end }}
   ```
   
   
   
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to