apisix-helm-chart icon indicating copy to clipboard operation
apisix-helm-chart copied to clipboard

Setting admin.credentials.secretName sets the admin key to {{APISIX_ADMIN_KEY}}

Open bruceoutdoors opened this issue 2 years ago • 0 comments

I'm getting this with apisix helm chart 2.2.0 (as of this writing, this is the latest).

The API key is becomes {{APISIX_ADMIN_KEY}}. For example, this works:

❯ curl -L "http://apisix-admin.example.com/apisix/admin/routes?page=1&page_size=10" \
-H 'X-API-KEY: {{APISIX_ADMIN_KEY}}' -X GET

I can see the template is missing a single $ character in https://github.com/apache/apisix-helm-chart/blob/apisix-2.2.0/charts/apisix/templates/configmap.yaml#L323-L339 , but this seems to be already fixed in the master: https://github.com/apache/apisix-helm-chart/blob/c80568e/charts/apisix/templates/configmap.yaml#L331-L347

Can you release a new version of the chart with the fix?

bruceoutdoors avatar Sep 08 '23 08:09 bruceoutdoors