Skip to content

Commit ce7c6ef

Browse files
committed
allow insecureSkipTlsVerify with certificates
1 parent 2e60c05 commit ce7c6ef

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

charts/kafka-exporter/templates/deployment.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ spec:
6666
- --tls.enabled
6767
{{- if .Values.kafkaExporter.tls.insecureSkipTlsVerify}}
6868
- --tls.insecure-skip-tls-verify
69-
{{- else }}
69+
{{- end }}
7070
- --tls.ca-file=/etc/tls-certs/ca-file
7171
- --tls.cert-file=/etc/tls-certs/cert-file
7272
- --tls.key-file=/etc/tls-certs/key-file
7373
{{- end }}
74-
{{- end }}
7574
{{- if .Values.kafkaExporter.log }}
7675
- --verbosity={{ .Values.kafkaExporter.log.verbosity }}
7776
{{- end }}
@@ -102,8 +101,7 @@ spec:
102101
periodSeconds: 15
103102
successThreshold: 1
104103
timeoutSeconds: 9
105-
106-
{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
104+
{{- if .Values.kafkaExporter.tls.enabled }}
107105
volumeMounts:
108106
- name: tls-certs
109107
mountPath: "/etc/tls-certs/"
@@ -124,7 +122,7 @@ spec:
124122
tolerations:
125123
{{- toYaml . | nindent 8 }}
126124
{{- end }}
127-
{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
125+
{{- if .Values.kafkaExporter.tls.enabled }}
128126
volumes:
129127
- name: tls-certs
130128
secret:

charts/kafka-exporter/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.kafkaExporter.tls.enabled (not .Values.kafkaExporter.tls.insecureSkipTlsVerify) }}
1+
{{- if .Values.kafkaExporter.tls.enabled }}
22
apiVersion: v1
33
kind: Secret
44
metadata:

0 commit comments

Comments
 (0)