Skip to content

[bitnami/mongodb] Mongodb Replicaset existingSecrets doesn't work with cert-manager #16341

@rrileyca

Description

@rrileyca

Name and Version

bitnami/mongodb 13.9.4

What architecture are you using?

amd64

What steps will reproduce the bug?

When setting values.yaml with the following values:

tls:
  enabled: true
  autoGenerated: false
  replicaset:
    existingSecrets:
      - mongodb-tls-0
      - mongodb-tls-1
      - mongodb-tls-2

Each secret must have a field ca.crt, as documented in the values.yaml comment. However, the Jetstack cert-manager (arguably a very common if not "standard" kubernetes application) does not produce such a field. Without the ability to inject the field manually in the helm chart, there is no integration capability out of the box.

Are you using any custom parameters or values?

values:

tls:
  enabled: true
  autoGenerated: false
  replicaset:
    existingSecrets:
      - mongodb-tls-0
      - mongodb-tls-1
      - mongodb-tls-2

What is the expected behavior?

Either the helm chart can deploy without a ca.crt, or it would provide a way to inject one.

What do you see instead?

The Pods fail to Init.

Running the command:

kubectl logs mongodb-0 -n mongodb -c generate-tls-certs 

I see the output:

cp: cannot stat '/certs-0/ca.crt': No such file or directory
chmod: cannot access '/certs/mongodb-ca-cert': No such file or directory

Additional information

No response

Metadata

Metadata

Assignees

Labels

mongodbon-holdIssues or Pull Requests with this label will never be considered staletech-issuesThe user has a technical issue about an application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions