bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
9.03k stars 9.22k forks source link

[bitnami/wildfly] extraEnvVarsSecret not taken into account #30477

Open jdaln opened 3 days ago

jdaln commented 3 days ago

Name and Version

bitnami/wildfly 22.0.2

What architecture are you using?

None

What steps will reproduce the bug?

Default deployment with values.yaml below and the following secrets for testing (not base64 but kubernetes converts automatically for our testing):

apiVersion: v1
kind: Secret
metadata:
  name: wildfly-secret-envvars
  namespace: i2b2
type: Opaque
stringData:
  WILDFLY_PASSWORD: "3FeiW8945SDhksafeo@FG" 
  WILDFLY_USERNAME: admin

Are you using any custom parameters or values?

wildfly:
  nameOverride: "test-wildfly"
  logLevel: warn

  service:
    type: ingress

  extraEnvVarsSecret: "wildfly-secret-vars" <------ here

  ingress:
    ingressClassName: "nginx"
    pathType: Prefix
    hostname: wildfly.dev.example.com
    annotations:
      cert-manager.io/cluster-issuer: "letsencrypt-prod"
      nginx.ingress.kubernetes.io/proxy-body-size: "0"
    tls:
      - hosts:
        - wildfly.dev.example.com
        secretName: wildfly.dev.example.com-tls 

  mgmtIngress:
    ingressClassName: "nginx"
    pathType: Prefix
    hostname: mgmt.wildfly.dev.example.com
    annotations:
      cert-manager.io/cluster-issuer: "letsencrypt-prod"
      nginx.ingress.kubernetes.io/proxy-body-size: "0"
    tls:
      - hosts:
        - mgmt.wildfly.dev.example.com
        secretName: mgmt.wildfly.dev.example.com-tls  

What is the expected behavior?

I would expect extraEnvVarsSecret password and username to be taken into account

What do you see instead?

A password is generated as per default behavior and username is also default

Additional information

carrodher commented 2 days ago

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.