Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA Cert Suffix without release name #560

Open
flashpixx opened this issue Dec 12, 2024 · 0 comments
Open

CA Cert Suffix without release name #560

flashpixx opened this issue Dec 12, 2024 · 0 comments

Comments

@flashpixx
Copy link

Describe the bug
On the services TPL files withe CA cert secretName is defined with

secretName: "{{ .Release.Name }}-{{ .Values.tls.ca_suffix }}"

(see), in my deployment the Release.Name is not used for the CA Secret, but the services expectd the name everytime, so in this case, the container does not find the ca secret.

To Reproduce

  1. create a ca secret e.g. "foobar" (without release name prefix)
  2. deploy the helm chart and set the values with
    nameOverride: pulsar
    fullnameOverride: pulsar
    broker:
     replicaCount: 1
    zookeeper:
     replicaCount: 1
    bookkeeper:
     replicaCount: 1
    proxy:
     replicaCount: 1
    tls:
     enabled: true
     ca_suffix: foobar
     broker:
       enabled: true
     zookeeper:
       enabled: true
     bookkeeper:
       enabled: true
     proxy:
       enabled: true
    
  3. on the e.g. pulsar-zookeeper-0 pod you can see the error message
    MountVolume.SetUp failed for volume "ca" : secret "release-name-foobar" not found
    

Expected behavior

three possibility solutions:

  1. behaviour as it is
  2. I can define free name of the ca without any release prefix

This bevaiour exists as well on all Pulsar components, Zookeeper, Bookie etc, so it should be consist on all services.

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant