tls-secret.yaml 1011 B

123456789101112131415161718192021
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if and .Values.provisioning.enabled (regexFind "SSL" (upper .Values.listeners.client.protocol)) (not .Values.provisioning.auth.tls.passwordsSecret) }}
  6. apiVersion: v1
  7. kind: Secret
  8. metadata:
  9. name: {{ template "kafka.client.passwordsSecretName" . }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if .Values.commonAnnotations }}
  13. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  14. {{- end }}
  15. type: Opaque
  16. data:
  17. truststore-password: {{ default "" .Values.provisioning.auth.tls.keystorePassword | b64enc | quote }}
  18. keystore-password: {{ default "" .Values.provisioning.auth.tls.truststorePassword | b64enc | quote }}
  19. key-password: {{ default "" .Values.provisioning.auth.tls.keyPassword | b64enc | quote }}
  20. {{- end }}