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 9fa0959
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/kafka-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: kafka-exporter
version: 1.2.0
version: 1.3.0
home: https://github.com/abhishekjiitr/kafka-exporter-helm
maintainers:
- name: abhishekjiitr
Expand Down
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 9fa0959

Please sign in to comment.