SoftwareAG / webmethods-helm-charts

This repository contains a collection of Helm charts for various webMethods components.
https://open-source.softwareag.com/webmethods-helm-charts/
Apache License 2.0
8 stars 14 forks source link

API Gateway: Secret name is hard-coded in values.yaml #15

Closed thesse1 closed 7 months ago

thesse1 commented 7 months ago
  # -- secret for elasticsearch user. Will need to adjust the secret's name. By default the secret name is <releasename>-apigateway-sag-user-es.
  # Adjust accordingly if your release name is different. 
  extraEnvSecrets:
    ES_PASSWORD:
      secret: apigw-apigateway-sag-user-es
      key: password
    ES_USER:
      secret: apigw-apigateway-sag-user-es
      key: username

Isn't it possible to express the secret name dynamically based on the release name? Otherwise the user has to overwrite this value for every new release.

MarcFriedhoff commented 7 months ago

@thesse1 There is unfortunately no way of doing this as we are using the Chart from the prometheus community (without modification) - this expects simple values - we cannot use templating in our defaults here.

thesse1 commented 7 months ago

@MarcFriedhoff Then we should remove the release name from the name of the secret?