You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "johannes-engler-mw (via GitHub)" <gi...@apache.org> on 2026/02/18 10:34:38 UTC
[I] Bug: pdb.yaml references undefined template helpers in apisix-ingress-controller (fails when HA is enabled) [apisix-helm-chart]
johannes-engler-mw opened a new issue, #946:
URL: https://github.com/apache/apisix-helm-chart/issues/946
### Summary
`charts/apisix-ingress-controller/templates/pdb.yaml` calls helper templates that are not defined in `_helpers.tpl`.
When all of the following are true:
- `ingress-controller.enabled=true`
- `ingress-controller.podDisruptionBudget.enabled=true`
- `ingress-controller.deployment.replicas>1` (or autoscaling min replicas > 1)
`helm template` fails with a hard error.
This is easy to miss because in `apisix` `2.13.0`, `ingress-controller.enabled` defaults to `false`.
### Affected versions
| Chart | Version |
|---|---|
| `apisix` (parent) | `2.13.0` |
| `apisix-ingress-controller` (dependency) | `1.1.1` |
### Steps to reproduce
```bash
helm template myrelease apisix \
--repo https://apache.github.io/apisix-helm-chart \
--version 2.13.0 \
--set ingress-controller.enabled=true \
--set ingress-controller.podDisruptionBudget.enabled=true \
--set ingress-controller.deployment.replicas=2
```
### Actual behavior
```text
Error: apisix/charts/ingress-controller/templates/pdb.yaml:25:11
executing "apisix/charts/ingress-controller/templates/pdb.yaml" at <include "apisix-ingress-controller.fullname" .>:
error calling include:
template: no template "apisix-ingress-controller.fullname" associated with template "gotpl"
```
### Expected behavior
A valid `PodDisruptionBudget` is rendered for the ingress-controller deployment.
### Root cause
`pdb.yaml` references these helper names:
- `apisix-ingress-controller.fullname`
- `apisix-ingress-controller.labels`
- `apisix-ingress-controller.selectorLabels`
But `_helpers.tpl` defines only:
- `apisix-ingress-controller-manager.name.fullname`
- `apisix-ingress-controller-manager.labels`
- `apisix-ingress-controller-manager.selectorLabels`
So the three names used by `pdb.yaml` are undefined.
### Suggested fix
In `charts/apisix-ingress-controller/templates/pdb.yaml`, replace:
| Current (broken) | Correct |
|---|---|
| `apisix-ingress-controller.fullname` | `apisix-ingress-controller-manager.name.fullname` |
| `apisix-ingress-controller.labels` | `apisix-ingress-controller-manager.labels` |
| `apisix-ingress-controller.selectorLabels` | `apisix-ingress-controller-manager.selectorLabels` |
After these replacements, `helm template` succeeds and the PDB renders as expected.
### Duplicate check
I checked existing issues in `apache/apisix-helm-chart` (open and closed) and did not find an issue for this exact helper-template mismatch / `gotpl` error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bug: pdb.yaml references undefined template helpers in apisix-ingress-controller (fails when HA is enabled) [apisix-helm-chart]
Posted by "AlinsRan (via GitHub)" <gi...@apache.org>.
AlinsRan closed issue #946: Bug: pdb.yaml references undefined template helpers in apisix-ingress-controller (fails when HA is enabled)
URL: https://github.com/apache/apisix-helm-chart/issues/946
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org