VMCluster: requestsLoadBalancer ignores spec.secrets and spec.configMaps

Aperta
#2,816 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@zasdaym ci sta già lavorando.

Dal 11/11/2026.

  • #2817 di @zasdaym — integrata

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug waiting for release
Describe the bug

VMCluster.spec.requestsLoadBalancer.spec accepts secrets and configMaps, but the operator doesn't mount them into the vmclusterlb-<name> vmauth pods. Other fields like extraArgs, volumes and volumeMounts works.

To Reproduce
  1. Create a Secret:
    kubectl create secret generic lb-secret --from-literal=key=value
    
  2. Create a VMCluster with requestsLoadBalancer enabled and the secret referenced:
    apiVersion: operator.victoriametrics.com/v1beta1
    kind: VMCluster
    metadata:
      name: demo
    spec:
      retentionPeriod: "1"
      vminsert:
        replicaCount: 1
      vmselect:
        replicaCount: 1
      vmstorage:
        replicaCount: 1
      requestsLoadBalancer:
        enabled: true
        spec:
          replicaCount: 1
          secrets:
            - lb-secret
    
  3. Check the volumes of the load balancer Deployment:
    kubectl get deploy vmclusterlb-demo -o jsonpath='{.spec.template.spec.volumes[*].name}'
    
  4. The output has only vmauth-lb-config. There is no volume for lb-secret, and /etc/vm/secrets/lb-secret does not exist in the pod.
Expected behavior

The operator mounts each entry of secrets at /etc/vm/secrets/<name> and each entry of configMaps at /etc/vm/configs/<name> in the vmauth container, as the field documentation says and as it does for vminsert, vmselect and vmstorage.

Version
  • vm-operator: v0.74.1
  • Kubernetes: any version
Lingua principale
Go
Stelle
603
Fork
242
Merge medio
1g 14h
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VictoriaMetrics/operator

Tutte le issue di VictoriaMetrics/operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.