Skip to content

Commit

Permalink
Add additional env vars and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pboushy committed Jan 16, 2025
1 parent c6df27c commit 9f6e4a8
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions charts/fleet/templates/cron-vulnprocessing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,38 @@ spec:
value: "{{ .Values.database.tls.serverName }}"
{{- end }}
## END MYSQL SECTION
## BEGIN REDIS SECTION
- name: FLEET_REDIS_ADDRESS
value: "{{ .Values.cache.address }}"
- name: FLEET_REDIS_DATABASE
value: "{{ .Values.cache.database }}"
{{- if .Values.cache.usePassword }}
- name: FLEET_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ .Values.cache.secretName }}"
key: "{{ .Values.cache.passwordKey }}"
{{- end }}
## END REDIS SECTION
## APPEND ENVIRONMENT VARIABLES FROM VALUES
{{- range $key, $value := .Values.environments }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
## APPEND ENVIRONMENT VARIABLES FROM SECRETS/CMs
{{- range .Values.envsFrom }}
- name: {{ .name }}
valueFrom:
{{- if .valueFrom.configMapKeyRef }}
configMapKeyRef:
name: {{ .valueFrom.configMapKeyRef.name }}
key: {{ .valueFrom.configMapKeyRef.key }}
{{- else if .valueFrom.secretKeyRef }}
secretKeyRef:
name: {{ .valueFrom.secretKeyRef.name }}
key: {{ .valueFrom.secretKeyRef.key }}
{{- end }}
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -171,14 +203,14 @@ spec:
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}

0 comments on commit 9f6e4a8

Please sign in to comment.