thanos-query extra TLS host contain duplicate

Summary

In our thanos unit definition:

  thanos:
    info:
      description: installs Thanos
      maturity: beta
    enabled_conditions:
      - '{{ tuple . "monitoring" | include "unit-enabled" }}'
    unit_templates:
    - base-deps
    depends_on:
      namespace-defs: true
      thanos-init: true
      minio-monitoring-tenant: true
      '{{ .Values._internal.default_storage_class_unit }}': true
      ingress-nginx: '{{ tuple . "ingress-nginx" | include "unit-enabled" }}'
    annotations:
      sylvactl/readyMessage: Thanos UI can be reached at https://{{ .Values.external_hostnames.thanos }} ({{ .Values.external_hostnames.thanos }} must resolve to {{ .Values.display_external_ip }})
    helm_repo_url: https://charts.bitnami.com/bitnami
    helmrelease_spec:
      targetNamespace: thanos
      install:
        createNamespace: false
      chart:
        spec:
          chart: thanos
          version: 12.23.2
      values:
        fullnameOverride: "thanos"
        metrics:
          enabled: true
          serviceMonitor:
            enabled: true
        query:
          enabled: true
          logLevel: debug
          dnsDiscovery:
            enabled: true
          extraFlags:
            - --query.auto-downsampling
            - --query.replica-label=prometheus_replica
            - --query.replica-label=prometheus
          ingress:
            enabled: true
            ingressClassName: "nginx"
            hostname: '{{ .Values.external_hostnames.thanos_query }}'
            extraTls:
              - hosts:
                  - 'thanos-query.{{ .Values.external_hostnames.thanos_query }}'
                secretName: thanos-tls
          containerSecurityContext:

the extraTLS hosts is defined like this:

            extraTls:
              - hosts:
                  - 'thanos-query.{{ .Values.external_hostnames.thanos_query }}'

which result in duplicate thanos-query

kubectl --kubeconfig management-cluster-kubeconfig get ingress -n thanos thanos-query -o jsonpath='{ .spec.tls[].hosts[] }'
thanos-query.thanos-query.sylva

our other units don't have this eg keycloak:

kubectl --kubeconfig management-cluster-kubeconfig  get ingress -n keycloak keycloak-ingress -o jsonpath='{ .spec.tls[].hosts[] }'
keycloak.sylva

is it something expected/required ?

related references

Details

Assignee Loading
Time tracking Loading