Skip to content

Commit

Permalink
add mount of extra secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Jul 11, 2024
1 parent b009f43 commit d295fa5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 7 additions & 15 deletions charts/logprep/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,10 @@ spec:
- name: output-config
mountPath: /home/logprep/output-config.yaml
subPath: output-config.yaml
{{- if .Values.secrets.certificates }}
- name: certificates
mountPath: /home/logprep/certificates/{{ .Values.secrets.certificates.name }}
{{- end }}
{{- if .Values.secrets.credentials }}
- name: credentials
mountPath: /home/logprep/credentials/{{ .Values.secrets.credentials.name }}
{{- range $key, $value := .Values.secrets }}
- name: {{ $key }}
mountPath: /home/logprep/{{ $key }}/{{ $value.name }}
subPath: {{ $value.name }}
{{- end }}
{{- if or .Values.exporter.enabled (eq .Values.input.type "http_input") }}
{{- if eq .Values.input.type "http_input" }}
Expand Down Expand Up @@ -168,15 +165,10 @@ spec:
configMap:
name: {{ include "logprep.fullname" . }}-artifacts
{{- end }}
{{- if .Values.secrets.certificates }}
- name: certificates
secret:
secretName: {{ .Values.secrets.certificates.name }}
{{- end }}
{{- if .Values.secrets.credentials }}
- name: credentials
{{- range $key, $value := .Values.secrets }}
- name: {{ $key }}
secret:
secretName: {{ .Values.secrets.credentials.name }}
secretName: {{ $value.name }}
{{- end }}
{{- if .Values.affinity }}
affinity:
Expand Down
2 changes: 2 additions & 0 deletions charts/logprep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ securityContext:
# Optional secrets that will be mounted into the pod
# Listed secrets are handled specially by the logprep deployment.
# Additional secrets will be mounted as usual.
# The key is the folder under /home/logprep and the value.name
# (which is the name of the external secret) will be the name of the mounted file.
# secrets:
# certificates:
# name: ca-cert # Name of the secret containing the ca certificate (or chain) in one data block
Expand Down

0 comments on commit d295fa5

Please sign in to comment.