Skip to content

fix(ingress-controller): PodDisruptionBudget references undefined helpers - #372

Open
janiussyafiq wants to merge 1 commit into
api7:mainfrom
janiussyafiq:fix/ingress-controller-pdb-helpers
Open

fix(ingress-controller): PodDisruptionBudget references undefined helpers#372
janiussyafiq wants to merge 1 commit into
api7:mainfrom
janiussyafiq:fix/ingress-controller-pdb-helpers

Conversation

@janiussyafiq

@janiussyafiq janiussyafiq commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

charts/ingress-controller/templates/pdb.yaml includes api7-ingress-controller.{fullname,labels,selectorLabels}, but _helpers.tpl only defines the api7-ingress-controller-manager.* names. Enabling the PDB with more than one replica fails to render:

helm template t api7-ingress-controller --repo https://charts.api7.ai \
  --set podDisruptionBudget.enabled=true --set deployment.replicas=2
# Error: ... no template "api7-ingress-controller.fullname" associated with template "gotpl"

Use the defined api7-ingress-controller-manager.* helpers. The PDB selector now matches the Deployment's selector labels.

Bumps the chart to 0.1.27 (chart-only fix, appVersion stays 2.2.0), README regenerated with helm-docs v1.13.1.

Same defect as apache/apisix-helm-chart#946, fixed upstream by apache/apisix-helm-chart#968.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 4b4fdd9c-28f1-45d8-8dd6-2aaf844556cb


Comment @coderabbitai help to get the list of available commands.

@janiussyafiq
janiussyafiq force-pushed the fix/ingress-controller-pdb-helpers branch from 6910073 to 8e1807d Compare September 7, 2026 04:06
…pers

pdb.yaml includes api7-ingress-controller.{fullname,labels,selectorLabels},
but _helpers.tpl only defines the api7-ingress-controller-manager.* names,
so any release with podDisruptionBudget.enabled=true and more than one
replica fails to render:

  template: no template "api7-ingress-controller.fullname" associated with template "gotpl"

Use the defined helpers. The PDB selector now matches the Deployment's
selectorLabels. Bump the chart to 0.1.27 (chart-only fix,
appVersion unchanged).

Same defect as apache/apisix-helm-chart#946 / #968.
@janiussyafiq
janiussyafiq force-pushed the fix/ingress-controller-pdb-helpers branch from 8e1807d to faa00c5 Compare September 7, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants