Skip to content

Commit

Permalink
allow insecureSkipTlsVerify with certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
iFission committed Apr 2, 2024
1 parent 2e60c05 commit ce7c6ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions charts/kafka-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ spec:
- --tls.enabled
{{- if .Values.kafkaExporter.tls.insecureSkipTlsVerify}}
- --tls.insecure-skip-tls-verify
{{- else }}
{{- end }}
- --tls.ca-file=/etc/tls-certs/ca-file
- --tls.cert-file=/etc/tls-certs/cert-file
- --tls.key-file=/etc/tls-certs/key-file
{{- end }}
{{- end }}
{{- if .Values.kafkaExporter.log }}
- --verbosity={{ .Values.kafkaExporter.log.verbosity }}
{{- end }}
Expand Down Expand Up @@ -102,8 +101,7 @@ spec:
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 9

{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
{{- if .Values.kafkaExporter.tls.enabled }}
volumeMounts:
- name: tls-certs
mountPath: "/etc/tls-certs/"
Expand All @@ -124,7 +122,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
{{- if .Values.kafkaExporter.tls.enabled }}
volumes:
- name: tls-certs
secret:
Expand Down
2 changes: 1 addition & 1 deletion charts/kafka-exporter/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
{{- if .Values.kafkaExporter.tls.enabled }}
apiVersion: v1
kind: Secret
metadata:
Expand Down

0 comments on commit ce7c6ef

Please sign in to comment.