Attempt to make use of postgres helm chart without setting DATABASE_URL
This commit is contained in:
		
							parent
							
								
									fa7f7acd2b
								
							
						
					
					
						commit
						74f1ec9f6c
					
				
					 7 changed files with 62 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,10 @@ spec:
 | 
			
		|||
          env:
 | 
			
		||||
            - name: SERVER_ROLE
 | 
			
		||||
              value: "worker"
 | 
			
		||||
{{- if .Values.env.secret.DATABASE_URL }}
 | 
			
		||||
            - name: DATABASE_URL
 | 
			
		||||
              value: {{ .Values.env.secret.DATABASE_URL }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
          envFrom:
 | 
			
		||||
            - secretRef:
 | 
			
		||||
                name: {{ include "django.fullname" . }}
 | 
			
		||||
| 
						 | 
				
			
			@ -59,4 +63,4 @@ spec:
 | 
			
		|||
      tolerations:
 | 
			
		||||
        {{- toYaml . | nindent 8 }}
 | 
			
		||||
    {{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue