More postgres fixes
This commit is contained in:
		
							parent
							
								
									421fde816a
								
							
						
					
					
						commit
						95f1d26d94
					
				
					 4 changed files with 19 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -64,9 +64,12 @@ spec:
 | 
			
		|||
              valueFrom:
 | 
			
		||||
                fieldRef:
 | 
			
		||||
                  fieldPath: status.podIP
 | 
			
		||||
{{- if .Values.env.secret.DATABASE_URL }}
 | 
			
		||||
            - name: DATABASE_URL
 | 
			
		||||
              value: {{ .Values.env.secret.DATABASE_URL }}
 | 
			
		||||
{{- if .Values.postgresql.enabled }}
 | 
			
		||||
            - name: DATABASE_PASSWORD
 | 
			
		||||
              valueFrom:
 | 
			
		||||
                secretKeyRef:
 | 
			
		||||
                  name: {{ include "django.postgresql.fullname" . }}
 | 
			
		||||
                  key: postgres-password
 | 
			
		||||
{{- end }}
 | 
			
		||||
          envFrom:
 | 
			
		||||
            - secretRef:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
{{- if or (and .Values.web.autoscaling.enabled (gt (.Values.web.autoscaling.minReplicas | int) 1)) (gt (.Values.web.replicaCount | int) 1) }}
 | 
			
		||||
{{- if .Values.web.budget -}}
 | 
			
		||||
{{- if .Values.web.budget.minAvailable -}}
 | 
			
		||||
apiVersion: policy/v1beta1
 | 
			
		||||
apiVersion: policy/v1
 | 
			
		||||
kind: PodDisruptionBudget
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ include "django.fullname" . }}-web
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue