Added the declaration of resources in pre-install-job.yaml
This commit is contained in:
		
							parent
							
								
									0d5921af5e
								
							
						
					
					
						commit
						8f7dcc0a74
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,9 @@ spec:
 | 
			
		|||
      - name: pre-install-job
 | 
			
		||||
        image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
 | 
			
		||||
        imagePullPolicy: {{ .Values.image.pullPolicy }}
 | 
			
		||||
        {{- if .Values.preInstall.resources }}        
 | 
			
		||||
        resources: {{ toYaml .Values.preInstall.resources | nindent 12 }}
 | 
			
		||||
        {{- end }}
 | 
			
		||||
        command: ["./manage.py","migrate"]
 | 
			
		||||
        env:
 | 
			
		||||
          - name: DEBUG
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,10 @@ fullnameOverride: ""
 | 
			
		|||
preInstall:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  activeDeadlineSeconds: 900
 | 
			
		||||
  resources:
 | 
			
		||||
    limits: {}
 | 
			
		||||
    requests: {}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  normal: {}
 | 
			
		||||
| 
						 | 
				
			
			@ -190,3 +194,4 @@ postgresql:
 | 
			
		|||
  enabled: false
 | 
			
		||||
  #auth:
 | 
			
		||||
  #  postgresqlPassword: # Must be set
 | 
			
		||||
  
 | 
			
		||||
		Reference in a new issue