Skip to content

Commit

Permalink
Merge pull request #955 from ninjadq/fix_exporter_cert_issue_1_6
Browse files Browse the repository at this point in the history
Fix exporter cert issue #909 and #894
  • Loading branch information
ywk253100 authored May 24, 2021
2 parents 59f7275 + 984c0e5 commit d0b0f00
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/exporter/exporter-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,20 @@ spec:
{{- if .Values.caBundleSecretName }}
{{ include "harbor.caBundleVolumeMount" . | indent 8 }}
{{- end }}
{{- if .Values.internalTLS.enabled }}
- name: core-internal-certs
mountPath: /etc/harbor/ssl/core
# There are some metric data are collectd from harbor core.
# When internal TLS is enabled, the Exporter need the CA file to collect these data.
{{- end }}
volumes:
- name: config
secret:
secretName: "{{ template "harbor.exporter" . }}"
{{- if .Values.internalTLS.enabled }}
- name: exporter-internal-certs
- name: core-internal-certs
secret:
secretName: {{ template "harbor.internalTLS.exporter.secretName" . }}
secretName: {{ template "harbor.internalTLS.core.secretName" . }}
{{- end }}
{{- if .Values.caBundleSecretName }}
{{ include "harbor.caBundleVolume" . | indent 6 }}
Expand Down

0 comments on commit d0b0f00

Please sign in to comment.