github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/httpconfig-secret.yaml (about)

     1  {{- if (include "thanos.createHttpConfigSecret" .) }}
     2  apiVersion: v1
     3  kind: Secret
     4  metadata:
     5    name: {{ include "common.names.fullname" . }}-http-config-secret
     6    namespace: {{ .Release.Namespace | quote }}
     7    labels: {{- include "common.labels.standard" . | nindent 4 }}
     8      {{- if .Values.commonLabels }}
     9      {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
    10      {{- end }}
    11  stringData:
    12    http-config.yml: |-
    13  {{- if .Values.httpConfig }}
    14      {{- include "common.tplvalues.render" (dict "value" .Values.httpConfig "context" $) | nindent 4 }}
    15  {{- else }}
    16      {{- if .Values.https.enabled }}
    17      tls_server_config:
    18        cert_file: /certs/{{ .Values.https.certFilename }}
    19        key_file: /certs/{{ .Values.https.keyFilename }}
    20        {{- if .Values.https.clientAuthType }}
    21        client_auth_type: {{ .Values.https.clientAuthType }}
    22        # CA certificate for client certificate authentication to the server.
    23        client_ca_file: /certs/{{ .Values.https.caFilename }}
    24        {{- end }}
    25      {{- end }}
    26      {{- if .Values.auth.basicAuthUsers }}
    27      basic_auth_users:
    28        {{- range $user, $password := .Values.auth.basicAuthUsers }}
    29        {{ $user }}: {{ (split ":" (htpasswd $user $password))._1 }}
    30        {{- end }}
    31      {{- end }}
    32  {{- end }}
    33  {{- end }}