apache / apache/apisix-helm-chart
Control Ingress Helm template references missing values.control.servicePort
- Dominant language
- Go Template
- Stars
- 289
- Forks
- 282
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 3
Description
**Issue Description**
The Control Ingress Helm template references {{ .Values.control.servicePort }}, but this value is not defined at the expected location in values.yaml.
In the template, the service port is assigned as:
```
helm:
{{- $svcPort := .Values.control.servicePort -}}
```
However, in values.yaml, servicePort is defined under control.service.servicePort instead of control.servicePort, as shown below:
```
values.yaml
control:
enabled: true
service:
annotations: {}
type: ClusterIP
externalIPs: []
ip: "127.0.0.1"
port: 9090
servicePort: 9090
```
**Actual Behavior**
• Helm fails to render the Control Ingress template because .Values.control.servicePort is not defined.
```
Error: UPGRADE FAILED: failed to create resource: Ingress.networking.k8s.io "apisix-control" is invalid: spec.rules[0].http.paths[0].backend: Required value: port name or number is required
```
**Expected Behavior**
One of the following should be implemented for consistency:
• ***Option 1:*** Add servicePort under control.servicePort in values.yaml, or
• ***Option 2:*** Update the Control Ingress template to reference
```
helm:
.Values.control.service.servicePort
```
**Impact**
This mismatch between values.yaml and the Control Ingress template causes Helm rendering failures and prevents successful execution of control ingress template unless users manually modify values or templates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Compare the Control Ingress Helm template with the control.service section in values.yaml, starting at the $svcPort assignment shown in the issue. Render the chart with control ingress enabled and confirm that the generated Ingress contains a valid backend port and no missing-value error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100