feat: Add extraEnvs to operator helm chart (#2671)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.io>
This commit is contained in:
		
							parent
							
								
									94d36327ba
								
							
						
					
					
						commit
						ce15d10aa3
					
				| 
						 | 
					@ -52,6 +52,9 @@ spec:
 | 
				
			||||||
      {{- if .Values.controllerID.create }}
 | 
					      {{- if .Values.controllerID.create }}
 | 
				
			||||||
        - name: CONTROLLER_ID
 | 
					        - name: CONTROLLER_ID
 | 
				
			||||||
          value: {{ template "postgres-operator.controllerID" . }}
 | 
					          value: {{ template "postgres-operator.controllerID" . }}
 | 
				
			||||||
 | 
					      {{- end }}
 | 
				
			||||||
 | 
					      {{- if .Values.extraEnvs }}
 | 
				
			||||||
 | 
					      {{- .Values.extraEnvs | toYaml | nindent 12 }}
 | 
				
			||||||
      {{- end }}
 | 
					      {{- end }}
 | 
				
			||||||
        resources:
 | 
					        resources:
 | 
				
			||||||
{{ toYaml .Values.resources | indent 10 }}
 | 
					{{ toYaml .Values.resources | indent 10 }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -504,6 +504,24 @@ readinessProbe:
 | 
				
			||||||
  initialDelaySeconds: 5
 | 
					  initialDelaySeconds: 5
 | 
				
			||||||
  periodSeconds: 10
 | 
					  periodSeconds: 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# configure extra environment variables
 | 
				
			||||||
 | 
					# Extra environment variables are writen in kubernetes format and added "as is" to the pod's env variables
 | 
				
			||||||
 | 
					# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
 | 
				
			||||||
 | 
					# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
 | 
				
			||||||
 | 
					extraEnvs:
 | 
				
			||||||
 | 
					  []
 | 
				
			||||||
 | 
					  # Exemple of settings maximum amount of memory / cpu that can be used by go process (to match resources.limits)
 | 
				
			||||||
 | 
					  # - name: MY_VAR
 | 
				
			||||||
 | 
					  #   value: my-value
 | 
				
			||||||
 | 
					  # - name: GOMAXPROCS
 | 
				
			||||||
 | 
					  #   valueFrom:
 | 
				
			||||||
 | 
					  #     resourceFieldRef:
 | 
				
			||||||
 | 
					  #       resource: limits.cpu
 | 
				
			||||||
 | 
					  # - name: GOMEMLIMIT
 | 
				
			||||||
 | 
					  #   valueFrom:
 | 
				
			||||||
 | 
					  #     resourceFieldRef:
 | 
				
			||||||
 | 
					  #       resource: limits.memory
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Affinity for pod assignment
 | 
					# Affinity for pod assignment
 | 
				
			||||||
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
				
			||||||
affinity: {}
 | 
					affinity: {}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue